|
|
@@ -192,7 +192,7 @@ func (s *ImageDataTestSuite) TestDownloadStatusForbidden() {
|
|
|
imgdata, err := Download(context.Background(), s.server.URL, "Test image", DownloadOptions{}, security.DefaultOptions())
|
|
|
|
|
|
s.Require().Error(err)
|
|
|
- s.Require().Equal(404, ierrors.Wrap(err, 0).StatusCode())
|
|
|
+ s.Require().Equal(403, ierrors.Wrap(err, 0).StatusCode())
|
|
|
s.Require().Nil(imgdata)
|
|
|
}
|
|
|
|
|
|
@@ -204,7 +204,7 @@ func (s *ImageDataTestSuite) TestDownloadStatusInternalServerError() {
|
|
|
imgdata, err := Download(context.Background(), s.server.URL, "Test image", DownloadOptions{}, security.DefaultOptions())
|
|
|
|
|
|
s.Require().Error(err)
|
|
|
- s.Require().Equal(500, ierrors.Wrap(err, 0).StatusCode())
|
|
|
+ s.Require().Equal(502, ierrors.Wrap(err, 0).StatusCode())
|
|
|
s.Require().Nil(imgdata)
|
|
|
}
|
|
|
|