sync: skip tls verify on /v2/_catalog when a registry is configured with tls-verify false

Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
Petu Eusebiu
2021-11-18 13:54:32 +02:00
committed by Ramkumar Chinchani
parent 5f8f61407e
commit 7ada50e9c8
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -2105,7 +2105,7 @@ func TestSyncInvalidCerts(t *testing.T) {
Convey("Test sync on POST request on /sync", func() {
resp, _ := resty.R().Post(destBaseURL + "/sync")
So(resp, ShouldNotBeNil)
So(string(resp.Body()), ShouldContainSubstring, "signed by unknown authority")
So(string(resp.Body()), ShouldContainSubstring, "bad certificate")
So(resp.StatusCode(), ShouldEqual, 500)
})
})