Make SNS multi-region.
This commit is contained in:
parent
2b775aa075
commit
53acdf6c76
4 changed files with 49 additions and 19 deletions
|
|
@ -27,6 +27,18 @@ def test_create_and_delete_topic():
|
|||
topics.should.have.length_of(0)
|
||||
|
||||
|
||||
@mock_sns
|
||||
def test_create_topic_in_multiple_regions():
|
||||
west1_conn = boto.sns.connect_to_region("us-west-1")
|
||||
west1_conn.create_topic("some-topic")
|
||||
|
||||
west2_conn = boto.sns.connect_to_region("us-west-2")
|
||||
west2_conn.create_topic("some-topic")
|
||||
|
||||
list(west1_conn.get_all_topics()["ListTopicsResponse"]["ListTopicsResult"]["Topics"]).should.have.length_of(1)
|
||||
list(west2_conn.get_all_topics()["ListTopicsResponse"]["ListTopicsResult"]["Topics"]).should.have.length_of(1)
|
||||
|
||||
|
||||
@mock_sns
|
||||
def test_topic_attributes():
|
||||
conn = boto.connect_sns()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue