X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/91cd750b78b39195b0e8f3328a3e7f34484172a3..461fdaa1b96142b8065c131ae0334046fc71ea56:/services/fuse/tests/test_tmp_collection.py diff --git a/services/fuse/tests/test_tmp_collection.py b/services/fuse/tests/test_tmp_collection.py index 50075c96ae..c59024267a 100644 --- a/services/fuse/tests/test_tmp_collection.py +++ b/services/fuse/tests/test_tmp_collection.py @@ -58,6 +58,9 @@ def current_manifest(tmpdir): with open(os.path.join(tmpdir, '.arvados#collection')) as tmp: return json.load(tmp)['manifest_text'] +def storage_classes_desired(tmpdir): + with open(os.path.join(tmpdir, '.arvados#collection')) as tmp: + return json.load(tmp)['storage_classes_desired'] class TmpCollectionTest(IntegrationTest): mnt_args = [ @@ -65,6 +68,13 @@ class TmpCollectionTest(IntegrationTest): '--mount-tmp', 'zzz', ] + @IntegrationTest.mount(argv=mnt_args+['--storage-classes', 'foo, bar']) + def test_storage_classes(self): + self.pool_test(os.path.join(self.mnt, 'zzz')) + @staticmethod + def _test_storage_classes(self, zzz): + self.assertEqual(storage_classes_desired(zzz), ['foo', 'bar']) + @IntegrationTest.mount(argv=mnt_args+['--mount-tmp', 'yyy']) def test_two_tmp(self): self.pool_test(os.path.join(self.mnt, 'zzz'),