summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | Add unit tests for compute v2 aggregateRui Chen2016-03-261-5/+331
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch add the complete unit tests to cover compute v2 aggregate object. Change-Id: Ifcf9248eabb5ca3ee5ca01c5843e96ba681c3b5a Closes-Bug: #1560832
* | | | | Merge "Add "aggregate unset" to osc"Jenkins2016-03-302-0/+98
|\ \ \ \ \ | |/ / / /
| * | | | Add "aggregate unset" to oscRui Chen2016-03-242-0/+98
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support "aggregate unset" command in order to remove the property of aggregate object in OSC. Change-Id: I49645135586362f0fd251f5e4a4c03eff273d9e9 Closes-Bug: #1559866
* | | | | Fix subnet pool prefix length optionRichard Theis2016-03-301-6/+6
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix the --min-prefix-length, --max-prefix-length and --default-prefix-length options for the "os subnet pool create" and "os subnet pool set" commands. Using these options caused the commands to fail with "HttpException: Bad Request" because unrecognized attributes were passed to the REST API. No release note was added since these commands are new and haven't been released. Change-Id: I2f765750f79dc91d6c1f5962f699fbf2ee38657a Closes-Bug: #1564004
* | | | Merge "Support security group name for --src-group"Jenkins2016-03-281-5/+5
|\ \ \ \
| * | | | Support security group name for --src-groupRichard Theis2016-03-231-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Support security group name for the "--src-group" option on the "os security group rule create" command. Change-Id: Ic23d0671dad77566269c9a588644c8d774368733 Closes-Bug: #1540656
* | | | | Merge "Refactor security group rule create to use SDK"Jenkins2016-03-284-278/+323
|\ \ \ \ \ | |/ / / /
| * | | | Refactor security group rule create to use SDKRichard Theis2016-03-234-278/+323
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the 'os security group rule create' command to use the SDK when neutron is enabled, but continue to use the nova client when nova network is enabled. Added a release note for the change in security group rules output due to Network v2. Change-Id: I8c6c99d5272ff5d410a449f73d198d834c5cd96e Partial-Bug: #1519512 Implements: blueprint neutron-client
* | | | Merge "Subnet: Add "subnet set" command using SDK"Jenkins2016-03-251-3/+71
|\ \ \ \
| * | | | Subnet: Add "subnet set" command using SDKreedip2016-03-241-3/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds "subnet set" command to osc using sdk. Implements: blueprint neutron-client Closes-bug: #1542363 Change-Id: Id3b7f4b9190b4d73ca3ae423321a65f94a6da62e
* | | | | [Floating IP] Neutron support for "ip floating create" commandTang Chen2016-03-241-0/+166
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds --subnet, --port, --floating-ip-address and --fixed-ip-address options only. Project related options will be added in another patch because it relates to identity v2 and v3, which will make the unit tests too complicated in one single patch. Change-Id: I3cce4404a114ff128b74e4596f0e847be2846b17 Partial-Bug: 1519502 Related-to: blueprint neutron-client
* | | | Use assert_called_once_with() instead of assert_called_with()Tang Chen2016-03-226-58/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If one API is only called once, we'd better use assert_called_once_with() to check the call. Change-Id: Id05055bb90592d218826732259ed84fc366734ce
* | | | Merge "Fix options in port create/set"Jenkins2016-03-171-4/+4
|\ \ \ \ | |/ / / |/| | |
| * | | Fix options in port create/setDean Troyer2016-03-171-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * --device-id should have been --device * --host-id should have been --host Old options are deprecated and retained for compatibility since they appear in a release. Closes-Bug: 1558677 Change-Id: Ic733523c8d57060f2cb5d420fdb1f7598e7d5e71
* | | | Merge "Add option to allow filtering by router on port list"Jenkins2016-03-171-1/+23
|\ \ \ \
| * | | | Add option to allow filtering by router on port listJas2016-03-161-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added support to allow filtering ports via --router option to list ports that are applicable to specific router. Partial-bug: #1519909 Partially-implements: blueprint neutron-client Change-Id: I6dd958603909f641735c821a62fc0d45afd5c7ec
* | | | | Merge "[compute] Add set host command"Jenkins2016-03-172-0/+131
|\ \ \ \ \
| * | | | | [compute] Add set host commandjichenjc2016-02-262-0/+131
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | set host command is missing, add it as SetHost class. Change-Id: I7acb94150718b7150598632cbebc3d85018a0d59
* | | | | | Add support for deleting Image-propertyroot2016-03-161-0/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to delete volume's image property. This patch will provide support for deleting image property to existing volume. Closes-Bug:#1554879 Change-Id: I9256913948fae9e9a03fed173b826dfa918f78e9 Implements: bp cinder-command-support
* | | | | | Add support for setting Image-propertyroot2016-03-161-0/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | OSC does not support to set volume's image property. This patch will provide support for adding image property to existing volume. Closes-Bug:#1554877 Implements: bp cinder-command-support Change-Id: I4ff5532c228f010789b81c7587dd4a2838a90f20
* | | | | | Merge "Add project options to security group create"Jenkins2016-03-161-0/+41
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Add project options to security group createRichard Theis2016-03-111-0/+41
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the --project and --project-domain options to the 'os security group create' command. These options are for Network v2 only. Change-Id: I9e1667080a1a49389d51ade2e76a08b08a09870b Closes-Bug: #1519511 Implements: blueprint neutron-client
* | | | | Merge "Support "--long" option in ListService"Jenkins2016-03-142-1/+27
|\ \ \ \ \
| * | | | | Support "--long" option in ListServiceRui Chen2016-03-142-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add "--long" option in ListService so that compute service disabled reason can be showed. Change-Id: I1ace8f1c4e4efe0a1a8f6710425d73eb5db9e5e1 Closes-Bug: #1556815
* | | | | | Merge "Add "os subnet create" command using SDK"Jenkins2016-03-142-4/+334
|\ \ \ \ \ \
| * | | | | | Add "os subnet create" command using SDKBrad Behle2016-03-102-4/+334
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Implement the openstack client subnet create command using SDK calls. Co-Authored-By: Terry Howe <terrylhowe@gmail.com> Partially implements: blueprint neutron-client Closes-Bug: #1542364 Change-Id: Ia6120b8dccf2ee83dc89b3f496f7180d4dc5199a
* | | | | | | Use assertItemsEqual() instead of assertListEqual()Tang Chen2016-03-141-10/+2
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assertListEqual() is order sensitive. So we need to sort the lists before we compare them. Use assertItemsEqual() instead is better. Change-Id: I9eaa98716c7401f5b099b007438acc916dae619b
* | | | | | Merge "Fixed command list"Jenkins2016-03-111-6/+10
|\ \ \ \ \ \ | |_|/ / / / |/| | | | |
| * | | | | Fixed command listBrandon Palm2016-03-091-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The cliff module expects an array of tuples however the array that this function was returning was an array of tuples that was also containing an array of values for the commands attached to each group and the cliff module wasn't liking it. The output now comes out looking like: | openstack.common | limits show | | | extension list | | openstack.baremetal.v1 | baremetal set | Change-Id: Ifa1c149cb5c66ba27dc72bf72d7c8f2f50e42f73 Closes-Bug: 1545609
* | | | | | Merge "Trivial: Reorder classes in identity v3 in alphabetical order"Jenkins2016-03-116-217/+217
|\ \ \ \ \ \
| * | | | | | Trivial: Reorder classes in identity v3 in alphabetical orderTang Chen2016-03-116-217/+217
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Iaf2e336c2415416ec69f6b974743c26509bba561
* | | | | | | Merge "Enhance list extension unit test"Jenkins2016-03-112-40/+137
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | |
| * | | | | | Enhance list extension unit testFang Zhen2016-03-112-40/+137
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extension list involves identity, compute, volume and network. Current test covers only identity and network. This patch added test against compute and volum. Also refactored current implentation. Change-Id: If9b36cba24c50a817a17f685801e418fb898596a
* | | | | | Merge "Refactor security group create to use SDK"Jenkins2016-03-112-133/+153
|\ \ \ \ \ \
| * | | | | | Refactor security group create to use SDKRichard Theis2016-03-102-133/+153
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the 'os security group create' command to use the SDK when neutron is enabled, but continue to use the nova client when nova network is enabled. Added a release note for the change in security group rules output due to Network v2. The tenant_id column name was fixed to align with the 'os security group show' command. Change-Id: Ib29df42edcddcc73a123fff6a64743a6bfcb7fbf Partial-Bug: #1519511 Implements: blueprint neutron-client
* | | | | | | Merge "Refactor security group show to use SDK"Jenkins2016-03-113-9/+152
|\ \ \ \ \ \ \ | |/ / / / / / | | / / / / / | |/ / / / / |/| | | | |
| * | | | | Refactor security group show to use SDKRichard Theis2016-03-103-9/+152
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the 'os security group show' command to use the SDK when neutron is enabled, but continue to use the nova client when nova network is enabled. Added a release note for the change in security group rules output due to Network v2. The column names remain unchanged to maintain backwards compatibility. Change-Id: I25233ddb8115d18b8b88affb3de13346084a339d Partial-Bug: #1519511 Implements: blueprint neutron-client
* | | | | Merge "[Subnet pool] Add 'subnet pool create' command support"Jenkins2016-03-102-4/+115
|\ \ \ \ \
| * | | | | [Subnet pool] Add 'subnet pool create' command supportTang Chen2016-03-082-4/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch supports creating a new subnet pool, with pool prefixes, default prefix length, minimum prefix length, and maximum prefix length specified. Change-Id: I9150797c8cfa794d5264ad07965aa967d9a8f5bc Partial-Bug: #1544586 Related-to: blueprint neutron-client
* | | | | | Merge "[Subnet pool] Add 'subnet pool set' command support"Jenkins2016-03-101-2/+93
|\ \ \ \ \ \ | |/ / / / / | | / / / / | |/ / / / |/| | | |
| * | | | [Subnet pool] Add 'subnet pool set' command supportTang Chen2016-03-081-2/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch supports setting a new name, pool prefix, default prefix length, minimum prefix length, and maximum prefix length for a subnet pool. Change-Id: I65bd71e0f54f2f65acefbc542df67a1b1ec26397 Partial-Bug: #1544591 Related-to: blueprint neutron-client
* | | | | Merge "Remove FakeFlavorResource class"Jenkins2016-03-091-29/+16
|\ \ \ \ \
| * | | | | Remove FakeFlavorResource classTang Chen2016-03-091-29/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In unit tests, all real methods are faked. They should not do any real operations in the tests. So, FakeFlavorResource is not necessary. Just fake get_keys(), set_keys and unset_keys() in FakeResource would be enough. Change-Id: Icc3473ba9c77f4817d0edddb7ff3e1bd2946fac7
* | | | | | Merge "remove py26 workaround in osc"Jenkins2016-03-091-24/+0
|\ \ \ \ \ \ | |_|_|/ / / |/| | | | |
| * | | | | remove py26 workaround in oscSteve Martinelli2016-03-081-24/+0
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | we don't support py2.6, so let's remove the workarounds we have. Change-Id: Id9c8fda065d4aceba3192b044b5c5f2124ee204f
* | | | | Merge "[Identity] Check return value is None in identity v3 unit tests"Jenkins2016-03-096-15/+28
|\ \ \ \ \
| * | | | | [Identity] Check return value is None in identity v3 unit testsTang Chen2016-03-096-15/+28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | take_action() in commands inheriting from Command returns nothing. So we should assert the return is None in the unit tests of these commands. Change-Id: I53eeb88316b2c20882fed97149d55cb04bcb2b2e Closes-Bug: #1550636
* | | | | | Merge "Add --reason for disable service"Jenkins2016-03-091-0/+26
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Add --reason for disable servicejichenjc2016-03-091-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | disbale service allow a reason to be input as disable reason. This patch add support for it. Change-Id: I59622c3970e055ebd46bf03c33c864b6d064db28
* | | | | | Add 'port set' commandJas2016-03-081-0/+79
| |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add CLI support for the 'port set' command Change-Id: I2bea508e11290284aa64b1ab548a0bb61e7290d3 Partial-bug: #1519909 Partially-implements: blueprint neutron-client