diff options
| author | Zuul <zuul@review.opendev.org> | 2020-04-08 08:31:28 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2020-04-08 08:31:28 +0000 |
| commit | 78b18030b5aaa42d7b438d73cb8d1170869ec758 (patch) | |
| tree | 4db7ee7730f1923bd2accff88a055bee8dabbfcc /openstackclient/tests/functional/network | |
| parent | 74a7c1d9d6efc545676cec1d9efeb2a86c5bc548 (diff) | |
| parent | 5e62411e5f6c5b68512d1f72470b4222199eb456 (diff) | |
| download | python-openstackclient-78b18030b5aaa42d7b438d73cb8d1170869ec758.tar.gz | |
Merge "Support for stateless security groups"
Diffstat (limited to 'openstackclient/tests/functional/network')
| -rw-r--r-- | openstackclient/tests/functional/network/v2/test_security_group.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/openstackclient/tests/functional/network/v2/test_security_group.py b/openstackclient/tests/functional/network/v2/test_security_group.py index 8ae24b72..d46f8db7 100644 --- a/openstackclient/tests/functional/network/v2/test_security_group.py +++ b/openstackclient/tests/functional/network/v2/test_security_group.py @@ -42,7 +42,7 @@ class SecurityGroupTests(common.NetworkTests): def test_security_group_set(self): other_name = uuid.uuid4().hex raw_output = self.openstack( - 'security group set --description NSA --name ' + + 'security group set --description NSA --stateless --name ' + other_name + ' ' + self.NAME ) self.assertEqual('', raw_output) @@ -50,8 +50,10 @@ class SecurityGroupTests(common.NetworkTests): cmd_output = json.loads(self.openstack( 'security group show -f json ' + other_name)) self.assertEqual('NSA', cmd_output['description']) + self.assertFalse(cmd_output['stateful']) def test_security_group_show(self): cmd_output = json.loads(self.openstack( 'security group show -f json ' + self.NAME)) self.assertEqual(self.NAME, cmd_output['name']) + self.assertTrue(cmd_output['stateful']) |
