Techdebt: SSM: Specific param may not exist on the first page (#5995)
This commit is contained in:
parent
88d991e306
commit
c4f99f3102
@ -14,11 +14,12 @@ def test_ssm_get_latest_ami_by_path():
|
||||
params = client.get_parameters_by_path(Path=path)["Parameters"]
|
||||
params.should.have.length_of(10)
|
||||
|
||||
ami = [p for p in params if p["Name"] == test_ami][0]
|
||||
ami["Type"].should.equal("String")
|
||||
ami["Version"].should.equal(18)
|
||||
ami["Value"].should.equal("ami-0f4e67e32313f0d0e")
|
||||
ami.should.have.key("LastModifiedDate")
|
||||
assert all(
|
||||
[p["Name"].startswith("/aws/service/ami-amazon-linux-latest") for p in params]
|
||||
)
|
||||
assert all([p["Type"] == "String" for p in params])
|
||||
assert all([p["DataType"] == "text" for p in params])
|
||||
assert all([p["ARN"].startswith("arn:aws:ssm:us-west-1") for p in params])
|
||||
|
||||
|
||||
@mock_ssm
|
||||
|
Loading…
Reference in New Issue
Block a user