Example #1
0
def test_type_convert():
    request = Request("Create", "abc")
    request["ResourceProperties"]["RefreshOnUpdate"] = "true"
    r = DSAKeyProvider()
    r.set_request(request, {})
    assert r.is_valid_request()
    assert isinstance(r.get("RefreshOnUpdate"), bool)
def test_type_convert():
    request = Request('Create', 'abc')
    request['ResourceProperties']['RefreshOnUpdate'] = 'true'
    r = DSAKeyProvider()
    r.set_request(request, {})
    assert r.is_valid_request()
    assert isinstance(r.get('RefreshOnUpdate'), bool)
Example #3
0
def test_defaults():
    request = Request("Create", "abc")
    r = DSAKeyProvider()
    r.set_request(request, {})
    assert r.is_valid_request()
    assert r.get("KeyAlias") == "alias/aws/ssm"
    assert r.get("Description") == ""
def test_defaults():
    request = Request('Create', 'abc')
    r = DSAKeyProvider()
    r.set_request(request, {})
    assert r.is_valid_request()
    assert r.get('KeyAlias') == 'alias/aws/ssm'
    assert r.get('Description') == ''