Skip to content

Commit

Permalink
Merge "cases associated with the port"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and openstack-gerrit committed Dec 17, 2020
2 parents 1c962cc + ce87469 commit f165a64
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions neutron_tempest_plugin/api/test_ports.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,20 @@ def test_create_update_port_description(self):
body = self.client.list_ports(id=body['port']['id'])['ports'][0]
self.assertEqual('d2', body['description'])

@decorators.idempotent_id('3ae162e8-ff00-490c-a423-6a88e48f1ed6')
def test_create_update_port_security(self):
body = self.create_port(self.network,
port_security_enabled=True)
self.assertTrue(body['port_security_enabled'])
body = self.client.list_ports(id=body['id'])['ports'][0]
self.assertTrue(body['port_security_enabled'])
body = self.client.update_port(body['id'],
port_security_enabled=False,
security_groups=[])
self.assertFalse(body['port']['port_security_enabled'])
body = self.client.list_ports(id=body['port']['id'])['ports'][0]
self.assertFalse(body['port_security_enabled'])

@decorators.idempotent_id('539fbefe-fb36-48aa-9a53-8c5fbd44e492')
@utils.requires_ext(extension="dns-integration",
service="network")
Expand Down

0 comments on commit f165a64

Please sign in to comment.