Skip to content

Commit

Permalink
Allow 404 on blob deletion in conformance tests
Browse files Browse the repository at this point in the history
Signed-off-by: Brandon Mitchell <[email protected]>
  • Loading branch information
sudo-bmitch committed Jun 17, 2024
1 parent 8a871c8 commit 47008ca
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 47008ca

Please sign in to comment.