Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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. ```
- Loading branch information