Commit Graph

55 Commits

Author SHA1 Message Date
tungol
55c589072f
Admin: sorting imports with ruff (#7075) 2023-11-30 14:55:51 -01:00
Bert Blommers
90e8bb1313
Techdebt: Improve/fix exception handling in tests (#7011) 2023-11-09 22:17:46 -01:00
rafcio19
060b10974f
ECR: image digest fix (#6999) 2023-11-07 17:29:35 -01:00
Miki Watanabe
5b2da11e19
BUG: fix lint error E721 (#6767)
Co-authored-by: 渡邊 美希 <miki.watanabe@watanabes-MacBook-Pro.local>
Co-authored-by: Bert Blommers <info@bertblommers.nl>
2023-09-06 13:08:35 +00:00
Bert Blommers
58ad693c42
Techdebt: Replace sure with regular asserts in ECR (#6530) 2023-07-17 10:21:32 +00:00
David
4011a68f06
ECR: add CreateRepository name validation (#6479) 2023-07-04 15:49:57 +00:00
Bert Blommers
667bb9aa56
ECR: put_image() - ensure that we can overwrite tags on image with multiple tags (#6408) 2023-06-15 09:28:23 +00:00
Scarlett
45d8c3ae82
ECR: Implement ImageAlreadyExistsException (#6342) 2023-05-29 20:43:17 +00:00
Zachary Elliott
ff48188362
Corrects ECRClient.batch_get_image tag handling (#6230) 2023-04-19 16:55:28 +00:00
Ian Tempest
20ea1f43ac
ecr.put_image - Support imageManifestMediaType parameter (issue 6135) (#6136)
* ecr.put_image - Support imageManifestMediaType parameter (issue 6135)

* test_put_image_without_mediatype alternative error raised in server mode

* Fix indentation in test_put_image_without_mediatype
2023-03-30 08:40:57 +01:00
Brendan Keane
2cf770f697
ECR Manifest List Support (#5753) 2022-12-16 17:22:43 -01:00
Brendan Keane
3d95ac0978
AWSlambda: Let create_function reference ECR via ImageUri (#5688) 2022-11-23 12:16:33 -01:00
Bert Blommers
1a8ddc0f2b
Techdebt: Replace string-format with f-strings (for tests dirs) (#5678) 2022-11-17 21:41:08 -01:00
Bert Blommers
8e9f12b875
ECR - Tags should be unique (#5566) 2022-10-15 09:50:42 +00:00
Bert Blommers
3d913f8f15
MultiAccount support (#5192) 2022-08-13 09:49:43 +00:00
Bert Blommers
5d84eec79e
Enable more TF tests (#5148) 2022-05-19 11:08:02 +00:00
Bert Blommers
3e2adbcc3a
ECR - Fix bug in batch_delete where images could not be deleted (#4969) 2022-03-25 14:11:54 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
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