Bert Blommers
0eb8ec47ad
ECR - Persist RegistryID when creating a repository ( #4742 )
2022-01-06 21:05:23 -01:00
Boris Bera
b0c22c6ac1
Ensure that imagePushedAt fields from ECR is timezone aware ( #4501 )
2021-10-30 10:00:40 +00:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules ( #4432 )
2021-10-18 19:44:29 +00:00
Anton Grübel
0d06ebb5fc
Add ecr replication config ( #4170 )
2021-08-14 16:15:56 +01:00
Anton Grübel
cbfb450430
Support force flag in ecr.delete_repository ( #4167 )
2021-08-12 06:08:28 +01:00
Anton Grübel
b8405b39b5
Add ecr image scan ( #4166 )
...
* Add ecr.start_image_scan
* Add ecr.describe_image_scan_findings
2021-08-12 06:06:21 +01:00
Anton Grübel
6f361e6afb
Add ecr registry policy ( #4159 )
...
* Add ecr.put_registry_policy
* Add ecr.get_registry_policy
* Add ecr.delete_registry_policy
* Add ecr registry policy test for Terraform and cleanup
2021-08-11 13:18:12 +01:00
Anton Grübel
298e220122
Add ecr lifecycle policy ( #4153 )
...
* Add ecr.put_lifecycle_policy
* Add ecr.get_lifecycle_policy
* Add ecr.delete_lifecycle_policy
* Add ecr lifecycle policy test for Terraform
2021-08-09 14:55:29 +01:00
Anton Grübel
b4ae6a9cce
Add ecr repo policy ( #4148 )
...
* Add ecr.set_repository_policy
* Add ecr.get_repository_policy
* Add ecr.delete_repository_policy
2021-08-07 08:48:28 +01:00
Anton Grübel
cadbee35cb
Add ecr tag mutability & image scan config ( #4139 )
...
* Add ecr.put_image_tag_mutability
* Add ecr.put_image_scanning_configuration
2021-08-05 14:23:11 +01:00
Anton Grübel
788b8e617d
Update ecr ( #4128 )
...
* Add ecr.list_tags_for_resource
* Add ecr.tag_resource
* Add ecr.untag_resource
* Add default KMS key policy, if not specified
2021-08-03 16:21:15 +01:00
Brian Pandola
cd044ef00b
Remove redundant test code ( #3640 )
...
These tests, when run, do not execute any `moto` code. They fail the
parameter validation check in `botocore`, which raises an exception
before ever sending a request. These tests do not cover or verify
any `moto` behavior and have been removed.
2021-01-31 12:21:24 +00:00
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