Skip to content

Commit

Permalink
Merge pull request #4200 from matyasselmeci/pr/disable-cache-count-test
Browse files Browse the repository at this point in the history
Comment out tests that depend on having a certain number of caches
  • Loading branch information
mwestphall authored Oct 1, 2024
2 parents 46eeb66 + 8a603ff commit 92eb292
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 92eb292

Please sign in to comment.