summary refs log tree commit diff
path: root/tests/storage/test_appservice.py (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Require types in tests.storage. (#14646)Patrick Cloke2022-12-091-8/+14
| | | | Adds missing type hints to `tests.storage` package and does not allow untyped definitions.
* Remove code which updates `application_services_state.last_txn` (#12680)Richard van der Hoff2022-05-171-21/+6
| | | | This column is unused as of #12209, so let's stop writing to it.
* Add type hints for `tests/unittest.py`. (#12347)Richard van der Hoff2022-04-011-0/+1
| | | In particular, add type hints for get_success and friends, which are then helpful in a bunch of places.
* Use a sequence to generate AS transaction IDs, drop `last_txn` AS state (#12209)Nick Mills-Barrett2022-04-011-69/+2
| | | | | | | | Switching to a sequence means there's no need to track `last_txn` on the AS state table to generate new TXN IDs. This also means that there is no longer contention between the AS scheduler and AS handler on updates to the `application_services_state` table, which will prevent serialization errors during the complete AS txn transaction.
* Send device list updates to application services (MSC3202) - part 1 (#11881)Andrew Morgan2022-03-301-4/+13
| | | Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
* Start application service stream token tracking from 1 (#12193)Andrew Morgan2022-03-301-2/+2
| | | Co-authored-by: Erik Johnston <erik@matrix.org>
* Replace assertEquals and friends with non-deprecated versions. (#12092)Patrick Cloke2022-02-281-43/+43
|
* Add support for MSC3202: sending one-time key counts and fallback key usage ↵reivilibre2022-02-241-4/+4
| | | | | states to Application Services. (#11617) Co-authored-by: Erik Johnston <erik@matrix.org>
* Remove `HomeServer.get_datastore()` (#12031)Richard van der Hoff2022-02-231-1/+1
| | | | | | | The presence of this method was confusing, and mostly present for backwards compatibility. Let's get rid of it. Part of #11733
* Send to-device messages to application services (#11215)Andrew Morgan2022-02-011-9/+17
| | | Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
* Clean up tests.storage.test_appservice (#11492)reivilibre2021-12-021-177/+168
|
* Add type annotations to `tests.storage.test_appservice`. (#11488)reivilibre2021-12-021-48/+92
|
* Require direct references to configuration variables. (#10985)Patrick Cloke2021-10-061-1/+1
| | | | | | This removes the magic allowing accessing configurable variables directly from the config object. It is now required that a specific configuration class is used (e.g. `config.foo` must be replaced with `config.server.foo`).
* Use direct references for configuration variables (part 4). (#10893)Patrick Cloke2021-09-231-1/+0
|
* Use direct references for some configuration variables (part 3) (#10885)Patrick Cloke2021-09-231-9/+5
| | | | | | | | This avoids the overhead of searching through the various configuration classes by directly referencing the class that the attributes are in. It also improves type hints since mypy can now resolve the types of the configuration variables.
* Remove redundant "coding: utf-8" lines (#9786)Jonathan de Jong2021-04-141-1/+0
| | | | | | | Part of #9744 Removes all redundant `# -*- coding: utf-8 -*-` lines from files, as python 3 automatically reads source code as utf-8 now. `Signed-off-by: Jonathan de Jong <jonathan@automatia.nl>`
* Use mock from the stdlib. (#9772)Patrick Cloke2021-04-091-2/+1
|
* Fix get|set_type_stream_id_for_appservice store functions (#8648)Will Hunt2020-10-261-0/+56
|
* Send some ephemeral events to appservices (#8437)Will Hunt2020-10-151-4/+4
| | | Optionally sends typing, presence, and read receipt information to appservices.
* Add logging on startup/shutdown (#8448)Erik Johnston2020-10-021-5/+9
| | | | | This is so we can tell what is going on when things are taking a while to start up. The main change here is to ensure that transactions that are created during startup get correctly logged like normal transactions.
* Simplify super() calls to Python 3 syntax. (#8344)Patrick Cloke2020-09-181-1/+1
| | | | | | | This converts calls like super(Foo, self) -> super(). Generated with: sed -i "" -Ee 's/super\([^\(]+\)/super()/g' **/*.py
* Do not yield on awaitables in tests. (#8193)Patrick Cloke2020-08-271-6/+18
|
* Convert events worker database to async/await. (#8071)Patrick Cloke2020-08-181-1/+2
|
* Convert some of the general database methods to async (#8100)Patrick Cloke2020-08-171-4/+12
|
* Convert appservice, group server, profile and more databases to async (#8066)Patrick Cloke2020-08-121-12/+12
|
* Rename database classes to make some sense (#8033)Erik Johnston2020-08-051-3/+3
|
* Allow configuration of Synapse's cache without using synctl or environment ↵Amber Brown2020-05-111-5/+5
| | | | variables (#6391)
* Clarify list/set/dict/tuple comprehensions and enforce via flake8 (#6957)Patrick Cloke2020-02-211-18/+18
| | | | Ensure good comprehension hygiene using flake8-comprehensions.
* Add database config class (#6513)Erik Johnston2019-12-181-11/+26
| | | | | This encapsulates config for a given database and is the way to get new connections.
* Fixup testsErik Johnston2019-12-061-5/+7
|
* Change DataStores to accept 'database' param.Erik Johnston2019-12-061-2/+3
|
* Move storage classes into a main "data store".Erik Johnston2019-10-211-1/+1
| | | | | This is in preparation for having multiple data stores that offer different functionality, e.g. splitting out state or event storage.
* Run Black. (#5482)Amber Brown2019-06-201-2/+2
|
* Expose DataStore._get_events as get_events_as_listErik Johnston2019-05-141-1/+1
| | | | This is in preparation for reaction work which requires it.
* Fix tests on postgresql (#3740)Amber Brown2018-09-041-63/+68
|
* Run tests under PostgreSQL (#3423)Amber Brown2018-08-131-2/+11
|
* Run black.black2018-08-101-122/+56
|
* run isortAmber Brown2018-07-091-8/+12
|
* Use str(e) instead of e.messageAdrian Tschira2018-04-151-6/+6
| | | | | | | Doing this I learned e.message was pretty shortlived, added in 2.6, they realized it was a bad idea and deprecated it in 2.7 Signed-off-by: Adrian Tschira <nota@notafile.com>
* s/replication_client/federation_client/Erik Johnston2018-03-131-5/+5
|
* Fix testsErik Johnston2018-03-131-5/+5
|
* Fix tests for Store.__init__ updateRichard van der Hoff2017-11-131-7/+7
| | | | Fix the test to pass the right number of args to the Store constructors
* replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-231-1/+1
| | | | what could possibly go wrong
* Implement device key caching over federationErik Johnston2017-01-261-5/+16
|
* Fix testsErik Johnston2016-11-211-5/+17
|
* Merge pull request #1155 from matrix-org/erikj/pluggable_pwd_authErik Johnston2016-10-121-3/+14
|\ | | | | Implement pluggable password auth
| * Implement pluggable password authErik Johnston2016-10-031-3/+14
| | | | | | | | | | | | Allows delegating the password auth to an external module. This also moves the LDAP auth to using this system, allowing it to be removed from the synapse tree entirely in the future.
* | storage/appservice: make appservice methods only relying on the cache ↵Patrik Oldsberg2016-10-061-6/+3
|/ | | | synchronous
* Fix AS retries, but with correct orderingErik Johnston2016-06-071-4/+4
|
* Fix AS retriesErik Johnston2016-06-071-3/+3
|
* Remove event fetching from DB threadsErik Johnston2016-06-031-1/+1
|
* Move cache size fiddling to descriptors only. Fix testsErik Johnston2016-03-011-5/+7
|
* Fix testsErik Johnston2016-01-271-3/+3
|
* Require ID and as_token be unique for ASsDaniel Wagner-Hall2016-01-141-16/+85
| | | | | Defaults ID to as_token if not specified. This will change when IDs are fully supported.
* copyrightsMatthew Hodgson2016-01-071-1/+1
|
* Merge branch 'develop' of github.com:matrix-org/synapse into mysqlErik Johnston2015-04-071-53/+348
|\
| * Use a sender localpart instead of a user ID.Kegan Dougal2015-03-311-2/+2
| | | | | | | | | | Form the user ID at runtime instead, This gives less room for error in AS config files since they cannot specify the domain of another HS.
| * Edit SQL schema to use string IDs not ints. Use token as ID. Update tests.Kegan Dougal2015-03-311-15/+23
| |
| * Fix tests and missing returns on deferreds.Kegan Dougal2015-03-311-12/+29
| |
| * Remove more reg/unreg methods. Read config not database for cache.Kegan Dougal2015-03-311-39/+0
| |
| * Use event IDs instead of dumping event content in the txns table.Kegan Dougal2015-03-091-13/+17
| |
| * Finish appservice txn storage impl and tests.Kegan Dougal2015-03-091-0/+68
| |
| * Implement create_appservice_txn with tests.Kegan Dougal2015-03-091-0/+67
| |
| * Partially implement txn store methods with tests.Kegan Dougal2015-03-091-2/+169
| |
* | Make work in both Maria and SQLite. Fix testsErik Johnston2015-04-011-8/+4
|/
* Add more unit tests for exclusive namespaces.Kegan Dougal2015-02-271-1/+1
|
* Update unit tests to use new format.Kegan Dougal2015-02-271-3/+9
|
* Fix tests which broke when event caching was introduced.Kegan Dougal2015-02-111-1/+4
|
* Add hs_token column and generate a different token f.e application service.Kegan Dougal2015-02-051-4/+6
|
* Fix bug in store defer. Add more unit tests.Kegan Dougal2015-02-041-0/+105