From df1548b6709c1870249568a716d04ff1d5dee5d4 Mon Sep 17 00:00:00 2001 From: wayne warren Date: Wed, 4 Oct 2023 22:37:46 -0600 Subject: [PATCH] conformance: don't require http 202 for already-deleted manifest config Signed-off-by: wayne warren --- conformance/02_push_test.go | 1 + conformance/04_management_test.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/conformance/02_push_test.go b/conformance/02_push_test.go index c8844114..8da40359 100644 --- a/conformance/02_push_test.go +++ b/conformance/02_push_test.go @@ -421,6 +421,7 @@ var test02Push = func() { BeNumerically("<", 300), ), Equal(http.StatusMethodNotAllowed), + Equal(http.StatusNotFound), )) }) diff --git a/conformance/04_management_test.go b/conformance/04_management_test.go index 556d06d0..1fabe432 100644 --- a/conformance/04_management_test.go +++ b/conformance/04_management_test.go @@ -153,7 +153,10 @@ var test04ContentManagement = func() { resp, err = client.Do(req) Expect(err).To(BeNil()) Expect(err).To(BeNil()) - Expect(resp.StatusCode()).To(Equal(http.StatusAccepted)) + Expect(resp.StatusCode()).To(SatisfyAny( + Equal(http.StatusAccepted), + Equal(http.StatusNotFound), + )) }) g.Specify("GET request to deleted blob URL should yield 404 response", func() {