Skip to content

Commit

Permalink
tests(gitlab): remove old data and actualization test
Browse files Browse the repository at this point in the history
Signed-off-by: lxShaDoWxl <[email protected]>
  • Loading branch information
lxShaDoWxl authored and chlins committed Apr 17, 2023
1 parent f3e63b8 commit 1633d98
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 201 deletions.
10 changes: 2 additions & 8 deletions src/pkg/reg/adapter/gitlab/adapter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,10 @@ func getServer(t *testing.T) *httptest.Server {
w.Header().Set("X-Next-Page", "")

switch search {
case "dev-docker":
case "library/dev-docker", "library", "library/", "dev-docker/", "dev-docker":
mustWriteHTTPResponse(t, w, "testdata/projects/dev-docker.json")
break
case "dev-":
mustWriteHTTPResponse(t, w, "testdata/projects/dev-docker.json")
break
case "-docker":
mustWriteHTTPResponse(t, w, "testdata/projects/-docker.json")
break
case "":
case "", "library/dockers":
mustWriteHTTPResponse(t, w, "testdata/projects/all.json")
break
default:
Expand Down
97 changes: 0 additions & 97 deletions src/pkg/reg/adapter/gitlab/testdata/projects/-docker.json

This file was deleted.

96 changes: 0 additions & 96 deletions src/pkg/reg/adapter/gitlab/testdata/projects/dev-.json

This file was deleted.

0 comments on commit 1633d98

Please sign in to comment.