 
 (use-fixtures :each (ingest/reset-fixture {"provguid1" "PROV1" "provguid2" "PROV2"} false))
 
+(comment
+  (ingest/reset)
+  (ingest/create-provider "PROV1")
+  (ingest/create-provider "PROV2")
+  (e/create-providers {"provguid1" "PROV1" "provguid2" "PROV2"})
+
+)
+
+;; TODO add caching of sids information from token
+
 ;; TODO add test for searching with an invalid security token.
 
 (deftest collection-search-with-acls-test

      ;; TODO test that we can retrieve the items directly and ACLs are enforced
      )
    (testing "Direct transformer retrieval acl enforcement"
      ;; TODO test that the transformer type queries will enforce ACLs
      ;; TODO ingest some diff collections above so we can test it with them
      )))


;; This tests that when acls change after collections have been indexed that collections will be

  (e/grant-guest (e/coll-catalog-item-id "provguid2"))
  ;; grant registered users permission to coll2 and coll4
  (e/grant-registered-users (e/coll-catalog-item-id "provguid1" ["coll2" "coll4"]))
  ;; grant specific group permission to coll3, coll6, and coll8
  (e/grant-group "group-guid1" (e/coll-catalog-item-id "provguid1" ["coll3"]))
  (e/grant-group "group-guid2" (e/coll-catalog-item-id "provguid2" ["coll6" "coll8"]))


  (let [coll1 (d/ingest "PROV1" (dc/collection {:entry-title "coll1"}))
