Storing tags on create db instance and getting tags back in list_tags_for_resource
This commit is contained in:
parent
6559d11dd5
commit
2dde94c9be
2 changed files with 21 additions and 7 deletions
|
|
@ -277,15 +277,19 @@ def test_list_tags():
|
|||
conn = boto.rds2.connect_to_region("us-west-2")
|
||||
result = conn.list_tags_for_resource('arn:aws:rds:us-west-2:1234567890:db:foo')
|
||||
result['ListTagsForResourceResponse']['ListTagsForResourceResult']['TagList'].should.equal([])
|
||||
conn.create_db_instance(db_instance_identifier='db-master-1',
|
||||
conn.create_db_instance(db_instance_identifier='db-with-tags',
|
||||
allocated_storage=10,
|
||||
engine='postgres',
|
||||
db_instance_class='db.m1.small',
|
||||
master_username='root',
|
||||
master_user_password='hunter2',
|
||||
db_security_groups=["my_sg"],
|
||||
tags=[{'Key': 'foo', 'Value': 'bar'}])
|
||||
result = conn.list_tags_for_resource('arn:aws:rds:us-west-2:1234567890:db:db-master-1')
|
||||
tags=[('foo', 'bar'), ('foo1', 'bar1')])
|
||||
result = conn.list_tags_for_resource('arn:aws:rds:us-west-2:1234567890:db:db-with-tags')
|
||||
result['ListTagsForResourceResponse']['ListTagsForResourceResult']['TagList'].should.equal([{'Value': 'bar',
|
||||
'Key': 'foo'},
|
||||
{'Value': 'bar1',
|
||||
'Key': 'foo1'}])
|
||||
|
||||
#@disable_on_py3()
|
||||
#@mock_rds2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue