summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/network/v2/common.py
diff options
context:
space:
mode:
authorDean Troyer <dtroyer@gmail.com>2017-04-26 19:27:00 -0500
committerDean Troyer <dtroyer@gmail.com>2017-04-28 06:39:21 -0500
commite0d1af94a1ae37c2800da6f9c9ba2d6c65f2de8d (patch)
treecab5ac1158507c5c5092afa4f2d94c7eab532e66 /openstackclient/tests/functional/network/v2/common.py
parent7b609ebd55b1ff38be4763b5122b4a48a05ef931 (diff)
downloadpython-openstackclient-e0d1af94a1ae37c2800da6f9c9ba2d6c65f2de8d.tar.gz
Nova net functional tests round 1
* address scope * network agent * network flavor * network flavor profile * network meter * network meter rule Also create a new common network functional test class NetworkTests to house the setting of haz_network in a single place. The individual test skipping stays in the final classes to re-enforce the idea that some tests work with both Nova-net and Neutron. Change-Id: Ie3910231c6fc9e2031438c599afa904f43c874a7
Diffstat (limited to 'openstackclient/tests/functional/network/v2/common.py')
-rw-r--r--openstackclient/tests/functional/network/v2/common.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/openstackclient/tests/functional/network/v2/common.py b/openstackclient/tests/functional/network/v2/common.py
new file mode 100644
index 00000000..bed07878
--- /dev/null
+++ b/openstackclient/tests/functional/network/v2/common.py
@@ -0,0 +1,22 @@
+# Licensed under the Apache License, Version 2.0 (the "License"); you may
+# not use this file except in compliance with the License. You may obtain
+# a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+# License for the specific language governing permissions and limitations
+# under the License.
+
+from openstackclient.tests.functional import base
+
+
+class NetworkTests(base.TestCase):
+ """Functional tests for Network commands"""
+
+ @classmethod
+ def setUpClass(cls):
+ # super(NetworkTests, cls).setUp()
+ cls.haz_network = base.is_service_enabled('network')