dendrite/internal
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
..
caching More key tweaks (#1116) 2020-06-12 11:07:26 +01:00
config
eventutil Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
httputil Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
setup Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
sqlutil Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
test Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
transactions
consumers.go Rehuffle where things are in the internal package (#1122) 2020-06-12 14:55:57 +01:00
log.go