This commit is part of a series to retire the Packaging Deb
project. Step 2 is to remove all content from the project
repos, replacing it with a README notification where to find
ongoing work, and how to recover the repo if needed at some
future point (as in
https://docs.openstack.org/infra/manual/drivers.html#retiring-a-project).
Change-Id: Icdf9efc6fa93ad17cc846fcb15d3f7b675b5f324
This commit adds a **bold** note to tempest-lib readme to explain that
tempest-lib is deprecated and explain how to use the library in tempest.
Change-Id: I7be8357d67e31d0dc51f453edf02b46dab4f6f63
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
This commit adds reno release notes to the tempest-lib to track the
changes each release. It adds a note for the upcoming deprecation of
tempest-lib in the next release.
Partially implements bp tempest-lib-reintegration
Change-Id: I651eecf3ad40a0d8acf0305d200555f97f50bea5
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