Attempts to fix go vet for circle
This commit is contained in:
parent
9297693675
commit
8a555bbb5f
1 changed files with 27 additions and 33 deletions
|
@ -90,18 +90,16 @@ func TestPush(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handler := testutil.NewHandler(append(blobRequestResponseMappings, testutil.RequestResponseMap{
|
handler := testutil.NewHandler(append(blobRequestResponseMappings, testutil.RequestResponseMapping{
|
||||||
{
|
Request: testutil.Request{
|
||||||
Request: testutil.Request{
|
Method: "PUT",
|
||||||
Method: "PUT",
|
Route: "/v2/" + name + "/manifest/" + tag,
|
||||||
Route: "/v2/" + name + "/manifest/" + tag,
|
Body: manifestBytes,
|
||||||
Body: manifestBytes,
|
|
||||||
},
|
|
||||||
Response: testutil.Response{
|
|
||||||
StatusCode: http.StatusOK,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}...))
|
Response: testutil.Response{
|
||||||
|
StatusCode: http.StatusOK,
|
||||||
|
},
|
||||||
|
}))
|
||||||
server := httptest.NewServer(handler)
|
server := httptest.NewServer(handler)
|
||||||
client := New(server.URL)
|
client := New(server.URL)
|
||||||
objectStore := &memoryObjectStore{
|
objectStore := &memoryObjectStore{
|
||||||
|
@ -183,18 +181,16 @@ func TestPull(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
handler := testutil.NewHandler(append(blobRequestResponseMappings, testutil.RequestResponseMap{
|
handler := testutil.NewHandler(append(blobRequestResponseMappings, testutil.RequestResponseMapping{
|
||||||
{
|
Request: testutil.Request{
|
||||||
Request: testutil.Request{
|
Method: "GET",
|
||||||
Method: "GET",
|
Route: "/v2/" + name + "/manifest/" + tag,
|
||||||
Route: "/v2/" + name + "/manifest/" + tag,
|
|
||||||
},
|
|
||||||
Response: testutil.Response{
|
|
||||||
StatusCode: http.StatusOK,
|
|
||||||
Body: manifestBytes,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}...))
|
Response: testutil.Response{
|
||||||
|
StatusCode: http.StatusOK,
|
||||||
|
Body: manifestBytes,
|
||||||
|
},
|
||||||
|
}))
|
||||||
server := httptest.NewServer(handler)
|
server := httptest.NewServer(handler)
|
||||||
client := New(server.URL)
|
client := New(server.URL)
|
||||||
objectStore := &memoryObjectStore{
|
objectStore := &memoryObjectStore{
|
||||||
|
@ -306,18 +302,16 @@ func TestPullResume(t *testing.T) {
|
||||||
}
|
}
|
||||||
|
|
||||||
for i := 0; i < 3; i++ {
|
for i := 0; i < 3; i++ {
|
||||||
layerRequestResponseMappings = append(layerRequestResponseMappings, testutil.RequestResponseMap{
|
layerRequestResponseMappings = append(layerRequestResponseMappings, testutil.RequestResponseMapping{
|
||||||
{
|
Request: testutil.Request{
|
||||||
Request: testutil.Request{
|
Method: "GET",
|
||||||
Method: "GET",
|
Route: "/v2/" + name + "/manifest/" + tag,
|
||||||
Route: "/v2/" + name + "/manifest/" + tag,
|
|
||||||
},
|
|
||||||
Response: testutil.Response{
|
|
||||||
StatusCode: http.StatusOK,
|
|
||||||
Body: manifestBytes,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
}...)
|
Response: testutil.Response{
|
||||||
|
StatusCode: http.StatusOK,
|
||||||
|
Body: manifestBytes,
|
||||||
|
},
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
handler := testutil.NewHandler(layerRequestResponseMappings)
|
handler := testutil.NewHandler(layerRequestResponseMappings)
|
||||||
|
|
Loading…
Reference in a new issue