summaryrefslogtreecommitdiff
path: root/openstackclient/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Display Network QoS rule type detailsSławek Kapłoński2017-11-052-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Rehome test units libPierre Hanselmann2017-11-023-3/+5
| |/ |/| | | | | | | | | Rehoming deprecated libs for the ones provided in osc-lib. Change-Id: Idb4a27f2c8edf48909ef010e3c7a1a5c0c16efc5
* | Merge "Added AddNetwork command to server"Zuul2017-10-301-0/+47
|\ \
| * | Added AddNetwork command to serverHongbin Lu2017-10-261-0/+47
| |/ | | | | | | | | | | | | | | | | | | | | | | | | Currently, if users want to add another NIC to a running instance, they need to (i) create a neutron port and (ii) add the port to the server via teh AddPort command. It would be more convenient to have a single command to achieve the equivalent. Novaclient already support adding network to an instance via the interface-attach command. This patch introduces a similar capability in OSC. Change-Id: Ia3e39c57ae7ecb96aae1b66adc52c289daccb6ec
* | Add server rescue unit testsDean Troyer2017-10-271-0/+85
| | | | | | | | | | | | Added to support the new options to server rescue command. Change-Id: Ia9dca85e05488fa8d5f57cd5e8920e94b8f65c22
* | Merge "Add missing parameters on openstack server rescue"Zuul2017-10-271-1/+12
|\ \ | |/ |/|
| * Add missing parameters on openstack server rescueJose Castro Leon2017-10-271-1/+12
| | | | | | | | | | Change-Id: I27afca9e826378dbcb7feb7528e0c65c528b04b0 Closes-Bug: #1703278
* | Merge "Native DevStack jobs"Zuul2017-10-252-106/+0
|\ \
| * | Native DevStack jobsDean Troyer2017-10-242-106/+0
| | | | | | | | | | | | | | | | | | | | | Convert legacy DevStack jobs to native Zuul v3 form, plus some test-job-related docs updates. Change-Id: Ia8c08be81605da885b9eee799fc58129305dfc41
* | | Merge "Add wrapper around ostestr"Zuul2017-10-231-0/+16
|\ \ \ | |/ /
| * | Add wrapper around ostestrMonty Taylor2017-10-231-0/+16
| | | | | | | | | | | | | | | | | | | | | The functional tests assume that an openrc file has been sourced. Make a simple wrapper that will do that. Change-Id: I42584aaebcbca99a8c922f6ff90c8bbce57bbfbb
* | | Merge "Allow creating security rules without protocol"Zuul2017-10-211-0/+30
|\ \ \
| * | | Allow creating security rules without protocolDaniel Speichert2017-10-171-0/+30
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In order to create a rule for any protocol, the client must not specify the protocol in the API call. This is currently impossible because protocol defaults to TCP. In order not to change the default behavior, a "new" protocol name is added: "any", which makes this CLI skip sending the protocol field altogether. Change-Id: I58853d3745f3631007e5e9780c0c5c2526b730a3 Closes-Bug: 1712242
* | | Merge "Accept 0 for --min-disk and --min-ram"Zuul2017-10-212-0/+52
|\ \ \ | |_|/ |/| |
| * | Accept 0 for --min-disk and --min-ramShogoAdachi2017-10-202-0/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current openstackclient implementation cannot accept 0 for --min-disk and --min-ram with the "openstack image set" command. If theses options get set to 0, the option parser in openstackclient wrongly interprets 0 as no option value. The 0 is valid for these options if administrators want to make it the default(no minimum requirements). This patch fix the parser so that it avoids only 'None'. Change-Id: Ie8ee37484c02c26f54adc56263fcd167c0ce7eb3 Closes-bug: #1719499
* | | 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
* | Switch to $USER in post_test_hooksIan Wienand2017-10-162-8/+8
| | | | | | | | | | | | | | As a first step to zuul migration, switch to $USER from a static "jenkins" username. Change-Id: I26ed12133c75a69182c56b6ecf483fcdc37d98f3
* | Merge "Optimize getting endpoint list"Jenkins2017-10-131-0/+2
|\ \
| * | Optimize getting endpoint listAnton Frolov2017-09-261-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently ListEndpoint.take_action method unconditionally iterates over all endpoints and issue GET /v3/services/<ep.service_id> request for each endpoint. In case of HTTPS keystone endpoint this can take significant amout of time, and it only getting worse in case of multiple regions. This commit change this logic to making just two GET requests: first it gets endpoint list, then it gets service list, searching service in the list instead of issuing GET /v3/services/<id> request. Change-Id: I22b61c0b45b0205a2f5a4608c2473cb7814fe3cf Closes-Bug: 1719413
* | | Support creating unaddress neutron portHongbin Lu2017-09-291-0/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduce an option '--no-fixed-ip' on port create command. If this option is specified and '--fixed-ip' is unspecified, OSC will send a request to neutron with 'fixed_ips' as an empty list, which will create an unaddress neutron port. Note: The use cases of unaddress port was outlined in: https://specs.openstack.org/openstack/neutron-specs/specs/liberty/unaddressed-port.html (dtroyer: add Depends-On for Zuul v3 test) Depends-On: I39e8e49243ab0bda631600715c971c55a34e2fd9 Change-Id: Ibe38598acbbcd0d353c952fc2a6fa67780762151 Closes-Bug: #1717829
* | | Merge "Support icmp-type and icmp-code to be set as zero"Jenkins2017-09-271-0/+170
|\ \ \
| * | | Support icmp-type and icmp-code to be set as zerogvrangan2017-09-261-0/+170
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | When icmp-type or icmp-code are set to 0, the current implementation ignores the value, this fix will allow the value to be copied and displayed Change-Id: I96133a57883d22e98fcbb9fe0328d9e050472469 Signed-off-by: gvrangan <venkatrangang@hcl.com>
* | | Merge "Fix 'project purge' deletes ALL images problem"Jenkins2017-09-273-12/+14
|\ \ \
| * | | Fix 'project purge' deletes ALL images problemlihaijing2017-09-263-12/+14
| |/ / | | | | | | | | | | | | Closes-Bug: #1717130 Change-Id: I33c6fc7897dfee85d1c197a1267bde4abfa5bbd9
* | | Merge "Add "volume service list --host" functional test case"Jenkins2017-09-261-2/+12
|\ \ \
| * | | Add "volume service list --host" functional test caselihaijing2017-09-191-2/+12
| | | | | | | | | | | | | | | | Change-Id: I467252d9fc6083fb891a8701d7992f16ce42556f
* | | | Merge "Update the documentation link for doc migration"Jenkins2017-09-262-2/+2
|\ \ \ \ | |_|/ / |/| | |
| * | | Update the documentation link for doc migrationlingyongxu2017-09-212-2/+2
| |/ / | | | | | | | | | | | | | | | | | | This patch is proposed according to the Direction 10 of doc migration(https://etherpad.openstack.org/p/doc-migration-tracking). Change-Id: Ieca93d77bfc5e54486312f16122cc12c5bda0934
* | | Merge "Add functional test cases for "volume qos associate/disassociate""Jenkins2017-09-191-1/+93
|\ \ \
| * | | Add functional test cases for "volume qos associate/disassociate"lihaijing2017-09-181-1/+93
| |/ / | | | | | | | | | | | | Change-Id: I07b25bebb8a0ea18cdf042357be65c4ec6e1cfed Closes-Bug: #1717874
* | | 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
* | Merge "Attempt to work around chronically failing server issues with ↵Jenkins2017-09-162-4/+15
|\ \ | | | | | | | | | aggregates and qos"
| * | Attempt to work around chronically failing server issues with aggregates and qosDean Troyer2017-09-152-4/+15
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Fix subunit collection in functional tests with ostestr>=1.0.0Matthew Treinish2017-09-152-0/+16
|/ / | | | | | | | | | | | | | | | | With the release of os-testr 1.0.0 stestr is used internally and because of that the repository dir and commands to get subunit are different. This commit updates the post-test hook to get the subunit stream if ostestr>=1.0.0 is used. Change-Id: I2cce7f4780ce418398b17a5848def9072372841e
* | Merge "Correct import of keystoneauth1 session"Jenkins2017-09-131-1/+1
|\ \
| * | Correct import of keystoneauth1 sessionGage Hugo2017-09-121-1/+1
| |/ | | | | | | | | | | | | | | keystoneclient.session has been long deprecated in favor of keystoneauth1.session. This change corrects the import in the tests to use the correct library's session. Change-Id: Ic24ebde59e4b9eb70d6f14c1e0536f8d24f0de73
* | Skip Volume v1 functional tests if v1 not presentDean Troyer2017-09-121-3/+24
|/ | | | | | | | Volume v1 is gone in Queens Just skip it for now until DevStack does not create a v1 endpoint Change-Id: I2aa2f78b0d5c8ac2048c922c7835e5c4574028cc
* Merge "Convert remaining network functional tests to JSON"Jenkins2017-08-252-55/+39
|\
| * Convert remaining network functional tests to JSONAkihiro Motoki2017-08-232-55/+39
| | | | | | | | Change-Id: Ib7dff5506cc69549b5b1fbb8bf6e649468563dd6
* | Merge "Convert network qos functional tests to JSON"Jenkins2017-08-243-233/+193
|\ \ | |/
| * Convert network qos functional tests to JSONAkihiro Motoki2017-08-233-233/+193
| | | | | | | | Change-Id: Ie5cde2f927ec6abb6334ea01adfb06749384ed01
* | Merge "Convert network security group functional tests to JSON"Jenkins2017-08-242-106/+52
|\ \ | |/
| * Convert network security group functional tests to JSONAkihiro Motoki2017-08-232-106/+52
| | | | | | | | Change-Id: Icb63aa0dfbce9016fb824f97915a660cf130d120
* | Merge "flake8-import-order: Ensure to place project imports last"Jenkins2017-08-244-6/+7
|\ \
| * | flake8-import-order: Ensure to place project imports lastAkihiro Motoki2017-08-224-6/+7
| |/ | | | | | | | | | | | | | | To ensure project imports are placed after third party import, we need to specify application-import-names. Previously flake8-import-check checked only standard imports or not. Change-Id: Iad7afa456cec7cf5b44955f1ea03c593a4c0e426
* | Implied RolesHarry Rybacki2017-08-222-0/+205
|/ | | | | | | | | | | | | | | | | Allow the user to create an inference rule between two roles. The first, called the prior role is the role explicitly assigned to an individual. The second, called the implied role, is one that the user gets implicitly. For example: Role B implies Role A. User X is assigned Role B. Therefore User X also assigned Role A. The management and maintenance of the rules is performed in the Keystone server. Change-Id: If547c2f16e812bc7fffd742ec37e6a26011f3185
* Use flake8-import-order pluginAkihiro Motoki2017-08-1738-33/+45
| | | | | | | | | | | | | | | | In reviews we usually check import grouping but it is boring. By using flake8-import-order plugin, we can avoid this. It enforces loose checking so it sounds good to use it. This flake8 plugin is already used in tempest. Note that flake8-import-order version is pinned to avoid unexpected breakage of pep8 job. Setup for unit tests of hacking rules is tweaked to disable flake8-import-order checks. This extension assumes an actual file exists and causes hacking rule unit tests. Change-Id: I12b596820727aeeb379bee16c2bc993dee9eb637
* Convert network segment functional tests to JSONDean Troyer2017-08-131-45/+99
| | | | Change-Id: I8dc1e992d54c63c93bbe2bdd7acba61a7a6773d0
* Merge "network functest: Remove condition for segment test"Jenkins2017-07-282-89/+48
|\
| * network functest: Remove condition for segment testAkihiro Motoki2017-07-272-89/+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