Skip to content

Commit

Permalink
Comment out tests that depend on having a certain number of caches
Browse files Browse the repository at this point in the history
The namespaces JSON does not list Pelican caches (on purpose); as we
convert more I2 caches, we drop below the number of caches the tests are
expecting.  Until we come up with some better tests, comment out these
ones to avoid unnecessary failures.
  • Loading branch information
matyasselmeci committed Oct 1, 2024
1 parent 46eeb66 commit 8a603ff
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/tests/test_stashcache.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,11 +326,11 @@ def validate_namespace_schema(ns):
if credgen["base_path"]:
assert isinstance(credgen["base_path"], str)

def test_caches(self, caches):
# Have a reasonable number of caches
assert len(caches) > 20
for cache in caches:
self.validate_cache_schema(cache)
# def test_caches(self, caches):
# # Have a reasonable number of caches
# assert len(caches) > 20
# for cache in caches:
# self.validate_cache_schema(cache)

def test_namespaces(self, namespaces):
# Have a reasonable number of namespaces
Expand Down Expand Up @@ -375,7 +375,7 @@ def test_testvo_public_namespace(self, namespaces):
assert ns["readhttps"] is False
assert ns["usetokenonread"] is False
assert TEST_SC_ORIGIN in ns["writebackhost"]
assert len(ns["caches"]) > 10
# assert len(ns["caches"]) > 10
assert len(ns["origins"]) == 2
assert ns["credential_generation"] is None
assert len(ns["scitokens"]) == 1
Expand All @@ -394,7 +394,7 @@ def test_testvo_namespace(self, namespaces):
assert ns["usetokenonread"] is True
assert TEST_ORIGIN_AUTH2000 in ns["writebackhost"]
assert TEST_ORIGIN_AUTH2000 in ns["dirlisthost"]
assert len(ns["caches"]) > 10
# assert len(ns["caches"]) > 10
assert len(ns["origins"]) == 1
credgen = ns["credential_generation"]
assert credgen["base_path"] == TEST_BASEPATH
Expand Down

0 comments on commit 8a603ff

Please sign in to comment.