EMR and SWF - add arn to response (#3873)
* emr: add ClusterArn to describe_cluster response * emr: add ClusterArn to list_clusters response * emr: add ClusterArn to put_auto_scaling_policy response * emr: add ClusterArn to run_job_flow response * emr: rename property "cluster_arn" to simply "arn" * emr: generalize arn for account_id and region * swf: add arn to list_domains response * black reformat source code * fix double import * swf: require region on Domain object Co-authored-by: Kevin Neal <Kevin_Neal@intuit.com>
This commit is contained in:
parent
c31dffcc92
commit
8b523c3fe1
8 changed files with 73 additions and 21 deletions
|
|
@ -6,6 +6,7 @@ import sure # noqa
|
|||
|
||||
from moto import mock_swf_deprecated
|
||||
from moto import mock_swf
|
||||
from moto.core import ACCOUNT_ID
|
||||
|
||||
|
||||
# RegisterDomain endpoint
|
||||
|
|
@ -20,6 +21,9 @@ def test_register_domain():
|
|||
domain["name"].should.equal("test-domain")
|
||||
domain["status"].should.equal("REGISTERED")
|
||||
domain["description"].should.equal("A test domain")
|
||||
domain["arn"].should.equal(
|
||||
"arn:aws:swf:us-east-1:{0}:/domain/test-domain".format(ACCOUNT_ID)
|
||||
)
|
||||
|
||||
|
||||
@mock_swf_deprecated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue