-
Notifications
You must be signed in to change notification settings - Fork 5
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
Add group role mapping #306
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #306 +/- ##
==========================================
+ Coverage 98.19% 98.21% +0.01%
==========================================
Files 128 128
Lines 4718 4768 +50
Branches 251 251
==========================================
+ Hits 4633 4683 +50
Misses 76 76
Partials 9 9 ☔ View full report in Codecov by Sentry. |
Renames the action to add a user with a role to a project, so it's clear which handles a group too
Adds an action to map an existing group to a project, which will be used in the next step: adding users to that group
4e84992
to
bbbc85a
Compare
Adds the implementation to add a user to an existing group
Adds another variation of venv to the gitignore file
As the imported name doesn't match we don't need the extra specifier of the upstream imported module, unlike the others.
This was masking the action name due to a copy-paste error
fdb6946
to
6f71772
Compare
A cross-domain is disallowed by OpenStack, so simplify the action to enforce this constraint in a user friendly way
Another action with a shadowing name where it was copied from an earlier action
Since we no longer make multiple calls we don't need both calls from unit testing anymore
b653fbf
to
200b4f9
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.
Do the project, role, group parameters take names and IDs or only one type?
- default | ||
- stfc | ||
- jasmin | ||
group_name: |
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.
Is this group name only or can also be ID?
mock_conn.identity.assign_project_role_to_group( | ||
project=mock_conn.identity.find_project.return_value, | ||
group=mock_conn.identity.find_group.return_value, | ||
role=mock_conn.identity.find_role.return_value, | ||
) |
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.
Should this be asserting called_with?
Description:
Testing
Special Notes:
Submitter:
Have you (where applicable):
Reviewer
Does this PR:
lib
directory?lib
layers?