aws apigateway create,get domain names

This commit is contained in:
usmankb 2020-04-08 03:18:42 +05:30
commit 856c07de63
5 changed files with 169 additions and 1 deletions

View file

@ -1483,6 +1483,23 @@ def test_deployment():
stage["description"].should.equal("_new_description_")
@mock_apigateway
def test_create_domain_names():
client = boto3.client("apigateway", region_name="us-west-2")
domain_name = "testDomain"
test_certificate_name = "test.certificate"
test_certificate_private_key = "testPrivateKey"
response = client.create_domain_name(domainName=domain_name, certificateName=test_certificate_name,
certificatePrivateKey=test_certificate_private_key)
response["domainName"].should.equal(domain_name)
response["certificateName"].should.equal(test_certificate_name)
result = client.get_domain_names()
result["items"][0]["domainName"].should.equal(domain_name)
result = client.get_domain_name(domainName=domain_name)
result["domainName"].should.equal(domain_name)
@mock_apigateway
def test_http_proxying_integration():
responses.add(