Skip to content

Commit

Permalink
Fix: IT subtests manifest and repository_files fail due to lack of fi…
Browse files Browse the repository at this point in the history
…les (#5168)
  • Loading branch information
nadove-ucsc authored and dsotirho-ucsc committed Jul 5, 2023
1 parent 00c2090 commit 9f9ad61
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions test/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,13 +208,7 @@ def setUp(self) -> None:
super().setUp()
# All random operations should be made using this seed so that test
# results are deterministically reproducible
self.random_seed = (
# FIXME: Unpin the seed once underlying issue is fixed
# https://github.com/DataBiosphere/azul/issues/5168
6634795309975096822
if config.deployment_stage == 'anvildev' else
randint(0, sys.maxsize)
)
self.random_seed = randint(0, sys.maxsize)
self.random = Random(self.random_seed)
log.info('Using random seed %r', self.random_seed)

Expand Down Expand Up @@ -335,7 +329,8 @@ def _list_bundles(self,
self.random.shuffle(sources)
if public_1st:
managed_access_sources = frozenset(
map(str, self.managed_access_sources_by_catalog[catalog])
str(source.spec)
for source in self.managed_access_sources_by_catalog[catalog]
)
index = first(
i
Expand Down Expand Up @@ -1254,8 +1249,8 @@ def bundle_uuids(hit: JSON) -> set[str]:
))
filters = {'sourceId': {'is': [source_id]}}
params = {'size': 1, 'catalog': catalog, 'filters': json.dumps(filters)}
bundles_url = furl(url=endpoint, path=['index', self._bundle_type(catalog)], args=params)
response = self._get_url_json(bundles_url)
files_url = furl(url=endpoint, path='index/files', args=params)
response = self._get_url_json(files_url)
public_bundle = first(bundle_uuids(one(response['hits'])))
self.assertNotIn(public_bundle, managed_access_bundles)

Expand Down

0 comments on commit 9f9ad61

Please sign in to comment.