summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Fix --enable options on commands"Jenkins2016-06-043-4/+19
|\
| * Fix --enable options on commandsRichard Theis2016-06-023-4/+19
| | | | | | | | | | | | | | | | | | | | | | | | The --enable option on commands is ignored when the arguments are parsed. This is related to the --enable-beta-commands option. Renaming the option to --os-beta-command fixes the problem. There's no need to handle backwards compatibility for the option name change because there hasn't been an OSC release yet with beta commands. Change-Id: I0327ba8a2058858a83e9a42e231470ed733cc834 Closes-Bug: #1588384
* | Merge "Add support for removing flavor-access"Jenkins2016-06-021-2/+86
|\ \ | |/ |/|
| * Add support for removing flavor-accessHuanxuan Ao2016-06-021-2/+86
| | | | | | | | | | | | | | | | Add "--project" and "--project-domain" options in "flavor unset" command to remove flavor access. Change-Id: Ia5c5a80d9890d5af066b75b4e202647c18c7d915 Partial-Bug: #1575461
* | Merge "Add FakeQos class and update unit test for qos_specs in VolumeV2"Jenkins2016-06-022-204/+207
|\ \
| * | Add FakeQos class and update unit test for qos_specs in VolumeV2Huanxuan Ao2016-05-312-204/+207
| | | | | | | | | | | | Change-Id: I108c8d343678f3d19d1ca1f93d998c46c7c32eff
* | | Merge "Fix unit test for volume commands in volumev2"Jenkins2016-05-311-27/+21
|\ \ \ | |_|/ |/| |
| * | Fix unit test for volume commands in volumev2Huanxuan Ao2016-05-311-27/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are some issues in test_volume.py in volumev2, I make three changes in this patch: 1.modified some codes that not used FakeVolume class. 2.added a fake image by FakeImage class for this test. 3.added a fake snapshot by FakeSnapshot class for this test. Change-Id: I02ba73d3aaee95624b0e2307b255e0e485b0c3a3
* | | Merge "add unit test for compute agent command"Jenkins2016-05-312-0/+255
|\ \ \ | |/ / |/| |
| * | add unit test for compute agent commandsunyajing2016-05-312-0/+255
| |/ | | | | | | Change-Id: I966d5a3a307fcd7f4efb1267aa2896efd53be50d
* | Merge "Add support for setting flavor-access"Jenkins2016-05-302-2/+100
|\ \
| * | Add support for setting flavor-accessHuanxuan Ao2016-05-302-2/+100
| |/ | | | | | | | | | | | | | | This patch adds "--project" option in "flavor set" command to support for setting flavor access. Change-Id: I75b473600080d8ab1dd6ad01561c4f989ed3c3bd Partial-Bug: #1575461
* | Merge "Add network segment command object"Jenkins2016-05-304-0/+257
|\ \
| * | Add network segment command objectRichard Theis2016-05-274-0/+257
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | Add network segment command object in support of routed networks. This patch set includes documentation, unit tests and functional tests (currently skipped until segments enabled in neutron by default) for the following new commands: - "os network segment list" - "os network segment show" These new commands are currently marked as beta commands. Change-Id: I1a79b48dc6820fe2a39fcceb11c8cae3bda413a0 Partially-Implements: blueprint routed-networks
* | Merge "Add "image unset" command"Jenkins2016-05-302-0/+95
|\ \
| * | Add "image unset" commandsunyajing2016-05-282-0/+95
| |/ | | | | | | | | | | | | | | This patch add a command that supports unsetting image tags and properties Change-Id: I6f2cf45a61ff89da6664f3a34ae49fdd85d8c986 Closes-Bug:#1582968
* | Merge "[compute] Add server backup function"Jenkins2016-05-302-0/+273
|\ \
| * | [compute] Add server backup functionjichenjc2016-05-272-0/+273
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add server backup function There is no return value for this command per following doc http://developer.openstack.org/api-ref-compute-v2.1.html#createBackup, also novaclient can't be updated now due to backward compatible issue http://lists.openstack.org/pipermail/openstack-dev/2016-March/089376.html, so we have to get the information ourselves. The Image tests were not using warlock images, so that needed to be fixed before we could completely test things like --wait. Change-Id: I30159518c4d3fdec89f15963bda641a0b03962d1
* | Merge "Support to set server state"Jenkins2016-05-301-0/+61
|\ \
| * | Support to set server stateRui Chen2016-05-281-0/+61
| |/ | | | | | | | | | | | | | | | | | | When a server is unexpected state, OSC don't support reset the server to active or error state, that's supported by novaclient, and it's an important command for operators, the patch implement this function. Change-Id: I3e7800feb192832b0719ef9a353945beb6bfd509 Implements: blueprint server-reset-state
* | Support deleting multi address scopes in networkv2Huanxuan Ao2016-05-282-8/+81
|/ | | | | | | | This patch adds support for deleting multi address scopes by using "address scope delete" command. Change-Id: Ic8d3ebc17db44ca5d42c336d2c4d5633f70d4e8b Partially-Implements: blueprint multi-argument-network
* Merge "keystone: fix catalog output when region is unset"Jenkins2016-05-252-4/+23
|\
| * keystone: fix catalog output when region is unsetJulien Danjou2016-05-252-4/+23
| | | | | | | | | | | | | | | | | | | | If no region is set in Keystone, null is deserialized as None and the region has None has value, which triggers a type error when building the output string. This patch fixes that. Change-Id: I7637dc2595655cf452f38308f99fe66ac782e16d
* | Merge "Refactor service unit tests"Jenkins2016-05-252-73/+101
|\ \
| * | Refactor service unit testsTang Chen2016-05-252-73/+101
| | | | | | | | | | | | | | | | | | | | | Add a FakeService class, and refactor service unit tests to use this class. Change-Id: I650ad83386a58205ebe42274d2bf2f508436bfa6
* | | Merge "Search by user defined ID for service providers"Jenkins2016-05-251-0/+1
|\ \ \ | |/ / |/| |
| * | Search by user defined ID for service providersSteve Martinelli2016-05-241-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IDs for service providers can be user defined (like, Bob). This causes issues with the usual get by ID method. Keystone server side has implemented changes to search by ID when listing, which should resolve the issue with minimal changes to the client side. Change-Id: Ic705806e4bc7bb24f946a1fce803a0a0a4d788c1 Closes-Bug: 1555830
* | | Merge "Refactor TestVolumeShow with FakeVolume"Jenkins2016-05-243-9/+54
|\ \ \
| * | | Refactor TestVolumeShow with FakeVolumeting.wang2016-05-173-9/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In the meantime, add some static methods in FakeVolume for ease of use and add info() method with "property" decorator in FakeResource to allow those static methods to get fake information. Change-Id: I98ad520f32afd529fda77a4592f645130282537f Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-volume-unittest-framework
* | | | Merge "Search by user defined ID for identity providers"Jenkins2016-05-241-0/+1
|\ \ \ \ | |_|_|/ |/| | |
| * | | Search by user defined ID for identity providersSteve Martinelli2016-05-231-0/+1
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | IDs for service providers can be user defined (like, Bob). This causes issues with the usual get by ID method. Keystone server side has implemented changes to search by ID when listing, which should resolve the issue with minimal changes to the client side. Change-Id: Ic58df22b3445d3293a8e1c76c5da79badebf6528 Closes-Bug: 1479837
* | | Merge "Add network support for "quota set""Jenkins2016-05-232-0/+62
|\ \ \
| * | | Add network support for "quota set"Fang Zhen2016-05-192-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "quota set" command support compute and volume quotas previously. This patch add support network. Partially-implements: blueprint neutron-client-quota Closes-bug: 1489441 Change-Id: I9d297f52bc30614b3493f09ed15f8f1d3f8ff952
* | | | Merge "Add FakeType class and update volumetype test in VolumeV2"Jenkins2016-05-232-117/+158
|\ \ \ \
| * | | | Add FakeType class and update volumetype test in VolumeV2Huanxuan Ao2016-05-232-117/+158
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds FakeType class and update unit tests for volume type with FakeType class Change-Id: I86ecc68dd1a1e919f3325cd9456974a0cfadbe61
* | | | | Merge "Add FakeSnapshot class and update snapshot test in VolumeV2"Jenkins2016-05-232-122/+196
|\ \ \ \ \ | |/ / / / | | | / / | |_|/ / |/| | |
| * | | Add FakeSnapshot class and update snapshot test in VolumeV2Huanxuan Ao2016-05-212-122/+196
| |/ / | | | | | | | | | | | | | | | | | | Add FakeSnapshot class and update unit tests for snapshot commands with the FakeSnapshot class. Change-Id: If039a48b9d5f8430cc3d041b8c7ec30af8ff0e03
* | | Fix image tests to use warlock resourcesDean Troyer2016-05-202-43/+21
|/ / | | | | | | | | | | | | | | | | | | We have been testing (incorrectly) Image v2 using our usual FakeResource objects, when the v2 API actually uses warlock schema modelled resources. Bring this to the tests (TestImageSet was already doing this) Change-Id: Ia6ed3a8e28a8961f770c241b49d47cce9ff328d3
* | Merge "Add support of setting snapshot state"Jenkins2016-05-181-2/+18
|\ \
| * | Add support of setting snapshot stateXi Yang2016-03-091-2/+18
| | | | | | | | | | | | | | | | | | | | | | | | This patch is going to add the functionality of setting snapshot state which OSC currently lacks. Closes-Bug:#1535239 Change-Id: I2afd6567416e75ba0c70b73351cf1eb5394b3373
* | | Merge "Add ip version filter to subnet list"Jenkins2016-05-171-0/+16
|\ \ \
| * | | Add ip version filter to subnet listManjeet Singh Bhatia2016-05-161-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch will add argument ip-version to command subnet list Change-Id: If7458d4979e53aec7e2633c4f1779c3810f9a3f1 Closes-Bug: #1581179
* | | | Merge "Add FakeBackup class and updata backup unittest in volumeV2"Jenkins2016-05-172-113/+193
|\ \ \ \
| * | | | Add FakeBackup class and updata backup unittest in volumeV2Huanxuan Ao2016-05-172-113/+193
| |/ / / | | | | | | | | | | | | Change-Id: I39762bedaeaaf1894f48912ca1b7d59ab50f9f78
* | | | Merge "Enhance exception handling for "network delete" command"Jenkins2016-05-172-16/+152
|\ \ \ \
| * | | | Enhance exception handling for "network delete" commandTang Chen2016-04-142-16/+152
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch rework "network delete" command following the rules in doc/source/command-errors.rst. In "network delete" command, there are multiple REST API calls, and we should make as many of them as possible. And log error for each one, give a better error message. Also return a non-zero exit code. Change-Id: I39ae087dd7bd08d049d513abfa6c5cab2bd13b2b Partial-Bug: #1556719
* | | | | Merge "Add VLAN Transparent option to ``osc network``"Jenkins2016-05-161-0/+6
|\ \ \ \ \
| * | | | | Add VLAN Transparent option to ``osc network``reedip2016-05-161-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | osc network set and network create now support --transparent-vlan|--no-transparent-vlan options to add/remove vlan transparency from the network. Change-Id: I845eb8f541cd32a4c4b28f929a63b205e7e31756 Closes-Bug: 1545537
* | | | | | Merge "Refactor TestRemoveProjectImage with FakeImage class"Jenkins2016-05-161-11/+9
|\ \ \ \ \ \
| * | | | | | Refactor TestRemoveProjectImage with FakeImage classting wang2016-05-161-11/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id40ea8a3cf59738fa254da0bca4ad6551565f5de Co-Authored-By: xiexs <xiexs@cn.fujitsu.com> Implements: blueprint improve-image-unittest-framework