TestObjectNotFound verifies that requesting a non-existent object returns 404
()
| 153 | |
| 154 | // TestObjectNotFound verifies that requesting a non-existent object returns 404 |
| 155 | func (s *ReaderSuite) TestObjectNotFound() { |
| 156 | ctx := s.T().Context() |
| 157 | reqHeader := make(http.Header) |
| 158 | |
| 159 | response, err := s.Storage().GetObject(ctx, reqHeader, s.TestContainer, "nonexistent/object.png", "") |
| 160 | s.Require().NoError(err) |
| 161 | s.Require().Equal(http.StatusNotFound, response.Status) |
| 162 | } |
| 163 | |
| 164 | // TestContainerNotFound verifies that requesting from a non-existent container returns 404 |
| 165 | func (s *ReaderSuite) TestContainerNotFound() { |