mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 04:17:55 +08:00
conformance: fix cross-mount behavior when 'from' is missing
fixes issue #442 Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
Ramkumar Chinchani
parent
95e4b2054b
commit
4be2652085
@@ -2665,7 +2665,7 @@ func TestCrossRepoMount(t *testing.T) {
|
||||
SetBasicAuth(username, passphrase).SetQueryParams(params).
|
||||
Post(baseURL + "/v2/zot-mount-test/blobs/uploads/")
|
||||
So(err, ShouldBeNil)
|
||||
So(postResponse.StatusCode(), ShouldEqual, http.StatusMethodNotAllowed)
|
||||
So(postResponse.StatusCode(), ShouldEqual, http.StatusAccepted)
|
||||
|
||||
params = make(map[string]string)
|
||||
params["from"] = "zot-cve-test"
|
||||
@@ -3902,7 +3902,7 @@ func TestRouteFailures(t *testing.T) {
|
||||
resp = response.Result()
|
||||
defer resp.Body.Close()
|
||||
So(resp, ShouldNotBeNil)
|
||||
So(resp.StatusCode, ShouldEqual, http.StatusMethodNotAllowed)
|
||||
So(resp.StatusCode, ShouldEqual, http.StatusAccepted)
|
||||
})
|
||||
|
||||
Convey("Get blob upload", func() {
|
||||
|
||||
Reference in New Issue
Block a user