17800: Exposes bug on test.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 14 Jun 2021 13:38:14 +0000 (10:38 -0300)
committerPeter Amstutz <peter.amstutz@curii.com>
Wed, 7 Jul 2021 21:30:01 +0000 (17:30 -0400)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

sdk/python/tests/test_arv_put.py

index e75d39d8793ffb6032a8591a37d9d5da2168ba72..1834dbf14af368f193679a8b468ddbe32238d82b 100644 (file)
@@ -308,6 +308,13 @@ class ArvPutUploadJobTest(run_test_server.TestCaseWithServers,
         self.assertNotIn('linkeddir', cwriter.manifest_text())
         self.assertNotIn('linkedfile', cwriter.manifest_text())
         cwriter.destroy_cache()
+        # Check for bug #17800: passed symlinks should also be ignored.
+        linked_dir = os.path.join(self.tempdir_with_symlink, 'linkeddir')
+        cwriter = arv_put.ArvPutUploadJob([linked_dir], follow_links=False)
+        cwriter.start(save_collection=False)
+        self.assertNotIn('linkeddir', cwriter.manifest_text())
+        cwriter.destroy_cache()
+
 
     def test_passing_nonexistant_path_raise_exception(self):
         uuid_str = str(uuid.uuid4())