Add test cases for special chars in filename.
authorTom Clegg <tom@curii.com>
Wed, 31 Mar 2021 15:45:16 +0000 (11:45 -0400)
committerTom Clegg <tom@curii.com>
Wed, 31 Mar 2021 15:45:16 +0000 (11:45 -0400)
closes #17422

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>

services/keep-web/cadaver_test.go

index 0017a395527a07d4f2ecc401cea628ec15f3acf6..e965a6e8c2de1d0a445360f5c8a047df7e5cc68f 100644 (file)
@@ -134,6 +134,16 @@ func (s *IntegrationSuite) testCadaver(c *check.C, password string, pathFunc fun
                        match: `(?ms).*succeeded.*`,
                        data:  testdata,
                },
+               {
+                       path:  writePath,
+                       cmd:   "move testfile \"test &#!%20 file\"\n",
+                       match: `(?ms).*Moving .* succeeded.*`,
+               },
+               {
+                       path:  writePath,
+                       cmd:   "move \"test &#!%20 file\" testfile\n",
+                       match: `(?ms).*Moving .* succeeded.*`,
+               },
                {
                        path:  writePath,
                        cmd:   "move testfile newdir0/\n",