Uploaded image for project: 'OpenIDM'
  1. OpenIDM
  2. OPENIDM-14408

Regression: Delegated admin suite failing internal roles tests since IDM commit 6b19e1bd804

    Details

    • Type: QA Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 7.0.0
    • Fix Version/s: 7.0.0
    • Component/s: None
    • Labels:

      Description

      Since IDM commit 6b19e1bd804 there is regression in tests. There was a new role added for am-idm provisioning with the _id of "idm-provisioning" which is throwing off the teardown logic.

      The failing suite is delegated_admin.internal_user_queries but I think it may affect wherever else this occurs.
      I think this can be fixed with something like: (Also the error message is a bit wrong and should reference users_to_delete[0] instead of users[0])

      def delete_non_default_internal_users(self):
          # delete test Internal User 'new-internal-user' if exists
          self.IDM1.ping_returns_active_ready(5)
          req_headers = {'X-OpenIDM-Username': "openidm-admin", 'X-OpenIDM-Password': "openidm-admin"}
          users = [user['_id'] for user in query_all_users(self.IDM1.idm_url, user_type="internal")["result"]]
          users_to_delete = list(filter(lambda x: not (x.startswith('openidm') or x.startswith('anonymous') or x.startswith('idm-provisioning')), users))
          user_count = len(users_to_delete)
          if user_count == 0:
              utils.logger.info("Found no non default internal users to delete")
          elif user_count == 1:
              utils.logger.info(f"Deleting only one internal user: {users_to_delete[0]}")
              self.IDM1.rest.delete_idm('internal/user/new-internal-user', headers=req_headers)
      

        Attachments

          Activity

            People

            • Assignee:
              alexander.dracka Alexander Dracka
              Reporter:
              katie.gonzalez Katie Gonzalez
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: