summaryrefslogtreecommitdiff
path: root/openstackclient/tests/functional/network
Commit message (Collapse)AuthorAgeFilesLines
* Make max_burst_kbps option as optional for bw limit QoS ruleSławek Kapłoński2018-05-251-1/+0
| | | | | | | | | | Attribute max_burst_kbps of QoS bandwidth limit rule in Neutron's is optional in API so it should be also optional on client's side. Change-Id: Ie085b73fa885ff12f9ac080666cf3ca6a09b632a Related-Bug:#1770622 Task: 19658 Story: 2002017
* Fix functional job failedDongcan Ye2018-04-201-3/+14
| | | | | | | | | | After Neutron patch I3c93818002c2d7753454547231ba08544b6fa1c0 merged, the default value of segment description is an empty string. This patch will determine whether the Neuron shim extension standard-attr-segment supported. Change-Id: I68a3c018f03e5bb53bd637844ac9d7742a765db0
* Clean up W503 and E402 pep8 errorsSean McGinnis2018-04-155-195/+170
| | | | | | | | | | | | pycodestyle 2.40 and later enforce these rules that were not previously enforced. Rather than just skipping them, this cleans up the trivial instances of these violations. This does also include some other updates that were not triggering errors in an attempt to keep some of the style consistent. Change-Id: Id7c0a6b8f1f835e69d844b000e3ed751852ada63 Closes-bug: #1762803
* Allow port list to shown undefined attributesAkihiro Motoki2017-11-241-0/+10
| | | | | | | | | | | | | | | | | At now, OSC command implementation extracts resource attributes based on a predefined column list, so if a user specifies an unknown attribute not defined in the column lists, such attribute will be ignored. In case of 'port list', the neutron port defines many attributes and it is not a good idea to show all attributes even in the long mode from the perspective of user experience. This commit consumes osc_lib.utils.calculate_headers_and_attrs() function to show undefined port attributes if requested in -c option. Closes-Bug: #1707848 Depends-On: I6c6bc3c6e3c769c96869fd76b9d9c1661280850e Change-Id: I130a6aed41d80603698b6cab0c9a1d1dc59df743
* Display Network QoS rule type detailsSławek Kapłoński2017-11-051-0/+7
| | | | | | | | | | Neutron API now supports getting details of supported QoS rule type. This patch adds support for this feature to OpenStack client. Change-Id: I74d16563ce2236a7c899f5994f1dab43ace02138 Depends-On: I448b5d4f8e4ef42eafe50d9d6c63d0be666f98fc Related-Bug: #1686035
* Attempt to de-race qos policyDean Troyer2017-10-181-3/+7
| | | | | | | | | We're getting about 1-in-6 failures on qos policy delete now, with the message that the policy is in use by a network. It shouldn't be, this is possibly due to the small window where the policy is set as the default. Let's remove that and shore up the test using --share instead. Change-Id: I8d669bd3c5c88dadd2927aee89e5ef72cf4001c4
* Unroll the network qos policy functional testsDean Troyer2017-09-171-33/+42
| | | | | | | These seem to have gotten a bit racy in the last revision, just do it the long way now. Change-Id: I3748b8b4f264dbfa8c991b32653682e5c86eeb4c
* Attempt to work around chronically failing server issues with aggregates and qosDean Troyer2017-09-151-2/+5
| | | | | | | | So yeah, this is not kosher for functional tests, but we're testing the client interaction, not the raciness of Nova or Neutron. Failure to delete is not our problem. Change-Id: I21043f1de0fbacee1aec63110fb12a7cff42e0a0
* Convert remaining network functional tests to JSONAkihiro Motoki2017-08-232-55/+39
| | | | Change-Id: Ib7dff5506cc69549b5b1fbb8bf6e649468563dd6
* Convert network qos functional tests to JSONAkihiro Motoki2017-08-233-233/+193
| | | | Change-Id: Ie5cde2f927ec6abb6334ea01adfb06749384ed01
* Convert network security group functional tests to JSONAkihiro Motoki2017-08-232-106/+52
| | | | Change-Id: Icb63aa0dfbce9016fb824f97915a660cf130d120
* Convert network segment functional tests to JSONDean Troyer2017-08-131-45/+99
| | | | Change-Id: I8dc1e992d54c63c93bbe2bdd7acba61a7a6773d0
* network functest: Remove condition for segment testAkihiro Motoki2017-07-271-84/+48
| | | | | | | | | | | | | | | Previously fucntional tests for network segment feature are skipped as neutron 'segment' API extension was disabled in the gate. We now enable neutron 'segment' API extension, so we can safely drop the check for the segment extension from the test code. Also setup code in test_network_segment is moved from setUpClass to setUp. There is no good reason to do them in setUpClass and having them in setUp simplifies the test code. no user once this commit is applied. Change-Id: I183310b94d9b6d7f4311a3859b59dc22d36440db
* Network tag supportAkihiro Motoki2017-07-236-5/+115
| | | | | | | | | | | | | Neutron tag mechanism now supports network, subnet, port, subnetpool and router. Tag support for more resources is planned. This commit introduces a common mixin class to implement tag operation and individual resource consumes it. To support tag remove, network unset command is added. Implements blueprint neutron-client-tag Change-Id: Iad59d052f46896d27d73c22d6d4bb3df889f2352
* Clean up the changes of os.environ in functional testsRui Chen2017-07-2013-118/+157
| | | | | | | | | | | | Use fixtures to restore the API version changes of os.environ in each functional tests, aims to avoid the following test cases failing in unexpected context. And make sure setUpClass/tearDownClass call super class's corresponding methods first. Change-Id: Ie248fe9d3a9e25f1b076c9f2c363200f29a83817 Closes-Bug: #1696080
* Merge "Network L3 Router Commands for OSC"Jenkins2017-07-202-0/+70
|\
| * Network L3 Router Commands for OSCAnkur Gupta2017-07-112-0/+70
| | | | | | | | | | | | | | Implements: blueprint network-l3-commands Co-Authored-By: Akihiro Motoki <amotoki@gmail.com> Change-Id: Ia24d76227e164062e89a74c1621b8acb830b26cf
* | Fix dynamic names in network functional testsDean Troyer2017-07-1911-25/+36
|/ | | | | | | | Move all of the dynamic resource naming in Network functional tests into setUpClass() methods (if they exist) rather than assigning those names at load-time. Change-Id: Ic550ff7d40c2b3ca5128cacccbe331790d6ae340
* Add new parameter "is_default" to Network QoS policy.Rodolfo Alonso Hernandez2017-07-051-0/+13
| | | | | | | | | | | | Add a set of exclusive parameters to the Network QoS policy: --default: makes this policy the default policy for the project to which the qos policy belongs. --no-default: unset the property. Closes-Bug: #1639220 Depends-On: If5ff2b00fa828f93aa089e275ddbd1ff542b79d4 Depends-On: Ibe7b7881cb190bfd5582f35b6de51a8bc21135de Change-Id: I0269b837dc29bbd8ee2089d847cadb72d800fa30
* Add direction field to QoS bandwidth limit.Rodolfo Alonso Hernandez2017-06-221-7/+9
| | | | | | | | | | This patch enables the direction ('ingress'/'egress') field on the QoS bandwidth limit rule object and CRUD commands. Closes-Bug: #1614121 Depends-On: Ia13568879c2b6f80fb190ccafe7e19ca05b0c6a8 Depends-On: I90c412a5c8757b3ffe8abfc1165a70bdb8744702 Change-Id: Ic6981474f22efbf294ac11c2e0304b04494a1bbe
* Add default-quota to subnet pool commandsReedip2017-06-121-4/+35
| | | | | | | | | | | | | | Add --default-quota option to subnet pool create and set commands. Setting default-quota back to None may break the current Neutron behavior, therefore support for Unset command is not provided in this patch. Neutron API: https://github.com/openstack/neutron/blob/a0e0e8b6686b847a4963a6aa6a3224b5768544e6/neutron/api/v2/attributes.py#L239 Closes-Bug: #1667294 Change-Id: Ia4e7c23a49e91a090133c729353cdb8e62bc5674
* Trivial fix typosVu Cong Tuan2017-05-302-2/+2
| | | | Change-Id: I72a1da209df38e226ec02d9dbd0142ed4020c0d2
* Rework floating ip functional testsDean Troyer2017-05-101-140/+178
| | | | | | | Regualr expresstions were an interesting diversion, get rid of them from the functional tests. It did lead to better structure... Change-Id: I1ff32ad7715ebd88401925ce3f6c412a66e82566
* Nova net functional tests round 3Dean Troyer2017-04-2814-161/+320
| | | | | | | | | | | | | | | | | | | | * network segment * network service * port * router * security group * security group rule * subnet * subnet pool * extension The extension tests were duplicated to have both compute and network extensions tests so the nova-net case will still exercise the extension commands. Also clean up formatting from previous reviews to make the Network functional tests look and act consistently. Change-Id: I286c40572faa31ddcef595cec740da933b2defc1
* Merge "Fix Nova-net netowrk commands"Jenkins2017-04-281-94/+222
|\
| * Fix Nova-net netowrk commandsDean Troyer2017-04-271-94/+222
| | | | | | | | | | | | | | | | | | | | | | | | In cleaning up functional tests for nova-net, I discovered some problems in network create: * --subnet option is required in network create command * Switch API to use /os-networks rather than /os-tenant-networks as this is what we were actually using via novaclient * Fix functional tests for nova-net * Normalize some private function names in network/v2/network.py Change-Id: I426b864406756d58d140575a3a45ee9aee67ce84
* | Nova net functional tests round 2Dean Troyer2017-04-286-106/+180
| | | | | | | | | | | | | | | | | | | | | | * floating ip * ip availability * network qos policy * network qos rule * network qos rule type * network rbac Change-Id: Id3946bdff43bfef3a1d879c058bde4792bd299c6
* | Nova net functional tests round 1Dean Troyer2017-04-287-136/+286
|/ | | | | | | | | | | | | | | | * 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
* Functional test for subnet_pooljiahui.qiang2017-04-261-37/+268
| | | | | | Refactor functional tests for testing more command options. Change-Id: I0c9c3b04dd2b79766a8fe82cbc5315c030f4784d
* Fix network list functional testHuanxuan Ao2017-04-191-1/+1
| | | | | | | | An error in network func test broke our CI, looks like the "is_default" should be "False" by default for now. Change-Id: I021eb8abd9bdf55c7c06031152c107312f104b34
* "floating ip set/unset port" for OSCSindhu Devale2017-04-051-0/+76
| | | | | | | | | | | | | | | | | | | | | | | Implements Neutron feature of floating ip associate/disassociate into OpenStack Client. Previously, network.find_ip() function only supported to search floating ip by UUID. Hence, _find_floating_ip() function is used in floating_ip.py, to search fip both by UUID and ip_address. [1] adds the ability to find fip object using both UUID and ip_address. This functionality however, won't be available until the SDK is released. Hence, we continue to use _find_floating_ip() method, which was cleaned up by [2] to remove the use of ip_cache. Once, the SDK is released, we will remove all the usage of _find_floating_ip() method and instead only use network.find_ip(). [1] https://review.openstack.org/#/c/449879/2 [2] https://review.openstack.org/#/c/447938/ Change-Id: I6c5222287c46ca42365917d2deae70bdb626347 Co-Authored-By: Reedip<reedip.banerjee@nectechnologies.in> Co-Authored-By: RuiChen<chenrui.momo@gmail.com> Closes-Bug: #1560297
* Introduce neutron flavor associate, disassociate to OSCShashank Kumar Shankar2017-04-031-0/+51
| | | | | | | | | | This patch introduces network flavor associate and disassociate to OSC. The following neutron equivalent commands are implemented in OSC: - neutron flavor-associate - neutron flavor-disassociate Change-Id: Icba4dbf7300a36353142586359059cd6784049dc
* Merge "Simplify logic around option lists in port set"Jenkins2017-03-271-8/+75
|\
| * Simplify logic around option lists in port setDean Troyer2017-03-201-8/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use a common pattern to handle option pairs --XYZ and --no-XYZ for managing lists of attributes. This pattern looks at the presence of the option in parsed_args first and branches as necessary. Some specific steps are included for the SDK Network resources to reliably set the 'dirty' flag for changed attributes via one or both of the following: * iterate over lists of original resource attributes to force the creation of a new list object * use [].extend() rather than += to add to the existing list (substitute {}.update() for dicts) Change-Id: I0c3f9a52ffe1ae2b5b230cb13d6376dd9131aaf9
* | Merge "OSC Network Flavor Profile"Jenkins2017-03-211-0/+151
|\ \
| * | OSC Network Flavor ProfileNakul Dahiwade2017-03-201-0/+151
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement Neutron feature of Network Flavor Profile into OpenstackClient This patch implements the following commands: network flavor profile create network flavor profile delete network flavor profile list network flavor profile show network flavor profile set SDK Version needed: 0.9.9 Change-Id: Ie6fe5e53122cfb2eda8d326851d54562739a8386 Partially-Implements: blueprint neutron-client-flavors
* | | Merge "Jsonify meter and meter rule functional tests"Jenkins2017-03-212-64/+135
|\ \ \ | |_|/ |/| |
| * | Jsonify meter and meter rule functional testsNakul Dahiwade2017-03-092-64/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some functional tests try to parse the CLI table output format, that cause much work on parse string by using regular expression. Using json format in functional tests is better and easier way, this patch reworks for meter and meter rule related tests. Change-Id: I1f2a95c873a4ed23dd1afa4040900a1c7704d0bf
* | | Merge "Introduce Neutron DHCP agent commands to OSC"Jenkins2017-03-202-0/+95
|\ \ \
| * | | Introduce Neutron DHCP agent commands to OSCShashank Kumar Shankar2017-03-202-0/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch introduces neutron dhcp-agent related commands to OpenStack client. The equivalent neutron commands implemented in OSC: neutron: dhcp-agent-list-hosting-net OSC: network agent list --network neutron: dhcp-agent-network-add OSC: network agent add network neutron: dhcp-agent-network-remove OSC: network agent remove network neutron: net-list-on-dhcp-agent OSC: network list --agent Change-Id: I77a933f4b3ce875c63cef5b6a32aee78fd844b03
* | | | Merge "Make MAC address of port updatable"Jenkins2017-03-201-0/+19
|\ \ \ \
| * | | | Make MAC address of port updatableBence Romsics2017-03-201-0/+19
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | openstackclient does not allow the update of a port's MAC address. However this is possible in neutron API (though by default policy it is an admin-only operation). Allow it in openstackclient too. Change-Id: Ibd9e0a6fbd1d0d461b8a8daee24dbb7c3f929df6 Closes-Bug: #1670707
* | | | Merge "Functional test for ip_availability"Jenkins2017-03-161-17/+20
|\ \ \ \
| * | | | Functional test for ip_availabilityjiahui.qiang2017-03-101-17/+20
| | |_|/ | |/| | | | | | | | | | | | | | | | | | Refactor ip_availability functional tests. Change-Id: I2397bd20236e1e9e3c69177ea6afbaadf2c445ae
* | | | Merge "Switch to use cleanup method in functional test"Jenkins2017-03-162-21/+29
|\ \ \ \ | |_|/ / |/| | |
| * | | Switch to use cleanup method in functional testjiahui.qiang2017-01-212-21/+29
| |/ / | | | | | | | | | | | | | | | | | | | | | Switch the delete command in subnet and router functional tests. Because addCleanup will also work when an assertion fails ,except the test is for testing delete command. Change-Id: I33634f5148c4895c7cf4d4773a9c33c8368850c7
* | | command list: Move network meter appropriatelyAkihiro Motoki2017-03-081-0/+0
|/ / | | | | | | | | | | | | | | | | 'network meter' commands are not placed alphabetically in the command list. It was due to the incorrect filename. Trivial Fix Change-Id: I7a76d3133915883cf41be8c7430def284d292d6e
* | Jsonify network flavor functional testsAnindita Das2017-03-021-70/+93
|/ | | | | | | | | Some functional tests try to parse the CLI table output format, that cause much work on parse string by using regular expression. Using json format in functional tests is better and easier way, this patch reworks for network flavor related tests. Change-Id: I2bc5675409945c9ae79ac65df2d5d10781fe595a
* Merge "Functional test for subnet"Jenkins2017-03-021-37/+231
|\
| * Functional test for subnetjiahui.qiang2017-01-181-37/+231
| | | | | | | | | | | | Refactor functional tests for testing more command options. Change-Id: I030652f6f3ab3dada12252599b20969f03a5df02