wait_for_queue_to_drain(topic_name+'_1')
- http_server.verify_s3_events(keys, exact_match=False, deletions=False)
+ http_server.verify_s3_events(keys, exact_match=True, deletions=False)
# delete objects from the bucket
client_threads = []
wait_for_queue_to_drain(topic_name+'_1')
- http_server.verify_s3_events(keys, exact_match=False, deletions=True)
+ http_server.verify_s3_events(keys, exact_match=True, deletions=True)
# cleanup
s3_notification_conf1.del_config()
#zone_bucket_checkpoint(ps_zone.zone, master_zone.zone, bucket_name)
keys = list(bucket.list())
# TODO: use exact match
- receiver.verify_s3_events(keys, exact_match=False)
+ receiver.verify_s3_events(keys, exact_match=True)
# update the same topic with new endpoint
#topic_conf = PSTopic(ps_zone.conn, topic_name,endpoint='http://'+ hostname + ':' + str(port))
topic_conf = PSTopicS3(conn, topic_name, endpoint_args='http://'+ hostname + ':' + str(port))
wait_for_queue_to_drain(topic_name)
# verify events
keys = list(bucket.list())
+ # exact match is false because the notifications are persistent.
http_server.verify_s3_events(keys, exact_match=False)
except Exception as e:
try:
# verify events
keys = list(bucket.list())
- http_server.verify_s3_events(keys, exact_match=False)
+ http_server.verify_s3_events(keys, exact_match=True)
# create topic to poll on
topic_name_1 = topic_name + '_1'