Skip to content

Commit 11b8e3f

Browse files
authored
Merge pull request #541 from sudo-bmitch/pr-conformance-blob-404
Allow 404 on blob deletion in conformance tests
2 parents f43ee1b + 47008ca commit 11b8e3f

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

conformance/01_pull_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ var test01Pull = func() {
298298
BeNumerically(">=", 200),
299299
BeNumerically("<", 300),
300300
),
301+
Equal(http.StatusNotFound),
301302
Equal(http.StatusMethodNotAllowed),
302303
))
303304
})
@@ -312,6 +313,7 @@ var test01Pull = func() {
312313
BeNumerically(">=", 200),
313314
BeNumerically("<", 300),
314315
),
316+
Equal(http.StatusNotFound),
315317
Equal(http.StatusMethodNotAllowed),
316318
))
317319
})
@@ -327,6 +329,7 @@ var test01Pull = func() {
327329
BeNumerically(">=", 200),
328330
BeNumerically("<", 300),
329331
),
332+
Equal(http.StatusNotFound),
330333
Equal(http.StatusMethodNotAllowed),
331334
))
332335
})

conformance/02_push_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,8 +420,8 @@ var test02Push = func() {
420420
BeNumerically(">=", 200),
421421
BeNumerically("<", 300),
422422
),
423-
Equal(http.StatusMethodNotAllowed),
424423
Equal(http.StatusNotFound),
424+
Equal(http.StatusMethodNotAllowed),
425425
))
426426
})
427427

@@ -436,6 +436,7 @@ var test02Push = func() {
436436
BeNumerically(">=", 200),
437437
BeNumerically("<", 300),
438438
),
439+
Equal(http.StatusNotFound),
439440
Equal(http.StatusMethodNotAllowed),
440441
))
441442
})

conformance/03_discovery_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ var test03ContentDiscovery = func() {
405405
BeNumerically(">=", 200),
406406
BeNumerically("<", 300),
407407
),
408-
Equal(http.StatusMethodNotAllowed),
409408
Equal(http.StatusNotFound),
409+
Equal(http.StatusMethodNotAllowed),
410410
))
411411
}
412412
})
@@ -423,6 +423,7 @@ var test03ContentDiscovery = func() {
423423
BeNumerically(">=", 200),
424424
BeNumerically("<", 300),
425425
),
426+
Equal(http.StatusNotFound),
426427
Equal(http.StatusMethodNotAllowed),
427428
))
428429
})
@@ -438,6 +439,7 @@ var test03ContentDiscovery = func() {
438439
BeNumerically(">=", 200),
439440
BeNumerically("<", 300),
440441
),
442+
Equal(http.StatusNotFound),
441443
Equal(http.StatusMethodNotAllowed),
442444
))
443445
})
@@ -484,8 +486,8 @@ var test03ContentDiscovery = func() {
484486
BeNumerically(">=", 200),
485487
BeNumerically("<", 300),
486488
),
487-
Equal(http.StatusMethodNotAllowed),
488489
Equal(http.StatusNotFound),
490+
Equal(http.StatusMethodNotAllowed),
489491
))
490492
}
491493

0 commit comments

Comments
 (0)