Add a HTTP API for roomserver input (#158)

* Add a HTTP API for roomserver input

* Fix integration tests
This commit is contained in:
Mark Haines 2017-07-13 11:41:30 +01:00 committed by GitHub
parent f40b776aa3
commit d3a29b7816
8 changed files with 183 additions and 91 deletions

View file

@ -252,9 +252,9 @@ func main() {
input := []string{
`{
"AuthEventIDs": [],
"Kind": 1,
"Event": {
"auth_event_ids": [],
"kind": 1,
"event": {
"origin": "matrix.org",
"signatures": {
"matrix.org": {
@ -274,10 +274,10 @@ func main() {
"hashes": {"sha256": "Q05VLC8nztN2tguy+KnHxxhitI95wK9NelnsDaXRqeo"},
"type": "m.room.create"}
}`, `{
"AuthEventIDs": ["$1463671337126266wrSBX:matrix.org"],
"Kind": 2,
"StateEventIDs": ["$1463671337126266wrSBX:matrix.org"],
"Event": {
"auth_event_ids": ["$1463671337126266wrSBX:matrix.org"],
"kind": 2,
"state_event_ids": ["$1463671337126266wrSBX:matrix.org"],
"event": {
"origin": "matrix.org",
"signatures": {
"matrix.org": {
@ -305,7 +305,7 @@ func main() {
]],
"hashes": {"sha256": "t9t3sZV1Eu0P9Jyrs7pge6UTa1zuTbRdVxeUHnrQVH0"},
"type": "m.room.member"},
"HasState": true
"has_state": true
}`,
}