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
Add a depreaction warning to tempest-lib to let our users know
they should switch to tempest.lib if they want the latest and
greatest fixes and functionalities.
Partially implements bp tempest-lib-reintegration
Change-Id: I316f5b3c00d50345761b7678297b894730d968e5
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
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
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
The tempest network_client still contains some bulk methods, but
they should be implemented on each resource client.
This patch addes them into each client. After this patch and a new
tempest-lib release, we can remove these bulk methods from Tempest.
Partially implements blueprint consistent-service-method-names
Change-Id: Iea34620ae8785cc593d9c68bf3c31840f3e79bd7
This migrates the above files from tempest.
This includes tempest commits:
* security_group_rules_client.py: I2cd6bef13a16672bf0dbf6aeab0c60f0221e1a49
* extensions_client.py : I49b30eac4d7db0b06a3b0946158e542801cf4e75
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: I76b1d0b1c3ffb2c366c4e6d95105d9c8fde2a22b
Tests are failing due to images that have null name or size values
even though these are valid images that happen to have been created
outside of tempest.
The API spec indicates that both values can be null:
http://developer.openstack.org/api-ref-image-v2.html#listImages-v2
Change-Id: I015bc569ac4dde5d06b5418b98ff29537b7a4b1c
Closes-Bug: #1533730
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
This migrates the above files from tempest.
This includes tempest commits:
* agents_client.py : I505fa196c574027692497848d235781d903cb9f6
* subnetpools_client.py: I405a896b4da0c5cb5bc87622d07498c06932f406
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: I97b67e2385452db6ef59bc4b8c63c211ca119bc2
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
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
This migrates the above files from tempest.
This includes tempest commits:
* quotas_client.py : I8087a7bf5e130778df9629065a8bfda8018fdbe0
* security_groups_client.py: I88a43f44346671de5dfb759d07c4086cffa8d4d9
to see the commit history for these files refer to the above Change-Ids
in the tempest repository.
NOTE: reset_quotas() of quotas_client is different from the method
naming rule, but is is the same as the api-site. So it is fine
now.
Partially implements blueprint migrate-service-clients-to-tempest-lib
Change-Id: I559c7ec29d6cc85060d59b8b7714a669a277f217
- 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
This migrates the above files from tempest.
This includes tempest commits:
* base.py : Icf9f6fa4ea52a1fe72253391abf4880b1f8ed497
* floating_ips_client.py : Iaeabf6cb827e4153d72353dab6d1d66f0f246eb6
* metering_label_rules_client.py: Iddecde5f6f5c1ac88a18d71aab1fc26370b26ba8
* metering_labels_client.py : I3364fc9320640b875f5232c2ae5a4ae98121d821
* networks_client.py : Iff82c07bae2b1c82e5ff914ca90fcf5fc7de8daa
* ports_client.py : I1248cc6132f4a2e40ad13f6177c7ecda834db57d
* subnets_client.py : I52c9d099b97540440fa98343c736b894d130a07e
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: Ic840c3697f727612dfe754948e9a5890e7f2505d
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
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
The api-site doc contained invalid links which were duplicated in the
doc. We did put TODOs for fixing the links after the api-site changes.
Now these links have been fixed on the api-site, so this patch fixes
them in tempest-lib.
Change-Id: I8bbfc2933d5400b8ae35331bc63f128421486d02
server_groups_client is not released yet on the latest temepst-lib
(v0.11.0), so we can remove get_server_group() because nobody uses
this method.
Change-Id: Ibc63c797fa72ac265ca72a0786071c458531b87d
As we discussed on
http://lists.openstack.org/pipermail/openstack-dev/2015-July/068864.html
we need to write docstring for http POST/PUT methods.
This patch adds docstring for create/update methods of compute client
[h-q]*. In addition, this patch fixes some inconsistencies like "Creates"
is changed to "Create".
Change-Id: I7c96053f0389b31b6321f0290a210a132862c90e
As we discussed on
http://lists.openstack.org/pipermail/openstack-dev/2015-July/068864.html
we need to write docstring for http POST/PUT methods.
This patch adds docstring for create/update methods of compute client
[a-f]*. In addition, this patch fixes some inconsistencies like "Creates"
is changed to "Create".
Change-Id: Ibb395364ee60c3a72daecb2b65d6525d19f28e7d
As we discussed on
http://lists.openstack.org/pipermail/openstack-dev/2015-July/068864.html
we need to write docstring for http POST/PUT methods.
This patch adds docstring for create/update methods of compute client
[s-v]*. In addition, this patch fixes some inconsistencies like "Creates"
is changed to "Create".
Change-Id: I48917b6ddd40f1b959f2a1e1f2c6306524aeec99
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
[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