summaryrefslogtreecommitdiff
path: root/tempest_lib/tests
Commit message (Collapse)AuthorAgeFilesLines
* Retire tempest-lib in favor of tempest.libHEADmasterGhanshyam Mann2022-04-0562-7623/+0
| | | | | | | | | | | | | | | As of the 1.0.0 release tempest-lib as a separate repository and project is deprecated. We moved all the code to tempest.lib temepst version 10. Hoping everyone is moved to tempest.lib now, We can retire the tempest-lib. We discussed the same in PTG and agreed to proceed on retirement - https://etherpad.opendev.org/p/qa-zed-ptg Needed-By: https://review.opendev.org/c/openstack/governance/+/836704 Change-Id: I37ceb96e084f569ea59e4849ca8770742ce17846
* Merge "Add update attached volume function to servers_client"Jenkins2016-02-121-0/+11
|\
| * Add update attached volume function to servers_clientTakashi NATSUME2016-02-051-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | os-volume_attachments API for update: PUT /v2.1/{tenant_id}/servers/{server_id}/os-volume_attachments/{attachment_id} tenant_id: The project ID (tenant ID) that the target server belongs to server_id: The server ID to update the volume attachment attachment_id: The volume attachment ID to update Request body sample: { "volumeAttachment": { "volumeId": "a26887c6-c47b-4654-abb5-dfadf7d3f805" } } volumeId: The volume ID to attach instead of the volume that has already been attached This API does not return a response body. Reference: - Request body sample https://github.com/openstack/nova/blob/master/doc/api_samples/os-volumes/update-volume-req.json - Fuctional test test_volume_attachment_update method in VolumeAttachmentsSample class https://github.com/openstack/nova/blob/master/nova/tests/functional/api_sample_tests/test_volumes.py Change-Id: Ic0258e5688be6ede3316ab4310e9ca6ac0f51659 Implements: blueprint add-nova-swap-volume-tests
* | Merge "Fix project domain problem in v3 token client"Jenkins2016-02-121-0/+38
|\ \
| * | Fix project domain problem in v3 token clientJohn Warren2016-02-101-0/+38
| |/ | | | | | | | | | | | | | | The project domain (name or ID) is omitted in auth requests when the project ID is specified. This change fixes the issue. Change-Id: I3d970acd9b5c61ee3436689f940a5e92b10ae299 Closes-Bug: #1542655
* | Add cli execute test caseMasayuki Igawa2016-02-101-0/+6
|/ | | | | | | | | This commit adds a unit test case of cli.base.execute(). Originally, the failure test case asserts 'fail_ok=True' condition only. However, the execute() raises an exception when 'fail_ok=False'(default). So we should test the behavior in our unit test. Change-Id: I0d1a0dd74ad0884475010bdc88b899c41b86998a
* Merge "Added __init__.py to tests/services/identity/"Jenkins2016-02-033-4/+4
|\
| * Added __init__.py to tests/services/identity/Adrien Cunin2016-01-253-4/+4
| | | | | | | | | | | | | | | | | | | | This is necessary for the tests to actually be run. Also use sort_keys=True for json.dumps() in both the auth() methods and the unit tests that compare the expected and actual request bodies. Otherwise the order of the keys is unpredictable and the tests fail randomly. Change-Id: Ieb27be22367b419326939c4261388286e6c996c4
* | Merge "Change attach_id to volume_id in show_volume_attachment"Jenkins2016-01-261-1/+1
|\ \
| * | Change attach_id to volume_id in show_volume_attachmentMatt Riedemann2016-01-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The id in the os-volume_attachments GET request is actually the volume id [1] so rename the variable so people like me aren't super confused when writing code with tempest-lib. [1] http://tinyurl.com/hl2mcwb Change-Id: Ie5454963ce931a7238e34737b638e171c69d0125
* | | Merge "Raise IdentityError if auth_url doesn't exist"Jenkins2016-01-262-0/+10
|\ \ \ | |/ / |/| |
| * | Raise IdentityError if auth_url doesn't existAdrien Cunin2016-01-252-0/+10
| |/ | | | | | | | | | | | | | | | | | | Otherwise a TypeError, not understandable for the user, is raised. This happens for example when using tempest account-generator with no identity uri defined in the config file. Also added unit tests for this specific case. Change-Id: Ia8d523f973240300e0010b9b28f5ee63b2b84341
* | Migrate the skip_unless_attr decorator from tempestGhanshyam2016-01-201-0/+29
|/ | | | | | | This commit migrates the skip_unless_attr from tempest to tempest-lib. Change-Id: I6a1e7a411a4b27fa0f9bd533276d5cb4d4759976
* Prevent StopIteration exception during parse responseVictor Ryzhenkin2015-12-241-0/+5
| | | | | | | | | | - Parse response body only if there is one top-level element in JSON object because if there is nullable JSON in response body six will throw us an StopIteration exception from six.next Closes-Bug: #1529144 Change-Id: Iea2d0950b25cb8f576ca7e15383a205e04d7c9e3
* Migrated servers_client.py from tempest0.12.0Ken'ichi Ohmichi2015-12-161-0/+1000
| | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * servers_client.py : I7174723f907fd8962d9d12fe76bec2dc06883938 * servers.py : I10a8c32b53f15063dab087d67123598800b141a0 * test_servers_client.py: I7174723f907fd8962d9d12fe76bec2dc06883938 to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: I9234f063a72bd58100bfffd3db38718a257ce6ea
* Migrated floating_ips_client.py from tempestKen'ichi Ohmichi2015-12-081-0/+113
| | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * floating_ips_client.py: Ib7886438228f31142dd23d9ca3205e7d2b434c92 * test_floating_ips_client.py: Ibbb6439d31f5379bcb5e92e8bf49bcab9ad51a0f to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: Ide46dfbd437707c376bb44f86c99a87b739b9ef0
* Merge "Fix fixed_ip schema and service client"Jenkins2015-12-021-0/+13
|\
| * Fix fixed_ip schema and service clientghanshyam2015-11-241-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are two issues in fixed_ip schema and client. 1. Schema expect string in response body- Nova had bug#1356058 for response of reserve/unreserve fixed ip APIs, where plain text ("202 Accepted The request is accepted for processing.") was returned in response body. It is fixed on Nova side - Ifca3081f573407808a2196e71ac1db87180db6ec 2. Return value of reserve_fixed_ip client method- In Fixed ip service client, reserve_fixed_ip method does not return the response body. As per consistency in service client interfaces, this method should return the response value even that is empty body. Those were fixed in Tempest but did not get sync in lib. -I098ee0d1fa3056f8cfb0654e2b8fd3bf75fb3e2c -I2cb1ef8dacd1994576656cfb108dd2eef2fbd988 Change-Id: I27b8d2165188ee069f5d8d22c0426f2c748f80c8
* | Merge "Add 410 error code handling to REST client"Jenkins2015-11-261-0/+22
|\ \
| * | Add 410 error code handling to REST clientVictor Ryzhenkin2015-11-171-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | - Add Gone exception which will raised if REST client hits error code 410. - Add unit tests for this exception. Change-Id: I543fa80875d6de00845d5dc26bc07da2c1a7cd09
* | | Merge "Rename get_server_group to show_server_group"Jenkins2015-11-241-6/+6
|\ \ \
| * | | Rename get_server_group to show_server_groupKen'ichi Ohmichi2015-11-191-6/+6
| | |/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | [GET /resources] methods should be "list_<resource name>s" or "show_<resource name>", so this patch applies the rule to server_group client. This patch makes tempest-lib sync for the commit of Tempest I75307176c2f032301da6227249070c42af54dd6e, but get_server_group has been released in tempest-lib 1.0.0 already. So it is difficult to remove it directly for backwards compatibility and this patch adds warning message for clarifying deprecated method. Partially implements blueprint consistent-service-method-names Change-Id: I9e321aaf4791e8ff11e3aa114b41eb612db481ca
* | | Merge "python3: converts binary data from channel"Jenkins2015-11-241-46/+70
|\ \ \ | |/ / |/| |
| * | python3: converts binary data from channelAndrey Pavlov2015-11-061-46/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | paramiko returns chunk of binary type. So code must join all chunks with binary type and not as str. Also this patchset adds one more parameter 'encoding' for exec function to decode binary result to str. Closes-Bug: #1495181 Change-Id: I886c9d0c143d3553876ece7b6d1ac2df7e49d701
* | | Merge "Support service client unit tests for headers also."Jenkins2015-11-172-5/+33
|\ \ \ | |_|/ |/| |
| * | Support service client unit tests for headers also.ghanshyam2015-10-132-5/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some APIs like create image, returns only headers with empty response body. We should have unit tests for those API also which required to add header support in base service client test class. This commit support header testing for service client and implement create image unit tests which only return info in headers. Change-Id: I9a79f862288e5fa827414ce1f26d80bcca4db687
* | | Merge "Migrated server_groups_client.py"Jenkins2015-11-101-0/+84
|\ \ \
| * | | Migrated server_groups_client.pyJohn Fischer2015-09-291-0/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * server_groups_client.py : Icb38fd22c61545cfbe024108a06068ada01afc6b * test_server_groups_client.py: I3ad6761651cec5e66012d08e6b63322f53286a5c * servers.py : Ica929c402a3d042ae751302384e68853eb28b405 Partially implements blueprint migrate-service-clients-to-tempest-lib to see the commit history for these files refer to the above Change-Ids in the tempest repository Change-Id: Ie95fcbfad5352d272e8977c33f80ebb9769fe824
* | | | Merge "Enhance unit test coverage: aggregates_client"Jenkins2015-11-101-0/+62
|\ \ \ \
| * | | | Enhance unit test coverage: aggregates_clientKenji Yasui2015-10-021-0/+62
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds test for "add_host", "remove_host", "set_metadata". Change-Id: Ifcdb9368353c08dfd09b63a2ae0c29649337c31d
* | | | | Merge "Migrated security_group_rules_client.py"Jenkins2015-11-101-0/+66
|\ \ \ \ \
| * | | | | Migrated security_group_rules_client.pyThao Nguyen2015-10-091-0/+66
| | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * security_group_rules_client.py: If8c82c978d269f59f4606b65b25e1eace20e9b4a * test_security_group_rules_client.py: I2df27f5603a46eb8454556e410b2feea5ab22539 to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: I2be5d9983dd31a2af455fdb5c495227f22b3f575
* | | | | Merge "update unit test about quotas_client"Jenkins2015-11-041-13/+51
|\ \ \ \ \ | |_|_|_|/ |/| | | |
| * | | | update unit test about quotas_clientKenji Yasui2015-10-151-13/+51
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently unit test about quotas_client does not support "user_id" in test_show_default_quota_set and test_update_quota_set. This patch adds case of using "user_id" to these tests. Change-Id: I6536ea1e56ee64a61f4a46c7877057fa83fc2893
* | | | Merge "Fix test_show_default_quota_set_xxx"Jenkins2015-10-281-2/+2
|\ \ \ \
| * | | | Fix test_show_default_quota_set_xxxKen'ichi Ohmichi2015-10-141-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There is an internal test method _test_show_default_quota_set, but the method is not used for test_show_default_quota_set_xxx. That means show_default_quota_set() is not tested on unit tests. This patch makes test_show_default_quota_set_xxx use the internal method for the unit test purpose. Change-Id: Id0322784f42c5380dc887d1fbd844cf8a3482cf6
* | | | Improve unit test coverage for alt_auth dataAndrea Frittoli (andreaf)2015-10-161-3/+21
| |_|/ |/| | | | | | | | | | | | | | | | | Using alternative or empty auth_data is only tested for one of the auth parts. Extend tests to cover headers, body and url. Change-Id: I5e11bdb342beb5431f8199391d037018c7f26e9a
* | | throw BadAltAuth exception when alt auth == auth0.11.0Sean Dague2015-10-152-9/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we are expecting to replace a thing by switching to alternate auth, but don't, this should be an exception. Otherwise it's easy to obliviously not change to an alt auth element and be doing the wrong thing. Fixing and extending unit tests accordingly. Change-Id: I738098c061c64d8bb68670ecd9ade616d3a9d5ab
* | | Merge "Added Test Cases for VersionsClient"Jenkins2015-10-151-0/+96
|\ \ \
| * | | Added Test Cases for VersionsClientReedip Banerjee2015-10-141-0/+96
| |/ / | | | | | | | | | | | | | | | | | | This patch adds the Unit Test Cases for testing the Versions Client module. Change-Id: I09a7855f23c869386359950ab1621351569528f3
* | | Merge "Migrated quota_classes_client.py from tempest"Jenkins2015-10-151-0/+71
|\ \ \
| * | | Migrated quota_classes_client.py from tempestTuan Nguyen2015-10-091-0/+71
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * quota_classes_client.py: Idd8afb1bcfc1b0165b1e967a991d4705ff182249 * test_quota_classes_client.py: I3ad6761651cec5e66012d08e6b63322f53286a5c * quota_classes.py: I2378e019353f551a3ac49666edd5ecb561b5b6ed to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: I48ce2ddf21218eb02f6ae47cb0356c340ced06ae
* | | Merge "Migrated services_client.py from tempest"Jenkins2015-10-151-0/+94
|\ \ \
| * | | Migrated services_client.py from tempestKen'ichi Ohmichi2015-10-141-0/+94
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * services_client.py : Ib5617c3957cf60b2c1f11b78b7c3a136adf7ef9d * test_services_client.py: I3ad6761651cec5e66012d08e6b63322f53286a5c * services.py : Icd49783f19be4c30df9532e85b0cccf3410ad8fb to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: I29684ec61023650bd2bb3a76b708bac24608f6c0
* | | Merge "Migrated interfaces_client.py from tempest"Jenkins2015-10-151-0/+98
|\ \ \
| * | | Migrated interfaces_client.py from tempestReedip Banerjee2015-10-141-0/+98
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * interfaces_client.py: Idacc612bfed3d5a4abd58c8a987f68675b948f86 * test_interfaces_client.py: I976fd1d91dc3db4006f32b30e859981120487b0b * interfaces.py: I64883306235dc3b90a3a878674532f77d825d5c4 to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: I758cf64ba1e6f760a60ed253cb9a8c9bc75ba73b
* | | Merge "Migrated volumes_client.py from tempest"Jenkins2015-10-151-0/+114
|\ \ \
| * | | Migrated volumes_client.py from tempestKen'ichi Ohmichi2015-10-141-0/+114
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * volumes_client.py : Ibd9b6c67c5b9790b6d6f1a76d334ee5d6c98ad5f * test_volumes_client.py: Ibd9b6c67c5b9790b6d6f1a76d334ee5d6c98ad5f * volumes.py : Ica929c402a3d042ae751302384e68853eb28b405 to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: I10913f82dc3d0bef53edd67144cb47580d3c574d
* | | Migrated snapshots_client.py from tempestKenji Yasui2015-10-141-0/+103
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This migrates the above files from tempest. This includes tempest commits: * snapshots_client.py : If7be1e24451b24fce03dcfc1394abb6260da460c * test_snapshots_client.py : Idc31ee38fd9d5fd4873de6ba29550bdd5ce35043 * snapshots.py : I9694e36a7d0a8e9bd6cd66c9dc46a4a715d2c25f to see the commit history for these files refer to the above Change-Ids in the tempest repository. Partially implements blueprint migrate-service-clients-to-tempest-lib Change-Id: I7854f7e080de9e819a1fae0d2de5d3aee111505a
* | Merge "Migrated images_client.py from tempest"0.10.0Jenkins2015-10-091-0/+240
|\ \