diff options
| author | Jenkins <jenkins@review.openstack.org> | 2016-08-05 16:01:13 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2016-08-05 16:01:13 +0000 |
| commit | 020f13e12b04ed6e93c2dcfbf4ecf60e23fb44db (patch) | |
| tree | b94c4dcd17849b48762ac6af1ac20f7a131d6cf9 /functional/tests | |
| parent | 6dd3f45e39868906c74ff716e750a57e329ae611 (diff) | |
| parent | 0736336a71db9baf3e768e4560a619ae6a875fa4 (diff) | |
| download | python-openstackclient-020f13e12b04ed6e93c2dcfbf4ecf60e23fb44db.tar.gz | |
Merge "Implement network agents functionality"
Diffstat (limited to 'functional/tests')
| -rw-r--r-- | functional/tests/network/v2/test_network_agent.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/functional/tests/network/v2/test_network_agent.py b/functional/tests/network/v2/test_network_agent.py new file mode 100644 index 00000000..e01ead42 --- /dev/null +++ b/functional/tests/network/v2/test_network_agent.py @@ -0,0 +1,32 @@ +# 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 functional.common import test + + +class NetworkAgentTests(test.TestCase): + """Functional tests for network agent. """ + IDs = None + HEADERS = ['ID'] + FIELDS = ['id'] + + @classmethod + def test_network_agent_list(cls): + opts = cls.get_opts(cls.HEADERS) + raw_output = cls.openstack('network agent list' + opts) + # get the list of network agent IDs. + cls.IDs = raw_output.split('\n') + + def test_network_agent_show(self): + opts = self.get_opts(self.FIELDS) + raw_output = self.openstack('network agent show ' + self.IDs[0] + opts) + self.assertEqual(self.IDs[0] + "\n", raw_output) |
