diff --git a/pkg/handlers/create_test.go b/pkg/handlers/create_test.go index 335ab2d3..912763dd 100644 --- a/pkg/handlers/create_test.go +++ b/pkg/handlers/create_test.go @@ -38,7 +38,7 @@ func TestMakeCreateHandler(t *testing.T) { // Create a fake MinIO server server := httptest.NewServer(http.HandlerFunc(func(rw http.ResponseWriter, hreq *http.Request) { - if hreq.URL.Path != "/test" && hreq.URL.Path != "/test/input/" && hreq.URL.Path != "/output" && !strings.HasPrefix(hreq.URL.Path, "/minio/admin/v3/") { + if hreq.URL.Path != "/test" && hreq.URL.Path != "/test/input/" && hreq.URL.Path != "/test/output/" && hreq.URL.Path != "/test/mount/" && !strings.HasPrefix(hreq.URL.Path, "/minio/admin/v3/") { t.Errorf("Unexpected path in request, got: %s", hreq.URL.Path) } @@ -88,10 +88,14 @@ func TestMakeCreateHandler(t *testing.T) { ], "output": [ { - "storage_provider": "webdav.id", - "path": "/output" + "storage_provider": "minio", + "path": "/test/output" } ], + "mount": { + "storage_provider": "minio", + "path": "/test/mount" + }, "storage_providers": { "webdav": { "id": {