Uploaded image for project: 'Hybrid Application Console'
  1. Hybrid Application Console
  2. HAC-1457

[ROSA-Wizard] Step 1: add validation to check that user role exist and is linked

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • None
    • None
    • Infrastructure

    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"
      }
      

      Attachments

        Issue Links

          Activity

            People

              dtaylor@redhat.com David Taylor
              dtaylor@redhat.com David Taylor
              Yu Wang Yu Wang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: