summaryrefslogtreecommitdiff
path: root/openstackclient/tests/network
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Implement "address scope show" command"Jenkins2016-05-111-0/+53
|\
| * Implement "address scope show" commandHuanxuan Ao2016-05-111-0/+53
| | | | | | | | | | | | | | | | This patch add a command that supports showing address scope details Change-Id: Ic0b41c1cab8c618904c7a6046d7493db5b74b430 Partial-Bug: #1566269
* | Merge "Implement "address scope list" command"Jenkins2016-05-112-0/+60
|\ \ | |/
| * Implement "address scope list" commandHuanxuan Ao2016-05-112-0/+60
| | | | | | | | | | | | | | | | This patch add a command that supports listing address scopes Change-Id: Id14757011560cacf28011ba51841a8e23b824f33 Partial-Bug: #1566269
* | Merge "Implement "address scope delete" command"Jenkins2016-05-111-0/+31
|\ \ | |/
| * Implement "address scope delete" commandHuanxuan Ao2016-05-111-0/+31
| | | | | | | | | | | | | | | | This patch add a command that supports deleting a address scope Change-Id: Ie028058c759b9511d105a530d7e89b841865e7d6 Partial-Bug: #1566269
* | Merge "Implement "address scope create" command"Jenkins2016-05-111-0/+164
|\ \ | |/
| * Implement "address scope create" commandHuanxuan Ao2016-05-111-0/+164
| | | | | | | | | | | | | | | | | | This patch supports creating a new address scope, with --ip-version,--project,--project-domain and --share or --no-share options. Change-Id: I37c73391a41ac239dd72d55dbc0adbebd7701f4a Partial-Bug: #1566269
* | Trivial: Remove unuseful comments for assertRaise() checkingTang Chen2016-05-064-15/+0
| | | | | | | | | | | | | | | | "Missing required args should bail here" is not understandable and not necessary. The code is obvious enough. And some of the comments are misused because of code copy. So remove them. Change-Id: I031395f2c882386c7a708db5cf4eee75393dc639
* | Remove unnecessary type conversions in network unit testsTang Chen2016-05-065-46/+52
| | | | | | | | | | | | | | | | | | In some tests, when comparing the results data with the expected ones, many unnecessary type conversions are used. So remove them to clean up. Change-Id: I560ca78a3ab5e7b99087bfe1667de500f92c68de Partial-bug: #1550633
* | Merge "Fix router set --route option"Jenkins2016-05-031-6/+9
|\ \
| * | Fix router set --route optionRichard Theis2016-04-182-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the "--route" option on the "os router set" command. The option did not properly format the new routes to set which resulted in a "HttpException: Bad Request" error. In addition, the output for routes was fixed to improve readability and to align with the "--route" option on the "os router set" command. Change-Id: I9c514153ec201e2feae32be6dd281771e3298b9c Closes-Bug: #1564460
* | | remove assert in favor an if/elseMichael McCune2016-05-021-12/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the assert usage in the NonNegativeAction has the potential to allow unexpected behavior when the python is byte-compiled with optimization turned on. Changes * remove assert in favor of if/else in NonNegativeAction class * add type specifier to parser arguments for non-negative actions * correct tests for new int based values Change-Id: I093e7440b8beff4f179e2c4ed81daff82704c40e Closes-Bug: #1576375
* | | Fixes BadRequest when no --pool-prefix givenInessa Vasilevskaya2016-04-271-1/+14
| | | | | | | | | | | | | | | | | | | | | --pool-prefix is made required on subnetpool creation. Closes-bug: #1536479 Change-Id: I3d183e45e9b96bc08011c36f45ec2b7a9c01b627
* | | Merge "Add new share and default parms to subnet pool cmds"Jenkins2016-04-211-0/+86
|\ \ \
| * | | Add new share and default parms to subnet pool cmdsBrad Behle2016-04-201-0/+86
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the "share" and "default" parms to subnet pool create command. Add the "default" and "no-default" parms to subnet pool set command. Note that "share" can not be modified once subnet pool has been created, so do not add this to the set command. Change-Id: I1eecad69527a1cde7fb234669f4aff2be2db491e Partial-Bug: #1544591 Partial-Bug: #1544586
* | | Fix mutable default arguments in testsTang Chen2016-04-201-22/+32
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python’s default arguments are evaluated only once when the function is defined, not each time the function is called. This means that if you use a mutable default argument (like list and dict) and mutate it, you will and have mutated that object for all future calls to the function as well. More details about this wrong usage here: http://docs.python-guide.org/en/latest/writing/gotchas/#mutable-default-arguments In unit tests, most FakeXXX classes' methods take mutable arguments with default values [] or {}. We should change them to None. Change-Id: Iea833b66aa1379829511ad5c6d4432b72f3488e2 Closed-bug: #1550320
* | Merge "Add provider network options to osc network set"Jenkins2016-04-191-0/+9
|\ \
| * | Add provider network options to osc network setreedip2016-04-191-0/+9
| |/ | | | | | | | | | | | | | | The following patch adds the provider network options to OSC "network set". Change-Id: I23b617077eda25d16164172a8e280082750eaf18 Partial-Bug: #1545537
* | Add options to security group rule listRichard Theis2016-04-181-16/+83
|/ | | | | | | | | | | Add the following options to the 'os security group rule list' command: --long: Display direction and ethertype for Network v2 --all-projects: Display information from all projects for Compute v2 Change-Id: If8a1cbd7669cdfa6577d6d2f6fffd9e999a39a82 Partial-Bug: #1519512 Implements: blueprint neutron-client
* Merge "Append existing information during port set"Jenkins2016-04-151-1/+20
|\
| * Append existing information during port setreedip2016-04-141-1/+20
| | | | | | | | | | | | | | | | | | | | Existing --fixed-ip and --binding-profile information is currently overwritten when a user executes 'port set', but actually that data should be appended. This patch fixes the issue. Closes-Bug: #1564453 Change-Id: I62500c10ccbbc68167f24e9d4fa49e85345d82c4
* | Merge "Add external network options to osc network set"Jenkins2016-04-151-0/+9
|\ \
| * | Add external network options to osc network setreedip2016-04-151-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch adds the options "--external" & "--internal" and the suboptions to "external": "--default" & "--no-default", to "osc network set" CLI to provide the user an option to set a network as an external network or remove the setting. Change-Id: I3a7f2cb249bc8101cbb01322d7732e913237d6cd Partial-Bug: #1545537
* | | Merge "Add project options to security group rule create"Jenkins2016-04-141-0/+41
|\ \ \
| * | | Add project options to security group rule createRichard Theis2016-04-111-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the --project and --project-domain options to the 'os security group rule create' command. These options are for Network v2 only. Change-Id: Ie3e136be076f0f2c22fbe7048d1d6eaebf5aa655 Partial-Bug: #1519512 Implements: blueprint neutron-client
* | | | Merge "Add network options to security group rule create"Jenkins2016-04-141-2/+51
|\ \ \ \ | |/ / / | | / / | |/ / |/| |
| * | Add network options to security group rule createRichard Theis2016-04-111-2/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following network options to the "os security group rule" command: (1) --ingress and --egress (2) --ethertype These options enable egress and IPv6 security group rules for Network v2. Change-Id: Ie30b5e95f94e0c087b0ce81e518de72d2dda25ad Partial-Bug: #1519512 Implements: blueprint neutron-client
* | | Merge "Append existing information during subnet set"Jenkins2016-04-131-0/+20
|\ \ \
| * | | Append existing information during subnet setreedip2016-04-081-0/+20
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | Existing values of --dns-nameserver, --allocation-pool and --houst-routes is currently overwritten when a user executes 'port set', but actually that data should be appended. This patch fixes the issue. Closes-Bug: #1564447 Change-Id: I3dba9afa68d869abb3960b55a6880401a10eebf7
* | | Merge "Add --address-scope option "subnet pool create/set""Jenkins2016-04-132-6/+132
|\ \ \
| * | | Add --address-scope option "subnet pool create/set"Tang Chen2016-04-092-6/+132
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds --address-scope option to "subnet pool create/set" commands, and --no-address-scope option to "subnet pool set" command to clear the address scope setting. Change-Id: Ie2c370a50b52574fa6ec268083ad013b7544361e Partial-Bug: #1544586 Partial-Bug: #1544591
* | | | Fix prefixes output for subnet pool listRichard Theis2016-04-121-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixed "os subnet pool list" command to properly disply the list of subnet pool prefixes in the "Prefixes" column. This fix is consistent with the "os subnet pool create" and "os subnet pool show" command output. Change-Id: I431d85c3b7f5bf8a327500decf3a15063fc5b120 Closes-Bug: #1569480
* | | | Move keys() methods in each resource class to FakeResourceTang Chen2016-04-113-166/+60
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | FakeXXX classes in network don't need to fake any method, except keys(). But keys() can be put in FakeResource since it just returns all attributes in _info. This patch moves removes all unnecessary fake methods code, moves keys() method to FakeResource. This patch also finds out some missing attributes in network and router tests. Change-Id: I799822c8715b9ac4f95b98f8350f196757d79d3e
* | | Merge "Refactor security group rule list to use SDK"Jenkins2016-04-111-0/+186
|\ \ \ | |/ / |/| |
| * | Refactor security group rule list to use SDKRichard Theis2016-03-281-0/+186
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the 'os security group rule list' command to use the SDK when neutron is enabled, but continue to use the nova client when nova network is enabled. In addition, a release note was added to document the features and fixes resulting from this refactor. Change-Id: I24d04b720102ed1c60776e1ca67d4ca20e31b663 Partial-Bug: #1519512 Implements: blueprint neutron-client
* | | Merge "Add Subnet add/remove support to router"Jenkins2016-04-091-0/+79
|\ \ \
| * | | Add Subnet add/remove support to routerreedip2016-03-221-0/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch adds the support for "router add subnet" and "router remove subnet" to the OSC as a part of migration of Neutron's CLI commands. Partial-Bug: #1546849 Implements: blueprint neutron-client-advanced-router Change-Id: Ia3770c41026194bdb1543d4e67446f81936d44d1
* | | | Merge "Add "router remove port" to osc"Jenkins2016-04-091-0/+40
|\ \ \ \ | |/ / /
| * | | Add "router remove port" to oscreedip2016-03-211-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch proposes the migration of port deletion of Neutron's "router-interface-delete" to OSC's "router remove port". Change-Id: Ifceabce080aacac9f6410c809fcc097760e0c5ee Partial-Bug: #1546849 Implements: blueprint neutron-client-advanced-router
* | | | Merge "Add "router add port" to osc"Jenkins2016-04-081-0/+41
|\ \ \ \ | |/ / /
| * | | Add "router add port" to oscreedip2016-03-211-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch proposes the migration of port addition of Neutron's "router-interface-add" to OSC's "router add port". Change-Id: I3a8a76d384caa32975f8e77f50f3cf3c3be13786 Closes-Bug: #1546849 Depends-On: I9783bc4ccceae3d361dce52d51483ef2187920a9 Implements: blueprint neutron-client-advanced-router
* | | | Merge "TrivialFix: Rename provider segment option"Jenkins2016-04-081-1/+1
|\ \ \ \ | |_|_|/ |/| | |
| * | | TrivialFix: Rename provider segment optionreedip2016-04-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As per [1], provider-segmentation-id is changed to provider-segment as segments may soon have a "name" support as well. [1]: https://review.openstack.org/#/c/294422/12/doc/source/command-objects/network.rst Change-Id: I74d4366301b41fa181faccbc12cff9530df60353
* | | | Add option to clear information from portsreedip2016-04-071-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds the option of "no-fixed-ip" and "no-binding-profile" which is used to clear the fixed-ip and binding:profile information from the ports. Change-Id: I946301eaf6c647bae55e4f416aa0d98e5f06e699
* | | | Merge "Add provider network options to osc network create"Jenkins2016-04-061-0/+9
|\ \ \ \ | |/ / /
| * | | Add provider network options to osc network createreedip2016-04-061-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch adds the provider network options to OSC "network create". Change-Id: Ib8449c00ee4b4285889588f03ddd7a686ce8f987 Partial-Bug: #1545537
* | | | Merge "Add external network options to osc network create"Jenkins2016-04-062-1/+17
|\ \ \ \ | |/ / /
| * | | Add external network options to osc network createreedip2016-04-062-1/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The following patch adds the options "--external" & "--internal" and the suboptions to "external": "--default" & "--no-default", to "osc network create" CLI to provide the user an option to create a network as an external network. Change-Id: Idf73714bb94c0610ea164131140a51848908b00b Partial-Bug: #1545537
* | | | Merge "Add name option to 'port set'"Jenkins2016-04-061-0/+3
|\ \ \ \ | |/ / / |/| | |