Commit c719b70
authored
[Fix] test to check various user group access (#1034)
The existing test checks that users from different groups have different
access and that this access can be setup via RHOAI User settings.
What this test does:
* creates a `custom-admins-group` with `TEST_USER2` user
* creates a `custom-users-group` with `TEST_USER3` user
* configures first group as admins in RHOAI User settings
* configures second group as users in RHOAI User settings
Once this was applied it tried to perform operations with three
different users:
* TEST_USER - expected no privileges and simple `Access
permissions needed` page presented
* TEST_USER2 - all privileges
* TEST_USER3 - no Administration page shown
Problem in this approach is that the `TEST_USER` is part of the
`dedicated-admins` group, which has a `cluster-admin` role in our
default cluster settings. Per this [1], such user is an admin by
default.
So my changes incorporates usage of the `TEST_USER4` instead of
`TEST_USER`.
Also, unnecessary check for the product version is removed with this
commit.
[1] https://access.redhat.com/documentation/en-us/red_hat_openshift_data_science/1/html-single/managing_users_and_user_resources/index#defining-openshift-data-science-admin-and-user-groups_user-mgmt
```
By default, users with cluster admin permissions and users in the
dedicated-admins administrator group are OpenShift Data Science
administrators, but all users authenticated in OpenShift can access
OpenShift Data Science. A cluster admin is a superuser that can perform
any action in any project in the OpenShift cluster.
```1 parent c582e1c commit c719b70
File tree
1 file changed
+7
-12
lines changed- ods_ci/tests/Tests/500__jupyterhub
1 file changed
+7
-12
lines changedLines changed: 7 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
| 106 | + | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
120 | 115 | | |
121 | 116 | | |
122 | 117 | | |
| |||
0 commit comments