synapse-old/tests
Daniel Wagner-Hall 6a9f1209df Error if macaroon key is missing from config
Currently we store all access tokens in the DB, and fall back to that
check if we can't validate the macaroon, so our fallback works here, but
for guests, their macaroons don't get persisted, so we don't get to
find them in the database. Each restart, we generate a new ephemeral
key, so guests lose access after each server restart.

I tried to fix up the config stuff to be less insane, but gave up, so
instead I bolt on yet another piece of custom one-off insanity.

Also, add some basic tests for config generation and loading.
2016-02-05 01:58:23 +00:00
..
api Fix test 2016-01-28 17:20:05 +00:00
appservice Require ID and as_token be unique for ASs 2016-01-14 14:34:01 +00:00
config Error if macaroon key is missing from config 2016-02-05 01:58:23 +00:00
crypto copyrights 2016-01-07 04:26:29 +00:00
events copyrights 2016-01-07 04:26:29 +00:00
handlers Make unit tests work 2016-01-18 14:48:50 +00:00
metrics copyrights 2016-01-07 04:26:29 +00:00
rest Rename config field to reflect yaml name 2016-02-03 14:42:01 +00:00
storage Simplify get_rooms 2016-02-03 13:24:35 +00:00
util Add tests 2016-01-29 11:33:11 +00:00
__init__.py copyrights 2016-01-07 04:26:29 +00:00
test_distributor.py copyrights 2016-01-07 04:26:29 +00:00
test_dns.py Cache dns lookups, and use the cache if we fail to lookup servers later 2016-01-20 11:34:09 +00:00
test_state.py copyrights 2016-01-07 04:26:29 +00:00
test_test_utils.py copyrights 2016-01-07 04:26:29 +00:00
test_types.py Remove redundated BaseHomeServer 2016-01-26 13:52:29 +00:00
unittest.py copyrights 2016-01-07 04:26:29 +00:00
utils.py Rename config field to reflect yaml name 2016-02-03 14:42:01 +00:00