-
Notifications
You must be signed in to change notification settings - Fork 23
CLOUDP-349078: custom roles regression tests #551
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
base: master
Are you sure you want to change the base?
Conversation
MCK 1.6.0 Release NotesNew Features
Bug Fixes
Other Changes
|
70c14e8 to
c150032
Compare
|
|
||
|
|
||
| @fixture(scope="module") | ||
| def project_name_prefix(namespace: str) -> str: |
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.
this is not necessary - in evg namespaces are already randomized
| mongodb_role_with_empty_strings["spec"]["roles"][0]["role"] = "readWrite" | ||
| mongodb_role_with_empty_strings.update() | ||
|
|
||
| wait_until(lambda: replica_set.get_automation_config_tester().reached_version(rs_version + 1), timeout=120) |
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.
asserting for versions is not good:
- it prevents from re-running the test locally
- it increases risk of flakiness in case any other changes were performed in the meantime
it's better to just wait for the desired state of AC
| export RELEASE_INITIAL_COMMIT_SHA="9ed5f98fc70c5b3442f633d2393265fb8a2aba0c" | ||
| export RELEASE_INITIAL_VERSION="1.3.0" | ||
|
|
||
| export CLUSTER_TYPE=kind |
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.
local run was failing due to undefined errors
c150032 to
545dc80
Compare
545dc80 to
71cd46b
Compare
71cd46b to
724fa83
Compare
Summary
This PR adds regression test for custom roles ensuring we will keep backwards compatibility wrt handling empty strings vs omitted fields.
In the subsequent #553 the serialization rules for custom roles will be changed.
Proof of Work
Tests passing.