 
 (deftest acl-search-permitted-group-test
   (let [token (e/login (u/conn-context) "user1")
+        group1 (u/ingest-group token {:name "group1"} ["user1"])
+        acl-provider-for-catalog-item-acl (ingest-acl token (assoc-in provider-acl-for-catalog-item
+                                                                      [:group_permissions 0 :group_id] (:concept_id group1)))
+        ;; required to create catalog item acls
+        _ (u/wait-until-indexed)
         acl1 (ingest-acl token (assoc (system-acl "SYSTEM_AUDIT_REPORT")
                                       :group_permissions
                                       [{:user_type "guest" :permissions ["read"]}]))

                               ["user1"])
        group1-concept-id (:concept_id group1)
        group2-concept-id (:concept_id group2)
        acl1 (ingest-acl token (assoc (system-acl "SYSTEM_AUDIT_REPORT")
                                      :group_permissions
                                      [{:user_type "guest" :permissions ["read"]}]))

         :permitted-group ["guest" "registered"]
         :identity-type ["catalog_item" "provider"]
         :permitted-user "user1"}
        [acl4 acl5 acl6 acl7]

        ;;Shows when permitted groups are not specified, then all user groups are returned for that user
        "Multiple search criteria with no permitted group specified and permitted users set to user2"
