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:
Ramkumar Chinchani
2022-03-04 23:21:30 +00:00
committed by Ramkumar Chinchani
parent 95e4b2054b
commit 4be2652085
2 changed files with 2 additions and 9 deletions
+2 -2
View File
@@ -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() {