Fix: elasticbeanstalk ApplicationArn does not contain ApplicationName (#3511)

Fixes #3510
This commit is contained in:
Brian Pandola 2020-12-04 02:31:28 -08:00 committed by GitHub
parent b6369d6250
commit 5e21e50424
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -91,7 +91,7 @@ EB_CREATE_APPLICATION = """
</MaxCountRule>
</VersionLifecycleConfig>
</ResourceLifecycleConfig>
<ApplicationArn>arn:aws:elasticbeanstalk:{{ region_name }}:111122223333:application/{{ application_name }}</ApplicationArn>
<ApplicationArn>arn:aws:elasticbeanstalk:{{ region_name }}:111122223333:application/{{ application.application_name }}</ApplicationArn>
<ApplicationName>{{ application.application_name }}</ApplicationName>
<DateUpdated>2019-09-03T13:08:29.049Z</DateUpdated>
</Application>
@ -125,7 +125,7 @@ EB_DESCRIBE_APPLICATIONS = """
</MaxCountRule>
</VersionLifecycleConfig>
</ResourceLifecycleConfig>
<ApplicationArn>arn:aws:elasticbeanstalk:{{ region_name }}:111122223333:application/{{ application.name }}</ApplicationArn>
<ApplicationArn>arn:aws:elasticbeanstalk:{{ region_name }}:111122223333:application/{{ application.application_name }}</ApplicationArn>
<ApplicationName>{{ application.application_name }}</ApplicationName>
<DateUpdated>2019-09-03T13:08:29.049Z</DateUpdated>
</member>

View File

@ -11,6 +11,7 @@ def test_create_application():
conn = boto3.client("elasticbeanstalk", region_name="us-east-1")
app = conn.create_application(ApplicationName="myapp",)
app["Application"]["ApplicationName"].should.equal("myapp")
app["Application"]["ApplicationArn"].should.contain("myapp")
@mock_elasticbeanstalk
@ -31,6 +32,7 @@ def test_describe_applications():
apps = conn.describe_applications()
len(apps["Applications"]).should.equal(1)
apps["Applications"][0]["ApplicationName"].should.equal("myapp")
apps["Applications"][0]["ApplicationArn"].should.contain("myapp")
@mock_elasticbeanstalk