17800: Exposes bug on test.
authorLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 14 Jun 2021 13:38:14 +0000 (10:38 -0300)
committerLucas Di Pentima <lucas.dipentima@curii.com>
Mon, 14 Jun 2021 13:38:14 +0000 (10:38 -0300)
Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <lucas.dipentima@curii.com>

sdk/python/tests/test_arv_put.py

index caa03a3e03c02692204f3e707fe31df7a97961ad..fb20eeedefa8f030856849f607c55d73f7c1dc72 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())