Skip to content

Commit

Permalink
Merge pull request #541 from sudo-bmitch/pr-conformance-blob-404
Browse files Browse the repository at this point in the history
Allow 404 on blob deletion in conformance tests
  • Loading branch information
mikebrow committed Jul 18, 2024
2 parents f43ee1b + 47008ca commit 11b8e3f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 3 additions & 0 deletions conformance/01_pull_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,6 +298,7 @@ var test01Pull = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
})
Expand All @@ -312,6 +313,7 @@ var test01Pull = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
})
Expand All @@ -327,6 +329,7 @@ var test01Pull = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
})
Expand Down
3 changes: 2 additions & 1 deletion conformance/02_push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,8 @@ var test02Push = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusMethodNotAllowed),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
})

Expand All @@ -436,6 +436,7 @@ var test02Push = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
})
Expand Down
6 changes: 4 additions & 2 deletions conformance/03_discovery_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,8 +405,8 @@ var test03ContentDiscovery = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusMethodNotAllowed),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
}
})
Expand All @@ -423,6 +423,7 @@ var test03ContentDiscovery = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
})
Expand All @@ -438,6 +439,7 @@ var test03ContentDiscovery = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
})
Expand Down Expand Up @@ -484,8 +486,8 @@ var test03ContentDiscovery = func() {
BeNumerically(">=", 200),
BeNumerically("<", 300),
),
Equal(http.StatusMethodNotAllowed),
Equal(http.StatusNotFound),
Equal(http.StatusMethodNotAllowed),
))
}

Expand Down

0 comments on commit 11b8e3f

Please sign in to comment.