commit 260a5280a0e11b25507a7675588213bc387b7de7 Author: Hang Yang Date: Fri Oct 2 09:52:31 2020 -0500 Skip address group functional tests if no extension Address group extension is added to the latest neutron version, so skip its functional tests for older releases. Change-Id: I8723b0902ddd541d28ae36c1146c182e9332b24d Related-change: https://review.opendev.org/745594 Related-change: https://review.opendev.org/741784 Implements: blueprint address-groups-in-sg-rules diff --git a/openstack/tests/functional/network/v2/test_address_group.py b/openstack/tests/functional/network/v2/test_address_group.py index cb9b8c9..d758e35 100644 --- a/openstack/tests/functional/network/v2/test_address_group.py +++ b/openstack/tests/functional/network/v2/test_address_group.py @@ -22,6 +22,11 @@ class TestAddressGroup(base.BaseFunctionalTest): def setUp(self): super(TestAddressGroup, self).setUp() + + # Skip the tests if address group extension is not enabled. + if not self.conn.network.find_extension('address-group'): + self.skipTest('Network Address Group extension disabled') + self.ADDRESS_GROUP_NAME = self.getUniqueString() self.ADDRESS_GROUP_DESCRIPTION = self.getUniqueString() self.ADDRESS_GROUP_NAME_UPDATED = self.getUniqueString()