Enabled SNS endpoint attr must be lowercased (#3543)

As per sample response:
https://docs.aws.amazon.com/sns/latest/api/API_GetEndpointAttributes.html
This commit is contained in:
Pavel 2020-12-14 17:08:33 +02:00 committed by GitHub
commit c9c30b8286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 5 deletions

View file

@ -189,7 +189,7 @@ def test_get_endpoint_attributes():
platform_application_arn=application_arn,
token="some_unique_id",
custom_user_data="some user data",
attributes={"Enabled": False, "CustomUserData": "some data"},
attributes={"CustomUserData": "some data"},
)
endpoint_arn = endpoint["CreatePlatformEndpointResponse"][
"CreatePlatformEndpointResult"
@ -199,7 +199,7 @@ def test_get_endpoint_attributes():
"GetEndpointAttributesResponse"
]["GetEndpointAttributesResult"]["Attributes"]
attributes.should.equal(
{"Token": "some_unique_id", "Enabled": "False", "CustomUserData": "some data"}
{"Token": "some_unique_id", "Enabled": "true", "CustomUserData": "some data"}
)
@ -236,7 +236,7 @@ def test_set_endpoint_attributes():
"GetEndpointAttributesResponse"
]["GetEndpointAttributesResult"]["Attributes"]
attributes.should.equal(
{"Token": "some_unique_id", "Enabled": "False", "CustomUserData": "other data"}
{"Token": "some_unique_id", "Enabled": "false", "CustomUserData": "other data"}
)