[ARVADOS] updated: 2.1.0-1216-g1cc91b509

Git user git at public.arvados.org
Wed Aug 25 21:27:05 UTC 2021


Summary of changes:
 sdk/python/tests/test_arvfile.py | 30 +++++++++++++++++++++++++-----
 1 file changed, 25 insertions(+), 5 deletions(-)

       via  1cc91b509e26459c461d8753781e2293b94ebeb0 (commit)
      from  99e0417c63802d24c3d9f9a36e436ef3f82c4d94 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 1cc91b509e26459c461d8753781e2293b94ebeb0
Author: Lucas Di Pentima <lucas.dipentima at curii.com>
Date:   Wed Aug 25 18:26:46 2021 -0300

    17696: Fixes tests.
    
    Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima at curii.com>

diff --git a/sdk/python/tests/test_arvfile.py b/sdk/python/tests/test_arvfile.py
index 0b8e7c8f8..c9a18fff2 100644
--- a/sdk/python/tests/test_arvfile.py
+++ b/sdk/python/tests/test_arvfile.py
@@ -44,6 +44,16 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
             self.response = r
             self._schema = ArvadosFileWriterTestCase.MockApi.MockSchema()
             self._rootDesc = {}
+
+        def config(self):
+            return {
+                'StorageClasses': {
+                    'default': {
+                        'Default': True,
+                        'Priority': 0,
+                    }
+                }
+            }
         class MockSchema(object):
             def __init__(self):
                 self.schemas = {'Collection': {'properties': {'replication_desired': {'type':'integer'}}}}
@@ -74,6 +84,7 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
             "name": "test_truncate",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 0:8:count.txt\n",
             "replication_desired": None,
+            "storage_classes_desired": ['default'],
         }, {
             "uuid": "zzzzz-4zz18-mockcollection0",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 0:8:count.txt\n",
@@ -109,6 +120,7 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
             "name": "test_truncate2",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 7f614da9329cd3aebf59b91aadc30bf0+67108864 0:12:count.txt\n",
             "replication_desired": None,
+            "storage_classes_desired": ['default'],
         }, {
             "uuid": "zzzzz-4zz18-mockcollection0",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 7f614da9329cd3aebf59b91aadc30bf0+67108864 0:12:count.txt\n",
@@ -142,6 +154,7 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
             "name": "test_truncate",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 0:8:count.txt\n",
             "replication_desired": None,
+            "storage_classes_desired": ['default'],
         }, {
             "uuid": "zzzzz-4zz18-mockcollection0",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 0:8:count.txt\n",
@@ -178,6 +191,7 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
             "name": "test_append",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 acbd18db4cc2f85cedef654fccc4a4d8+3 0:13:count.txt\n",
             "replication_desired": None,
+            "storage_classes_desired": ['default'],
         }, {
             "uuid": "zzzzz-4zz18-mockcollection0",
             "manifest_text": ". 781e5e245d69b566979b86e28d23f2c7+10 acbd18db4cc2f85cedef654fccc4a4d8+3 0:13:count.txt\n",
@@ -343,7 +357,8 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
         keep = ArvadosFileWriterTestCase.MockKeep({})
         api = ArvadosFileWriterTestCase.MockApi({"name":"test_write_large",
                                                  "manifest_text": ". a5de24f4417cfba9d5825eadc2f4ca49+67108000 598cc1a4ccaef8ab6e4724d87e675d78+32892000 0:100000000:count.txt\n",
-                                                 "replication_desired":None},
+                                                 "replication_desired":None,
+                                                 "storage_classes_desired": ['default']},
                                                 {"uuid":"zzzzz-4zz18-mockcollection0",
                                                  "manifest_text": ". a5de24f4417cfba9d5825eadc2f4ca49+67108000 598cc1a4ccaef8ab6e4724d87e675d78+32892000 0:100000000:count.txt\n",
                                                  "portable_data_hash":"9132ca8e3f671c76103a38f5bc24328c+108"})
@@ -502,7 +517,8 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
         keep = ArvadosFileWriterTestCase.MockKeep({})
         api = ArvadosFileWriterTestCase.MockApi({"name":"test_write_large",
                                                  "manifest_text": ". 3dc0d4bc21f48060bedcb2c91af4f906+32892003 a5de24f4417cfba9d5825eadc2f4ca49+67108000 0:3:count.txt 32892006:67107997:count.txt 3:32892000:count.txt\n",
-                                                 "replication_desired":None},
+                                                 "replication_desired":None,
+                                                 "storage_classes_desired": ['default']},
                                                 {"uuid":"zzzzz-4zz18-mockcollection0",
                                                  "manifest_text": ". 3dc0d4bc21f48060bedcb2c91af4f906+32892003 a5de24f4417cfba9d5825eadc2f4ca49+67108000 0:3:count.txt 32892006:67107997:count.txt 3:32892000:count.txt\n",
                                                  "portable_data_hash":"217665c6b713e1b78dfba7ebd42344db+156"})
@@ -528,6 +544,7 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
             "name":"test_create",
             "manifest_text":". 2e9ec317e197819358fbc43afca7d837+8 0:8:count.txt\n",
             "replication_desired":None,
+            "storage_classes_desired": ['default'],
         }, {
             "uuid":"zzzzz-4zz18-mockcollection0",
             "manifest_text":". 2e9ec317e197819358fbc43afca7d837+8 0:8:count.txt\n",
@@ -552,7 +569,8 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
         keep = ArvadosFileWriterTestCase.MockKeep({})
         api = ArvadosFileWriterTestCase.MockApi({"name":"test_create",
                                                  "manifest_text":"./foo/bar 2e9ec317e197819358fbc43afca7d837+8 0:8:count.txt\n",
-                                                 "replication_desired":None},
+                                                 "replication_desired":None,
+                                                 "storage_classes_desired": ['default']},
                                                 {"uuid":"zzzzz-4zz18-mockcollection0",
                                                  "manifest_text":"./foo/bar 2e9ec317e197819358fbc43afca7d837+8 0:8:count.txt\n",
                                                  "portable_data_hash":"1b02aaa62528d28a5be41651cbb9d7c7+59"})
@@ -569,7 +587,8 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
         keep = ArvadosFileWriterTestCase.MockKeep({"781e5e245d69b566979b86e28d23f2c7+10": "0123456789"})
         api = ArvadosFileWriterTestCase.MockApi({"name":"test_overwrite",
                                                  "manifest_text":". 2e9ec317e197819358fbc43afca7d837+8 0:8:count.txt\n",
-                                                 "replication_desired":None},
+                                                 "replication_desired":None,
+                                                 "storage_classes_desired": ['default']},
                                                 {"uuid":"zzzzz-4zz18-mockcollection0",
                                                  "manifest_text":". 2e9ec317e197819358fbc43afca7d837+8 0:8:count.txt\n",
                                                  "portable_data_hash":"7a461a8c58601798f690f8b368ac4423+51"})
@@ -600,7 +619,8 @@ class ArvadosFileWriterTestCase(unittest.TestCase):
         keep = ArvadosFileWriterTestCase.MockKeep({})
         api = ArvadosFileWriterTestCase.MockApi({"name":"test_create_multiple",
                                                  "manifest_text":". 2e9ec317e197819358fbc43afca7d837+8 e8dc4081b13434b45189a720b77b6818+8 0:8:count1.txt 8:8:count2.txt\n",
-                                                 "replication_desired":None},
+                                                 "replication_desired":None,
+                                                 "storage_classes_desired": ['default']},
                                                 {"uuid":"zzzzz-4zz18-mockcollection0",
                                                  "manifest_text":". 2e9ec317e197819358fbc43afca7d837+8 e8dc4081b13434b45189a720b77b6818+8 0:8:count1.txt 8:8:count2.txt\n",
                                                  "portable_data_hash":"71e7bb6c00d31fc2b4364199fd97be08+102"})

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list