Details
-
Bug
-
Resolution: Done
-
Blocker
-
None
-
None
-
False
-
False
-
HAC Infra - Sprint 220
Description
Clicking Next on Step 1 should validate that user has created and linked a user-role.
There is an API to test for the existance of the user role:
Zohar Galor:
You can use the following API to test if a user-role is linked
ocm get /api/account_mgmt/v1/accounts/<id>/labels/sts_user_role
This will show the user role linked to the account if indeed it is linked
ocm get /api/accounts_mgmt/v1/accounts/<OCM Account ID>/labels/sts_user_role { "account_id": "21GfnAOamaSY9D94QqariHyYP6F", "created_at": "2022-05-12T14:31:18.921594Z", "href": "/api/accounts_mgmt/v1/accounts/21GfnAOamaSY9D94QqariHyYP6F/labels/sts_user_role", "id": "294ILtwmH61HaXiiIB6JvHK9Z9e", "internal": false, "key": "sts_user_role", "kind": "Label", "updated_at": "2022-05-12T14:31:18.921594Z", "value": "arn:aws:iam::765374464689:role/oadler-User-oadler.openshift-Role" }