Beispiel #1
0
def test_domain_short_dict_representation():
    domain = Domain("foo", "52")
    domain.to_short_dict().should.equal(
        {"name": "foo", "status": "REGISTERED"})

    domain.description = "foo bar"
    domain.to_short_dict()["description"].should.equal("foo bar")
Beispiel #2
0
def test_domain_short_dict_representation():
    domain = Domain("foo", "52", TEST_REGION)
    domain.to_short_dict().should.equal({
        "name":
        "foo",
        "status":
        "REGISTERED",
        "arn":
        "arn:aws:swf:{0}:{1}:/domain/foo".format(TEST_REGION, ACCOUNT_ID),
    })

    domain.description = "foo bar"
    domain.to_short_dict()["description"].should.equal("foo bar")
Beispiel #3
0
def test_domain_full_dict_representation():
    domain = Domain("foo", "52", TEST_REGION)

    domain.to_full_dict()["domainInfo"].should.equal(domain.to_short_dict())
    _config = domain.to_full_dict()["configuration"]
    _config["workflowExecutionRetentionPeriodInDays"].should.equal("52")
Beispiel #4
0
def test_domain_full_dict_representation():
    domain = Domain("foo", "52")

    domain.to_full_dict()["domainInfo"].should.equal(domain.to_short_dict())
    _config = domain.to_full_dict()["configuration"]
    _config["workflowExecutionRetentionPeriodInDays"].should.equal("52")