15836: Use proper URL encoding in test case.
authorTom Clegg <tom@tomclegg.ca>
Thu, 16 Jan 2020 17:12:51 +0000 (12:12 -0500)
committerTom Clegg <tom@tomclegg.ca>
Thu, 16 Jan 2020 17:12:51 +0000 (12:12 -0500)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

services/keep-web/handler_test.go

index 7d820c8a0adb61b97befe8d02477fb34b31615f4..29bcdac1b72a9ee23dea8d6828d94fc53f8f3b8d 100644 (file)
@@ -550,8 +550,8 @@ func (s *IntegrationSuite) TestForwardSlashSubstitution(c *check.C) {
 
        base := "http://download.example.com/by_id/" + coll.OwnerUUID + "/"
        for tryURL, expectRegexp := range map[string]string{
-               base:                   `(?ms).*href="./` + nameShownEscaped + `/"\S+` + nameShown + `.*`,
-               base + nameShown + "/": `(?ms).*href="./filename"\S+filename.*`,
+               base:                          `(?ms).*href="./` + nameShownEscaped + `/"\S+` + nameShown + `.*`,
+               base + nameShownEscaped + "/": `(?ms).*href="./filename"\S+filename.*`,
        } {
                u, _ := url.Parse(tryURL)
                req := &http.Request{