ACM ~100% coverage
This commit is contained in:
parent
2b9f19ef77
commit
eccb536d8a
@ -1699,17 +1699,17 @@
|
|||||||
- [ ] start_db_instance
|
- [ ] start_db_instance
|
||||||
- [ ] stop_db_instance
|
- [ ] stop_db_instance
|
||||||
|
|
||||||
## acm - 50% implemented
|
## acm - 100% implemented
|
||||||
- [X] add_tags_to_certificate
|
- [x] add_tags_to_certificate
|
||||||
- [X] delete_certificate
|
- [x] delete_certificate
|
||||||
- [ ] describe_certificate
|
- [x] describe_certificate
|
||||||
- [X] get_certificate
|
- [x] get_certificate
|
||||||
- [ ] import_certificate
|
- [x] import_certificate
|
||||||
- [ ] list_certificates
|
- [x] list_certificates
|
||||||
- [ ] list_tags_for_certificate
|
- [x] list_tags_for_certificate
|
||||||
- [X] remove_tags_from_certificate
|
- [x] remove_tags_from_certificate
|
||||||
- [X] request_certificate
|
- [x] request_certificate
|
||||||
- [ ] resend_validation_email
|
- [x] resend_validation_email
|
||||||
|
|
||||||
## elasticache - 0% implemented
|
## elasticache - 0% implemented
|
||||||
- [ ] add_tags_to_resource
|
- [ ] add_tags_to_resource
|
||||||
|
@ -4,6 +4,7 @@ import os
|
|||||||
import boto3
|
import boto3
|
||||||
from freezegun import freeze_time
|
from freezegun import freeze_time
|
||||||
import sure # noqa
|
import sure # noqa
|
||||||
|
import uuid
|
||||||
|
|
||||||
from botocore.exceptions import ClientError
|
from botocore.exceptions import ClientError
|
||||||
|
|
||||||
@ -281,11 +282,23 @@ def test_resend_validation_email_invalid():
|
|||||||
def test_request_certificate():
|
def test_request_certificate():
|
||||||
client = boto3.client('acm', region_name='eu-central-1')
|
client = boto3.client('acm', region_name='eu-central-1')
|
||||||
|
|
||||||
|
token = str(uuid.uuid4())
|
||||||
|
|
||||||
resp = client.request_certificate(
|
resp = client.request_certificate(
|
||||||
DomainName='google.com',
|
DomainName='google.com',
|
||||||
|
IdempotencyToken=token,
|
||||||
SubjectAlternativeNames=['google.com', 'www.google.com', 'mail.google.com'],
|
SubjectAlternativeNames=['google.com', 'www.google.com', 'mail.google.com'],
|
||||||
)
|
)
|
||||||
resp.should.contain('CertificateArn')
|
resp.should.contain('CertificateArn')
|
||||||
|
arn = resp['CertificateArn']
|
||||||
|
|
||||||
|
resp = client.request_certificate(
|
||||||
|
DomainName='google.com',
|
||||||
|
IdempotencyToken=token,
|
||||||
|
SubjectAlternativeNames=['google.com', 'www.google.com', 'mail.google.com'],
|
||||||
|
)
|
||||||
|
resp['CertificateArn'].should.equal(arn)
|
||||||
|
|
||||||
|
|
||||||
@mock_acm
|
@mock_acm
|
||||||
def test_request_certificate_no_san():
|
def test_request_certificate_no_san():
|
||||||
|
Loading…
Reference in New Issue
Block a user