• Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • False
    • None
    • Unset
    • A&M Tech Debt Sprint Q1 2025, Access & Management Sprint 106, Access & Management Sprint 107, Access & Management Sprint 108, Access & Management Sprint 109, Access & Management Sprint 110, Access & Management Sprint 111, A&M Tech Debt Sprint Q2 2025, Access & Management Sprint 112

      File

      tests/management/test_utils.py

      Tests


      The groups for principal function returns nothing for a new service account

      Description

      The groups_for_principal function has a conditional where if the principal type is a service account, then we don't fetch any platform default groups for it. The test should create a new tenant, a new service account with that tenant, and call the function under test, to check that no groups are returned for that service account.

      Desired output

      When calling groups_for_principal, no groups should be returned.


      The groups for principal function returns the groups to the associated service account

      Description

      The groups_for_principal function has a conditional where if the principal type is a service account, then we don't fetch any platform default groups for it.

      After adding a service account for the service account, the function should return the associated group for the service account.

      Desired output

      When calling groups_for_principal, the created group for the service account is returned.


      The get principal function creates a service account

      Description

      The get_principal function should create a new service account in the database if the one provided was not found, the same way it happens with user principals.

      Desired output

      When calling get_principal with a non-existent service account, it gets created in the database.

              pcihalov@redhat.com Petra Cihalova (Inactive)
              mbarcina@redhat.com Mikel Alejo Barcina Ribera
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: