Skip to content

Commit

Permalink
Merge pull request #270 from grycap/micafer_dev
Browse files Browse the repository at this point in the history
Improve create test
  • Loading branch information
catttam authored Nov 21, 2024
2 parents 5376dbf + 8b6ce31 commit c389373
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pkg/handlers/create_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit c389373

Please sign in to comment.