Give SSO test users perms

Description

There are three test users created as part of the sample data of this module. These users are to help test the REDIRECT binding for SSO. However, these users don't have any permissions associated with them. This means that when used as part of a test, the final redirect to the sso-landing page in stripes appears broken, which can be confusing to testers.

By creating the necessary permission user to each of these 3 users the UI will no longer appear broken at the end of the SSO test.

See the resources/sample-data for the data for these 3 users. The following curl shows how to create the permission user object for a given user:

curl -HX-Okapi-Token:<TOKEN> -HX-Okapi-Tenant:diku -HContent-type:application/json -XPOST -d '{"id": "a8c59efd-6ace-469b-a9e8-121da67eb27e", "userId":"2205005b-ca51-4a04-87fd-938eefa8f6de", "permissions": ["okapi.all"]} '<OKAPI URL>/perms/users'

Environment

None

Potential Workaround

None

Checklist

hide

TestRail: Results

Activity

Show:

Julian LadischJanuary 8, 2024 at 12:33 PM

mod-permissions creates permissions for mod-users' sample users.

However, the mod-users submodule needs to be updated to get the three new sample users, and the directory has been split into two directories:

https://github.com/folio-org/mod-users/tree/v19.2.2/src/main/resources/sample-data
https://github.com/folio-org/mod-permissions/blob/v6.4.0/pom.xml#L263
https://github.com/folio-org/mod-permissions/blob/v6.4.0/src/main/java/org/folio/rest/impl/TenantRefAPI.java#L31-L43

Details

Assignee

Reporter

Priority

Development Team

Core: Platform

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created December 5, 2023 at 7:04 PM
Updated January 8, 2024 at 12:33 PM
TestRail: Cases
TestRail: Runs