SES get send statistics response modification
This commit is contained in:
parent
df1e0d80c5
commit
2b0e7da998
@ -292,20 +292,22 @@ SET_IDENTITY_NOTIFICATION_TOPIC_RESPONSE = """<SetIdentityNotificationTopicRespo
|
||||
</SetIdentityNotificationTopicResponse>"""
|
||||
|
||||
GET_SEND_STATISTICS = """<GetSendStatisticsResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
|
||||
<SendDataPoints>
|
||||
{% for statistics in all_statistics %}
|
||||
<item>
|
||||
<DeliveryAttempts>{{ statistics["DeliveryAttempts"] }}</DeliveryAttempts>
|
||||
<Rejects>{{ statistics["Rejects"] }}</Rejects>
|
||||
<Bounces>{{ statistics["Bounces"] }}</Bounces>
|
||||
<Complaints>{{ statistics["Complaints"] }}</Complaints>
|
||||
<Timestamp>{{ statistics["Timestamp"] }}</Timestamp>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</SendDataPoints>
|
||||
<ResponseMetadata>
|
||||
<RequestId>e0abcdfa-c866-11e0-b6d0-273d09173z49</RequestId>
|
||||
</ResponseMetadata>
|
||||
<GetSendStatisticsResult>
|
||||
<SendDataPoints>
|
||||
{% for statistics in all_statistics %}
|
||||
<item>
|
||||
<DeliveryAttempts>{{ statistics["DeliveryAttempts"] }}</DeliveryAttempts>
|
||||
<Rejects>{{ statistics["Rejects"] }}</Rejects>
|
||||
<Bounces>{{ statistics["Bounces"] }}</Bounces>
|
||||
<Complaints>{{ statistics["Complaints"] }}</Complaints>
|
||||
<Timestamp>{{ statistics["Timestamp"] }}</Timestamp>
|
||||
</item>
|
||||
{% endfor %}
|
||||
</SendDataPoints>
|
||||
<ResponseMetadata>
|
||||
<RequestId>e0abcdfa-c866-11e0-b6d0-273d09173z49</RequestId>
|
||||
</ResponseMetadata>
|
||||
</GetSendStatisticsResult>
|
||||
</GetSendStatisticsResponse>"""
|
||||
|
||||
CREATE_CONFIGURATION_SET = """<CreateConfigurationSetResponse xmlns="http://ses.amazonaws.com/doc/2010-12-01/">
|
||||
|
@ -145,10 +145,10 @@ def test_get_send_statistics():
|
||||
result = conn.get_send_statistics()
|
||||
|
||||
reject_count = int(
|
||||
result["GetSendStatisticsResponse"]["SendDataPoints"][0]["Rejects"]
|
||||
result["GetSendStatisticsResponse"]["GetSendStatisticsResult"]["SendDataPoints"][0]["Rejects"]
|
||||
)
|
||||
delivery_count = int(
|
||||
result["GetSendStatisticsResponse"]["SendDataPoints"][0]["DeliveryAttempts"]
|
||||
result["GetSendStatisticsResponse"]["GetSendStatisticsResult"]["SendDataPoints"][0]["DeliveryAttempts"]
|
||||
)
|
||||
reject_count.should.equal(1)
|
||||
delivery_count.should.equal(0)
|
||||
@ -162,10 +162,10 @@ def test_get_send_statistics():
|
||||
result = conn.get_send_statistics()
|
||||
|
||||
reject_count = int(
|
||||
result["GetSendStatisticsResponse"]["SendDataPoints"][0]["Rejects"]
|
||||
result["GetSendStatisticsResponse"]["GetSendStatisticsResult"]["SendDataPoints"][0]["Rejects"]
|
||||
)
|
||||
delivery_count = int(
|
||||
result["GetSendStatisticsResponse"]["SendDataPoints"][0]["DeliveryAttempts"]
|
||||
result["GetSendStatisticsResponse"]["GetSendStatisticsResult"]["SendDataPoints"][0]["DeliveryAttempts"]
|
||||
)
|
||||
reject_count.should.equal(1)
|
||||
delivery_count.should.equal(1)
|
||||
|
Loading…
Reference in New Issue
Block a user