Fix: elasticbeanstalk ApplicationArn does not contain ApplicationName (#3511)
Fixes #3510
This commit is contained in:
parent
b6369d6250
commit
5e21e50424
@ -91,7 +91,7 @@ EB_CREATE_APPLICATION = """
|
|||||||
</MaxCountRule>
|
</MaxCountRule>
|
||||||
</VersionLifecycleConfig>
|
</VersionLifecycleConfig>
|
||||||
</ResourceLifecycleConfig>
|
</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>
|
<ApplicationName>{{ application.application_name }}</ApplicationName>
|
||||||
<DateUpdated>2019-09-03T13:08:29.049Z</DateUpdated>
|
<DateUpdated>2019-09-03T13:08:29.049Z</DateUpdated>
|
||||||
</Application>
|
</Application>
|
||||||
@ -125,7 +125,7 @@ EB_DESCRIBE_APPLICATIONS = """
|
|||||||
</MaxCountRule>
|
</MaxCountRule>
|
||||||
</VersionLifecycleConfig>
|
</VersionLifecycleConfig>
|
||||||
</ResourceLifecycleConfig>
|
</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>
|
<ApplicationName>{{ application.application_name }}</ApplicationName>
|
||||||
<DateUpdated>2019-09-03T13:08:29.049Z</DateUpdated>
|
<DateUpdated>2019-09-03T13:08:29.049Z</DateUpdated>
|
||||||
</member>
|
</member>
|
||||||
|
@ -11,6 +11,7 @@ def test_create_application():
|
|||||||
conn = boto3.client("elasticbeanstalk", region_name="us-east-1")
|
conn = boto3.client("elasticbeanstalk", region_name="us-east-1")
|
||||||
app = conn.create_application(ApplicationName="myapp",)
|
app = conn.create_application(ApplicationName="myapp",)
|
||||||
app["Application"]["ApplicationName"].should.equal("myapp")
|
app["Application"]["ApplicationName"].should.equal("myapp")
|
||||||
|
app["Application"]["ApplicationArn"].should.contain("myapp")
|
||||||
|
|
||||||
|
|
||||||
@mock_elasticbeanstalk
|
@mock_elasticbeanstalk
|
||||||
@ -31,6 +32,7 @@ def test_describe_applications():
|
|||||||
apps = conn.describe_applications()
|
apps = conn.describe_applications()
|
||||||
len(apps["Applications"]).should.equal(1)
|
len(apps["Applications"]).should.equal(1)
|
||||||
apps["Applications"][0]["ApplicationName"].should.equal("myapp")
|
apps["Applications"][0]["ApplicationName"].should.equal("myapp")
|
||||||
|
apps["Applications"][0]["ApplicationArn"].should.contain("myapp")
|
||||||
|
|
||||||
|
|
||||||
@mock_elasticbeanstalk
|
@mock_elasticbeanstalk
|
||||||
|
Loading…
Reference in New Issue
Block a user