Merge "Description is mandatory parameter when creating Security Group"
This commit is contained in:
commit
8d979cfa4b
|
@ -1856,6 +1856,13 @@ class ShellTest(utils.TestCase):
|
|||
{'name': 'test',
|
||||
'description': 'FAKE_SECURITY_GROUP'}})
|
||||
|
||||
def test_security_group_create_without_description(self):
|
||||
self.run_command('secgroup-create test')
|
||||
self.assert_called('POST', '/os-security-groups',
|
||||
{'security_group':
|
||||
{'name': 'test',
|
||||
'description': None}})
|
||||
|
||||
def test_security_group_update(self):
|
||||
self.run_command('secgroup-update test te FAKE_SECURITY_GROUP')
|
||||
self.assert_called('PUT', '/os-security-groups/1',
|
||||
|
|
|
@ -2337,7 +2337,7 @@ def do_secgroup_delete_rule(cs, args):
|
|||
|
||||
|
||||
@utils.arg('name', metavar='<name>', help=_('Name of security group.'))
|
||||
@utils.arg('description', metavar='<description>',
|
||||
@utils.arg('description', metavar='<description>', nargs='?',
|
||||
help=_('Description of security group.'))
|
||||
def do_secgroup_create(cs, args):
|
||||
"""Create a security group."""
|
||||
|
|
Loading…
Reference in New Issue