-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WPB-5687] port flaking LH tests to new integration #3876
Conversation
8a4756c
to
010a6fc
Compare
010a6fc
to
44e1f4a
Compare
|
9ebaf36
to
66a4242
Compare
- delegate only the testcase generation to the user - use an OVERLAPPABLE default instance if the type is a Generic Enum - cover more cases - don't use newtype Wrappers wherever possible
I already have a flaking test: |
still needs some cleanups (also for some reason |
client removed notification takes extremely long to arrive; on local it was fine to bump the timeout, in CI it takes over 20 seconds for it before it times out |
56b6955
to
84feffa
Compare
I have no idea on how to solve this issue with timeouts, it's because the SQS queue is really slow. there's two options:
|
because of message queueing
392d4a6
to
402d6ec
Compare
there are still some legalhold tests that are not ported but I have confirmed that these have not flaked for some time (sinche the http-client revert) |
6938583
to
f4c8b09
Compare
@@ -149,7 +149,6 @@ deleteUser user = do | |||
submit "DELETE" $ | |||
req & addJSONObject ["password" .= defPassword] | |||
|
|||
-- | https://staging-nginz-https.zinfra.io/api-internal/swagger-ui/brig/#/brig/post_i_clients__uid_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed by accident?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this is the wrong endpoint (internal)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have replaced this with the proper one
sorry, i wanted to just send the comments, i approved by accident.
f4c8b09
to
df9ce7f
Compare
Co-authored-by: Matthias Fischmann <[email protected]>
postLegalHoldSettings tid alice (mkLegalHoldSettings lhPort) | ||
>>= assertStatus 201 | ||
|
||
if not connectFirst |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also stumbled over this in the old test but I does make sense.
16a2d97
to
fe70861
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I only skimmed over the new tests, but they seem ok to me. I like the improvements to the HasTests
class. Personally, I would have skipped the Generics stuff, but I'm not going to fight you on that :).
* [fix] use -e flag to abort when `docker-compose` fails * [feat] make `HasTests` easier to use - delegate only the testcase generation to the user - use an OVERLAPPABLE default instance if the type is a Generic Enum - cover more cases - don't use newtype Wrappers wherever possible * [feat] port over flaking Legalhold tests and delete them from galley integration * [feat] minor testlib improvements and additions --------- Co-authored-by: Matthias Fischmann <[email protected]>
* [fix] use -e flag to abort when `docker-compose` fails * [feat] make `HasTests` easier to use - delegate only the testcase generation to the user - use an OVERLAPPABLE default instance if the type is a Generic Enum - cover more cases - don't use newtype Wrappers wherever possible * [feat] port over flaking Legalhold tests and delete them from galley integration * [feat] minor testlib improvements and additions --------- Co-authored-by: Matthias Fischmann <[email protected]>
* WPB-5845 guests should not be able to join conversations under legalhold (#3853) * Clean up LH tests (#3830) * Use HasTests to save a few LOC. * Fix/extend client CRUD api. - moved internal add from API.Brig to API.BrigInternal - created API.BrigCommon for data structured needed in both - added public add * Tranlate tests: manually add/delete client. * Fiddle with test case type abstractions. * Remove obsolete test from integration/test/Test/Demo.hs * Unblock release. (#3871) * WIP: [WPB-5687] port flaking LH tests to new integration (#3876) * [fix] use -e flag to abort when `docker-compose` fails * [feat] make `HasTests` easier to use - delegate only the testcase generation to the user - use an OVERLAPPABLE default instance if the type is a Generic Enum - cover more cases - don't use newtype Wrappers wherever possible * [feat] port over flaking Legalhold tests and delete them from galley integration * [feat] minor testlib improvements and additions --------- Co-authored-by: Matthias Fischmann <[email protected]> * wip * fix integration tests --------- Co-authored-by: fisx <[email protected]> Co-authored-by: Mango The Fourth <[email protected]>
https://wearezeta.atlassian.net/browse/WPB-5687
Checklist
changelog.d