Commit Graph

68 Commits

Author SHA1 Message Date
Bert Blommers
65dd0f1660
KMS - duplicate boto tests (#3916) 2021-09-22 20:37:03 +00:00
stromp
097a260dce
Fixes issue #4312 (#4323) 2021-09-22 16:35:50 +00:00
Bert Blommers
c0853aa99d
KMS - CreateKey without desc should return empty desc (#4305) 2021-09-18 21:12:18 +00:00
Bert Blommers
7acdfe4feb
Introduce Pylint to check for duplicate test method names (#3684) 2021-08-21 16:33:15 +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
Bert Blommers
7693d77333
Remove Py2 support (#3915) 2021-07-26 07:40:39 +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
Bert Blommers
273ca63d59 Linting 2020-11-11 15:55:37 +00:00
Bert Blommers
cb6731f340 Convert fixtures/exceptions to Pytest 2020-11-11 15:54:01 +00:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +01:00
Matěj Cepl
ea489bce6c Finish porting from nose to pytest. 2020-11-10 08:25:05 +01: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
Brady
c162f02091 re-add coverage and remove unused import 2020-02-21 15:39:23 -05:00
Brady
1221d2653a fix test cases, bug when no tags are present and conflict 2020-02-21 15:21:41 -05:00
Bryan Alexander
38413577fc fixes bug in resourcetaggingapi/get_kms_tags 2020-02-19 09:18:01 -06:00
Bryan Alexander
d1efedec29 updates kms to use tagging service and support untag_resource 2020-02-18 13:40:34 -06:00
Bryan Alexander
445f474534 merging from master 2020-02-18 10:47:05 -06:00
gruebel
ec56351416 Move boto3 tests to separate file 2020-02-07 16:28:23 +01:00
gruebel
4833419499 Fix CreationDate handling 2020-02-07 15:38:37 +01:00
gruebel
5d05044491 Add CustomerMasterKeySpec parameter handling 2020-02-06 17:57:00 +01:00
gruebel
40bd4f1603 Fix kms.create_key default output 2020-01-31 17:16:42 +01:00
Bryan Alexander
85207b885b updates KMS service to use TaggingService 2020-01-16 12:10:38 -06:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Jack Danger
d99204369d Flaky test fix: random bytes can look like base64 2019-10-23 16:33:09 -07:00
mattsb42-aws
4c7cdec965 fix encoding for Python 2 in KMS tests 2019-09-13 14:08:26 -07:00
mattsb42-aws
24832982d4 convert tests from boto to boto3 and add unicode plaintext vector to test auto-conversion 2019-09-13 13:32:19 -07:00
mattsb42-aws
c44178f2f7 add tests for invalid values passed to generate_random 2019-09-13 13:19:11 -07:00
mattsb42-aws
9a095d731a add tests for invalid aliases in describe_key 2019-09-13 13:01:55 -07:00
mattsb42-aws
aa6b505415 fix tests to expect the correct error 2019-09-12 17:42:43 -07:00
mattsb42-aws
f4c5dfbdfb reorganize and centralize key ID validation 2019-09-12 17:42:40 -07:00
mattsb42-aws
f7043e1eaf add kms:GenerateRandom and tests 2019-08-27 20:55:58 -07:00
mattsb42-aws
dd63cebf81 add kms:ReEncrypt invalid destination key test 2019-08-27 20:49:47 -07:00
mattsb42-aws
9ffb9d3d0a add kms:ReEncrypt and tests 2019-08-27 20:24:57 -07:00
mattsb42-aws
d5ac5453b3 streamline KMS tests 2019-08-27 13:57:50 -07:00
mattsb42-aws
98581b9196 add proper KMS encrypt, decrypt, and generate_data_key functionality and tests 2019-08-27 13:42:36 -07:00
mattsb42-aws
3fe8afaa60 add tests for generate_data_key and generate_master_key 2019-08-26 23:29:30 -07:00
mattsb42-aws
7eeead8a37 add encrypt/decrypt utility functions with appropriate exceptions and tests 2019-08-26 23:24:31 -07:00
Earl Robinson
bbaff4b273 restore KeyId to test_decrypt in test_kms 2019-08-14 08:39:54 -04:00
Jack Danger
348dc54e6a
Supporting tags in KMS (#2332)
The CreateKey API method accepts tags but does not return them.
2019-07-24 19:15:43 -07:00
James Bungard
796dd71c0c Platform independent KMS timestamp generation (#2193)
* Platform independent KMS timestamp generation

Fixes #2192

* Switch to moto.core.unix_time

Fixes #2192
2019-05-21 17:46:22 +01:00
Terry Cain
4a286c4bc2
KMS generate_data_key (#2071)
* Added KMS.generate_data_key and KMS.generate_date_key_without_plaintext

Increase test coverage to cover Key not found

* Added test for kms.put_key_policy key not found
2019-04-26 20:52:24 +01:00
Earl Robinson
dbdc8925e3 add KeyId value to kms.responses.encrypt and kms.responses.decrypt 2019-03-29 21:07:32 -04:00
Mike Grima
921b5a3227 Fixing broken tests #2126
- KMS
- S3
- CloudFormation (Thanks kgutwin!)
2019-03-28 10:09:03 -07:00
William Rubel
921a993330 cleaning up files 2019-02-17 14:30:43 -06:00
William Rubel
4c6f08d463 Update kms and lambda to work with terraform 2019-02-16 09:27:23 -06:00
Jon Beilke
181e9690b8 need os for checking server mode env variable 2018-10-08 08:38:49 -05:00
Jon Beilke
c2595b2eef cant manipulate time in server mode tests 2018-10-08 08:29:21 -05:00
Jon Beilke
76baab74ad missing tzlocal 2018-10-06 01:33:02 -05:00
Jon Beilke
9b25d56a35 need datetime for tests since thats what boto3 returns and add default for PendingWindowInDays 2018-10-06 01:18:26 -05:00
Jon Beilke
59c233f431 avoid needing to import datetime and dealing with timezone vs naive datetimes in tests 2018-10-06 00:33:23 -05:00