Skip to content

Conversation

neilalexander
Copy link
Contributor

The test was looking for errcode, which Synapse returns but is not specced.

The test now looks for error, which is specced!

@erikjohnston
Copy link
Member

Although the annoying thing here is that this won't detect if we threw an "internal server error" while handling the ACL. Though I guess the net result would be the same...

@neilalexander
Copy link
Contributor Author

An internal server error should return a 500 and presumably no txn response body? (At least that's what dendrite does as I just had to fix a panic related to this and the test failed as expected.)

@neilalexander neilalexander merged commit cfac1fc into develop Aug 11, 2020
@neilalexander neilalexander deleted the neilalexander/acltest branch August 11, 2020 13:18
@erikjohnston
Copy link
Member

An internal server error should return a 500 and presumably no txn response body? (At least that's what dendrite does as I just had to fix a panic related to this and the test failed as expected.)

Not if there was an internal error when processing an event. Instead it should return the error in the PDU results dict.

anoadragon453 added a commit that referenced this pull request Oct 21, 2020
…c_release_1_21_x

* origin/release-v1.20.1: (27 commits)
  Pin Alien::Sodium to an old version, to fix install errors (#949)
  Disable rate limiting on Dendrite (#947)
  Wait for synapse to start by using sd_notify. (#943)
  Fix bad tests (#939)
  Add ability to exclude tests for deprecated endpoints (#881)
  Abide by the spec when making /keys/query requests
  When putting device keys, may the JSON body spec compliant
  Remove trailing slashes from /state_ids and /backfill in ACL tests (#936)
  Fix /send server ACL test to match spec (#935)
  Call matrix_get_e2e_keys correctly
  Removed unused params from pydron invocation (#931)
  Deflake 'Server correctly resyncs when server leaves and rejoins a room' (#932)
  Dendrite configuration format v1 (#921)
  Disable TLS validation for Dendrite
  Set Dendrite loglevel to trace (#933)
  Merge Synapse::ViaHaproxy and -I Synapse::Dendron (#930)
  Use ProcessManager in Synapse.pm (#929)
  Add redis support to synapse docker image (#928)
  Update the README for the docker images (#927)
  Some minor cleanups to the startup scripts (#926)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants