Commit Graph

31 Commits

Author SHA1 Message Date
Bert Blommers
eed32a5f72
Pylint - Enable more rules on source and tests-directory (#4929) 2022-03-11 20:28:45 -01:00
Bert Blommers
29d01c35bc
Update Black + formatting (#4926) 2022-03-10 13:39:59 -01:00
Bert Blommers
f8be8ce2b8
ACM improvements (#4847) 2022-02-09 21:38:09 -01:00
Bert Blommers
14a69c7524
Techdebt: Enable pylint rules (#4432) 2021-10-18 19:44:29 +00:00
Bert Blommers
1f13d6c406
Feature: ACM: in_use_by (#4414) 2021-10-14 21:43:10 +00:00
Paul Roberts
f9654f62da
Implement ACM export_certificate function (#4300)
Co-authored-by: Paul Roberts <paroberts@guidewire.com>
2021-09-17 09:44:40 +00:00
Bert Blommers
11883a1fda
Remove unnecessary dependencies EC2/SQS (#4094)
* Add missing dependencies for EFS
2021-07-29 06:38:16 +01:00
Kai Xia(夏恺)
5eb99da75a
Make it possible to customize the ACM cert validation wait time. (#3843)
* Make it possible to customize the ACM cert validation wait time.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>

* address PR comments & change requests.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>

* make tests work.

Signed-off-by: Kai Xia <kaix+github@fastmail.com>
2021-04-10 08:13:20 +01: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
6d364dc7aa Pytest model of exceptions uses 'value' attribute instead of 'exception'. 2020-11-11 12:21:04 +01:00
Matěj Cepl
5697ff87a8 Back to Black 2020-11-10 14:12:38 +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
nom3ad
fe361f861d
Enable more unit tests for ACM (#3372)
* Enable more unit tests for ACM

* put a smile on travis-ci face

Co-authored-by: nom3ad <nom3ad@gmail.com>
Co-authored-by: Bert Blommers <bblommers@users.noreply.github.com>
2020-10-12 14:43:36 +01:00
nom3ad
ea0ba91f63
support Tags parameter in ACM import_certificate() and request_certificate() methods (#3373)
* ACM: support `tags` parameter in import_certificate()

* ACM: support tags parameter in  request_certificate()

* ACM: better tag operations with more unit tests

Co-authored-by: nom3ad <nom3ad@gmail.com>
2020-10-12 07:55:14 +01:00
nom3ad
502818be4c
Fixes acm:describe_certificate for imported certificates having no SAN extension (#3370)
* Fix(test_acm): describe_certificate testcase does't execute

* handle acm certificates lacking extensions

Co-authored-by: nom3ad <nom3ad@gmail.com>
2020-10-10 22:32:42 +01:00
Fabio Dias
743dd46399 black linting 2019-12-16 21:25:20 -05:00
Fabio Dias
fd9ac4b9a5 ACCOUNT_ID moved to moto.core, MOTO_ACCOUNT_ID env var override 2019-12-16 21:05:29 -05:00
Fabio Dias
b83a750630 Added references to moto.iam.models.ACCOUNT_ID instead of hardcoded id 2019-12-16 19:56:11 -05:00
Asher Foa
96e5b1993d Run black on moto & test directories. 2019-10-31 10:36:05 -07:00
Bernhard M. Wiedemann
951a5a6b00 Extend test cert validity to 2049
to make tests pass in 2027

Background:
As part of my work on reproducible builds for openSUSE, I check
that software still gives identical build results in the future.
The usual offset is +15 years, because that is how long I expect
some software will be used in some places.
This showed up failing tests in our package build.

See https://reproducible-builds.org/ for why this matters.

Note: I tested that i586 builds still pass tests on 2036-12-01
so are not affected by the year 2038 bug yet.

i586 builds in 2037 suffer from a y2038 bug (unrelated to this change):
 botocore/utils.py parse_timestamp threw a
  ValueError: Invalid timestamp "2174774434": Parser must be a string or character stream, not long
2019-10-21 17:12:16 +02:00
Mike Grima
1de371ca76
Merge pull request #2374 from asherf/acm
[ACM] Use the specified region name when generating ARN for a requested cert.
2019-08-21 12:56:59 -07:00
Asher Foa
d669145b71 Filter certs by statuses. 2019-08-19 18:01:21 -07:00
Asher Foa
66a7ace2c5 Use the specified region name when generating ARN for a requested cert. 2019-08-19 17:30:30 -07:00
Steve Pulec
f38378d7ec Revert "Add back ACM tests."
This reverts commit d11ecdddde.
2018-04-13 10:37:06 -04:00
Steve Pulec
d11ecdddde Add back ACM tests. 2018-04-13 10:16:13 -04:00
Terry Cain
eccb536d8a ACM ~100% coverage 2017-10-28 17:07:34 +01:00
Argishti Rostamian
f02f4646ea add test 2017-10-19 17:47:21 -07:00
Terry Cain
e3034275db Finished ACM + tests 2017-09-22 14:26:05 +01:00
Terry Cain
edbbbf6d20 Nearly finished implementation and tests 2017-09-22 11:21:36 +01:00
Terry Cain
283b67cb9b
Added nearly all ACM method implementations
Added cryptography>=2.0.0 to install deps
Created base backend and certificate objects
Implemented most of the methods
Added pregenerated certs
2017-09-22 00:20:26 +01:00