Signed-off-by: Yuan Sun <sunyuan3@huawei.com>
| ... | ... |
@@ -117,6 +117,10 @@ func (s *DockerSuite) TestApiImagesDelete(c *check.C) {
|
| 117 | 117 |
c.Assert(status, check.Equals, http.StatusConflict) |
| 118 | 118 |
c.Assert(err, check.IsNil) |
| 119 | 119 |
|
| 120 |
+ status, _, err = sockRequest("DELETE", "/images/test:noexist", nil)
|
|
| 121 |
+ c.Assert(status, check.Equals, http.StatusNotFound) //Status Codes:404 – no such image |
|
| 122 |
+ c.Assert(err, check.IsNil) |
|
| 123 |
+ |
|
| 120 | 124 |
status, _, err = sockRequest("DELETE", "/images/test:tag1", nil)
|
| 121 | 125 |
c.Assert(status, check.Equals, http.StatusOK) |
| 122 | 126 |
c.Assert(err, check.IsNil) |