Commit Graph

25 Commits

Author SHA1 Message Date
Matěj Cepl
77dc60ea97 Port test suite from nose to pytest.
This just eliminates all errors on the tests collection. Elimination of
failures is left to the next commit.
2020-11-10 08:23:44 +01:00
Peter Lithammer
b7cf2d4478
ecr: Fix "imageDigest" value in ecr.list_images() response (#3436) 2020-11-05 14:10:23 +00:00
Dick Marinus
28af7412f8 Change RESTError to JsonRESTError for ImageNotFoundException, update test to expect ImageNotFoundException 2020-03-08 20:56:21 +01:00
Asher Foa
d9d055c75d Fix more typos. 2020-01-23 10:15:02 -08:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Juan Martinez
9a26c92e72 Delete ECR image when it has no tags
This is a bug fix to my initial work when implementing
batch_delete_image. Deleting the last tag for a given image should
delete the image from the backend.

I also cleaned up the tests previously-added in the initial
implementation.
2019-06-17 13:41:35 -04:00
Juan Martinez
ed93821621 Set ECR imagePushedAt to current date and time (#2229) 2019-06-06 13:34:10 +01:00
Juan Martinez
664b27d8e7 Implement ECR batch_delete_image (#2225)
This implements the endpoint in spulec #2224
2019-05-30 18:16:19 +01:00
Stephan Huber
88596518f5 Merge remote-tracking branch 'upstream/master' 2018-09-12 11:48:19 +02:00
Clément Huyghebaert
e32a640861 Fix for spulec/moto#1698 - ECR list_images missing RepositoryNotFoundException 2018-06-25 12:34:10 -04:00
Stephan Huber
ea3366be35 do not allow None as value of image_tags 2018-06-14 09:53:11 +02:00
Stephan Huber
cc799b55da fixed spulec/moto#1684 and fixed spulec/moto#1685 2018-06-14 09:07:09 +02:00
Stephan Huber
3a355f126c first steps undertaken to fix spulec/moto#1684 and spulec/moto#1685 2018-06-13 16:14:18 +02:00
Stephan Huber
ecbaf76413 Fixes #1624 2018-05-09 09:20:48 +02:00
Mike Bjerkness
b855fee2e4 Add batch_get_image support for ECR (#1406)
* Add batch_get_image for ECR

* Add tests for batch_get_image

* Add tests for batch_get_image

* Undo local commits

* Undo local commits

* Adding object representation for batch_get_image

* Update responses. Add a couple more tests.
2017-12-30 18:39:23 -08:00
Terry Cain
49ddb500a8 AWS X-Ray client mock. (#1255)
* X-Ray Client SDK patched

Fixes #1250

* Fixed flake8

* Fixed some issues

* Fixed flake8

* Fixed more typos

* Fixed python2 string

* Fixed aws-sdk patch order

* Added more test cases to test the patching
2017-10-16 17:06:22 -07:00
Hugo Lopes Tavares
e4da4f6cd5 Add more error handling to the ECR backend
The error messages were copied from `botocore`.
New exceptions: RepositoryNotFoundException & ImageNotFoundException.
2017-08-10 19:54:10 -04:00
William Richard
aeefc8056d
Boto actually returns a base64 encoded string of <user>:<password>
Fix the mock to do the same thing
2017-07-26 12:03:20 -04:00
William Richard
025e975e44
Add ecr get_authorization_token response and tests 2017-07-25 17:54:05 -04:00
William Richard
3f20ad2c13
Support filtering by image id or image tag when describing ecr images 2017-06-20 16:22:34 -04:00
William Richard
b67e10d5c9
Make sure the repository response_object is json serializable with images
If images had been pushed to a repository, they would be included in the
response object, and the json encoder could not serialize the Image class.

Since they are not included in the boto response, I just deleted the images
field from the response object for Repositories.

I also found a duplicate test in the ecr class, so I removed one of them.
2017-06-20 15:47:39 -04:00
Mike Bjerkness
91d99e5695 Fix python 3 error with generate sha 2017-05-22 22:50:39 -05:00
Mike Bjerkness
c7a166f68e Remove tests that expect exceptions. 2017-05-22 22:29:49 -05:00
Mike Bjerkness
9f019792df Added tests 2017-05-22 21:57:14 -05:00
Mike Bjerkness
20b3069540 Add ECR tests 2017-05-22 15:52:17 -05:00