Started implementing modify_option_group.

This commit is contained in:
Mike Fuller 2015-01-20 21:01:34 +11:00
commit dfb33aaad3
3 changed files with 75 additions and 1 deletions

View file

@ -91,6 +91,13 @@ def test_create_option_group_empty_description():
conn.create_option_group.when.called_with('test', 'mysql', '5.6', '').should.throw(BotoServerError)
@mock_rds2
def test_create_option_group_duplicate():
conn = boto.rds2.connect_to_region("us-west-2")
conn.create_option_group('test', 'mysql', '5.6', 'test option group')
conn.create_option_group.when.called_with('test', 'mysql', '5.6', 'foo').should.throw(BotoServerError)
@mock_rds2
def test_describe_option_group():
conn = boto.rds2.connect_to_region("us-west-2")
@ -133,6 +140,26 @@ def test_describe_option_group_options():
conn.describe_option_group_options.when.called_with('non-existent').should.throw(BotoServerError)
conn.describe_option_group_options.when.called_with('mysql', 'non-existent').should.throw(BotoServerError)
@mock_rds2
def test_modify_option_group():
conn = boto.rds2.connect_to_region("us-west-2")
# if Someone can tell me how the hell to use this function I can finish coding this.
@mock_rds2
def test_modify_option_group_no_options():
conn = boto.rds2.connect_to_region("us-west-2")
conn.create_option_group('test', 'mysql', '5.6', 'test option group')
conn.modify_option_group.when.called_with('test').should.throw(BotoServerError)
@mock_rds2
def test_modify_non_existant_option_group():
conn = boto.rds2.connect_to_region("us-west-2")
conn.modify_option_group.when.called_with('non-existant', [('OptionName', 'Port', 'DBSecurityGroupMemberships', 'VpcSecurityGroupMemberships', 'OptionSettings')]).should.throw(BotoServerError)
#@disable_on_py3()
#@mock_rds2
#def test_delete_database():