X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6403b8728d3120d6cb22583b3963d2a030e88aa3..f2d89d3e3b173f57ff817c373e48b807fe270518:/sdk/python/tests/test_arv_put.py diff --git a/sdk/python/tests/test_arv_put.py b/sdk/python/tests/test_arv_put.py index 7fd073080a..0ce51af8b5 100644 --- a/sdk/python/tests/test_arv_put.py +++ b/sdk/python/tests/test_arv_put.py @@ -579,13 +579,13 @@ class ArvPutIntegrationTest(run_test_server.TestCaseWithServers, stderr=subprocess.PIPE, env=self.ENVIRON) stdout, stderr = pipe.communicate(text) collection_list = arvados.api('v1', cache=False).collections().list( - filters=[['uuid', '=', stdout.strip()]]).execute().get('items', []) + filters=[['portable_data_hash', '=', stdout.strip()]]).execute().get('items', []) self.assertEqual(1, len(collection_list)) return collection_list[0] def test_put_collection_with_unnamed_project_link(self): link = self.run_and_find_collection("Test unnamed collection", - ['--project-uuid', self.PROJECT_UUID]) + ['--portable-data-hash', '--project-uuid', self.PROJECT_UUID]) username = pwd.getpwuid(os.getuid()).pw_name self.assertRegexpMatches( link['name'], @@ -594,7 +594,7 @@ class ArvPutIntegrationTest(run_test_server.TestCaseWithServers, def test_put_collection_with_name_and_no_project(self): link_name = 'Test Collection Link in home project' collection = self.run_and_find_collection("Test named collection in home project", - ['--name', link_name]) + ['--portable-data-hash', '--name', link_name]) self.assertEqual(link_name, collection['name']) my_user_uuid = self.current_user()['uuid'] self.assertEqual(my_user_uuid, collection['owner_uuid']) @@ -602,7 +602,8 @@ class ArvPutIntegrationTest(run_test_server.TestCaseWithServers, def test_put_collection_with_named_project_link(self): link_name = 'Test auto Collection Link' collection = self.run_and_find_collection("Test named collection", - ['--name', link_name, + ['--portable-data-hash', + '--name', link_name, '--project-uuid', self.PROJECT_UUID]) self.assertEqual(link_name, collection['name'])