Arvados-DCO-1.1-Signed-off-by: Lucas Di Pentima <ldipentima@veritasgenetics.com>
stripParts = 4
pathToken = true
} else {
+ log.Info(" !!!! ATTN: Into /collections/uuid/path with anon token: ", h.Config.cluster.Users.AnonymousUserToken)
// /collections/ID/PATH...
collectionID = parseCollectionIDFromURL(pathParts[1])
tokens = []string{h.Config.cluster.Users.AnonymousUserToken}
cutDirs: 1,
},
// This test case fails
- // {
- // uri: "download.example.com/collections/" + arvadostest.FooAndBarFilesInDirUUID + "/",
- // header: authHeader,
- // expect: []string{"dir1/foo", "dir1/bar"},
- // cutDirs: 2,
- // },
+ {
+ uri: "download.example.com/collections/" + arvadostest.FooAndBarFilesInDirUUID + "/",
+ header: authHeader,
+ expect: []string{"dir1/foo", "dir1/bar"},
+ cutDirs: 2,
+ },
{
uri: "download.example.com/users/active/foo_file_in_dir/",
header: authHeader,
cfg.cluster.Services.WebDAV.InternalURLs[arvados.URL{Host: listen}] = arvados.ServiceInstance{}
cfg.cluster.Services.WebDAVDownload.InternalURLs[arvados.URL{Host: listen}] = arvados.ServiceInstance{}
cfg.cluster.ManagementToken = arvadostest.ManagementToken
+ cfg.cluster.Users.AnonymousUserToken = arvadostest.AnonymousToken
s.testServer = &server{Config: cfg}
err = s.testServer.Start()
c.Assert(err, check.Equals, nil)