dendrite/federationapi/routing
Kegsay 7c36fb78a7
Fix rooms v3 url paths for good - with tests (#1130)
* Fix rooms v3 url paths for good - with tests

- Add a test rig around `federationapi` to test routing.
- Use `JSONVerifier` over `KeyRing` so we can stub things out more easily.
- Add `test.NopJSONVerifier` which verifies nothing.
- Add `base.BaseMux` which is the original `mux.Router` used to spawn public/internal routers.
- Listen on `base.BaseMux` and not the default serve mux as it cleans paths which we don't want.
- Factor out `ListenAndServe` to `test.ListenAndServe` and add flag for listening on TLS.

* Fix comments

* Linting
2020-06-15 16:57:59 +01:00
..
backfill.go Roomserver API changes (#1118) 2020-06-11 19:50:40 +01:00
devices.go Use gomatrixserverlib device structs (#1079) 2020-06-02 11:29:47 +01:00
eventauth.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
events.go Consolidation of roomserver APIs (#994) 2020-05-01 10:48:17 +01:00
invite.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
join.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
keys.go s/Base64String/Base64Bytes/g (#1093) 2020-06-04 11:50:57 +01:00
leave.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
missingevents.go Hopefully fix get_missing_events (#1070) 2020-05-28 12:44:34 +01:00
profile.go Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
query.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00
routing.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
send_test.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
send.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
state.go Remove unused internal APIs (#1117) 2020-06-11 15:07:16 +01:00
threepid.go Remove clientapi producers which aren't actually producers (#1111) 2020-06-10 12:17:54 +01:00
version.go use go module for dependencies (#594) 2019-05-21 21:56:55 +01:00