Skip to content

Commit

Permalink
update testing code according to the latest spec
Browse files Browse the repository at this point in the history
As PR opencontainers#206 has been merged, the testing code should be updated accordingly.
Signed-off-by: Wang Yan <wangyan@vmware.com>
  • Loading branch information
wy65701436 committed Feb 2, 2021
1 parent d8b559c commit 6846b06
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion conformance/02_push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ var test02Push = func() {
Expect(err).To(BeNil())
location := resp.Header().Get("Location")
Expect(location).ToNot(BeEmpty())
Expect(resp.StatusCode()).To(Equal(http.StatusCreated))
Expect(resp.StatusCode()).To(Equal(http.StatusAccepted))
})

g.Specify("GET request to blob URL from prior request should yield 200", func() {
Expand Down
4 changes: 0 additions & 4 deletions conformance/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,9 @@ const (
MANIFEST_BLOB_UNKNOWN
MANIFEST_INVALID
MANIFEST_UNKNOWN
MANIFEST_UNVERIFIED
NAME_INVALID
NAME_UNKNOWN
SIZE_INVALID
TAG_INVALID
UNAUTHORIZED
DENIED
UNSUPPORTED
Expand Down Expand Up @@ -268,11 +266,9 @@ func init() {
MANIFEST_BLOB_UNKNOWN: "MANIFEST_BLOB_UNKNOWN",
MANIFEST_INVALID: "MANIFEST_INVALID",
MANIFEST_UNKNOWN: "MANIFEST_UNKNOWN",
MANIFEST_UNVERIFIED: "MANIFEST_UNVERIFIED",
NAME_INVALID: "NAME_INVALID",
NAME_UNKNOWN: "NAME_UNKNOWN",
SIZE_INVALID: "SIZE_INVALID",
TAG_INVALID: "TAG_INVALID",
UNAUTHORIZED: "UNAUTHORIZED",
DENIED: "DENIED",
UNSUPPORTED: "UNSUPPORTED",
Expand Down

0 comments on commit 6846b06

Please sign in to comment.