routes: handle "mount blob" to remain compliant

"mount blob" was the only feature we didn't handle.
We don't fully support it yet because we don't have access control
support, but at least handle it and return something sane to remain
compliant.
This commit is contained in:
Ramkumar Chinchani
2019-12-20 10:37:41 -08:00
parent 1e10fa9d80
commit c8563d8672
2 changed files with 20 additions and 0 deletions
+8
View File
@@ -377,6 +377,14 @@ func CheckWorkflows(t *testing.T, config *compliance.Config) {
So(resp.Header().Get("Content-Length"), ShouldEqual, "0")
})
Convey("Mount blobs", func() {
Print("\nMount blobs from another repository")
// create a upload
resp, err := resty.R().Post(baseURL + "/v2/repo/blobs/uploads/?digest=\"abc\"&&from=\"xyz\"")
So(err, ShouldBeNil)
So(resp.StatusCode(), ShouldEqual, 405)
})
Convey("Manifests", func() {
Print("\nManifests")
// create a blob/layer