3008 Commits

Author SHA1 Message Date
Pierre Riteau
da17a2762e Fix TestKeypairAdmin tests and compute.*_keypair
The get_keypair and delete_keypair calls need to specify the user_id if
the keypair belongs to another user. This was only working by accident
because the first element returned by list_users was the current user.
However, the ordering of the user list is now different following a
change in Keystone [1].

This failing test uncovered additionally that keypair methods are not
properly setting user_id into the query parameters. Overload fetch and
delete methods to properly pass user_id as a parameter.

[1] https://review.opendev.org/c/openstack/keystone/+/938814

Closes-Bug: #2095312
Co-Authored-By: Artem Goncharov <artem.goncharov@gmail.com>

Change-Id: Ic552dee83d56278d2b866de0cb365a0c394fe26a
2025-01-20 09:53:37 +01:00
elajkat
059ae3f8f8 BGP: remove debug print added in [1]
[1]: https://review.opendev.org/c/openstack/openstacksdk/+/920670
Related-Bug: #2067039

Change-Id: I069b8975e1cdc3b2c3686dfa35fd64f773ebad1f
2025-01-07 09:56:39 +01:00
Zuul
d04f0ba22a Merge "compute, volume: Tweak 'update_quota_set' compat shim" 2024-12-18 18:22:08 +00:00
Zuul
b2833dfd3a Merge "BGP: return list for get_dragents and get_bgp_speakers_hosted_by_dragent" 2024-12-18 17:23:48 +00:00
Zuul
64138b59c9 Merge "Add support for default volume types" 2024-12-18 12:48:29 +00:00
Zuul
47c66a9892 Merge "Skip add_tags test when tag-creation extension disabled" 2024-12-18 12:48:26 +00:00
8d443a4561 Skip add_tags test when tag-creation extension disabled
Was missed in recent patch[1] which added the support.

[1] https://review.opendev.org/c/openstack/openstacksdk/+/927779

Related-Bug: #2073836
Change-Id: Icdcf4418ce1bc6524265bdaa339ba396df00d545
2024-12-18 09:24:58 +05:30
Zuul
109e674c15 Merge "Add TSIG key support for DNS zones in SDK" 2024-12-17 19:50:43 +00:00
Zuul
aa03af7ec7 Merge "Add getting info about the Limit in a DNS SDK." 2024-12-17 19:50:14 +00:00
Zuul
c058f63ad3 Merge "Fix volume backup restore response" 2024-12-17 19:09:33 +00:00
Zuul
42011c556b Merge "identity: Add support for endpoint projects" 2024-12-17 14:17:13 +00:00
Zuul
91f7249c0e Merge "Add method to create network resource tags" 2024-12-14 23:19:57 +00:00
Zuul
16f3e62dc4 Merge "pre-commit: Migrate pyupgrade to ruff-format" 2024-12-10 23:50:31 +00:00
Stephen Finucane
ad6beea71d compute: Use security group name or ID
Despite what Nova's api-ref currently says [1], the 'addSecurityGroup'
action only requires a security group name if using nova-network: it
will happily accept either a name or ID if using neutron.

We are using 'Proxy._get_resource' to allow users to pass either an ID
or an 'openstack.network.v2.security_group.SecurityGroup' object
(there's no implementation of Nova's deprecated SecurityGroup resource).
If given an ID, this help method will only populate the 'id' field of
the created resource. Thus, we need to use this if provided.

[1] https://docs.openstack.org/api-ref/compute/#add-security-group-to-a-server-addsecuritygroup-action

Change-Id: I3dd56414b32207a16c6c83971f0494ccb86e07d4
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
Closes-bug: #2089821
2024-12-03 15:22:02 +00:00
Zuul
0625e1a519 Merge "block storage: Add user_id query param for Volume" 2024-11-26 19:32:36 +00:00
Zuul
0111d7574c Merge "compute: Add additional migration parameters" 2024-11-26 19:32:34 +00:00
Zuul
10f52866c1 Merge "identity: Add functional tests for projects" 2024-11-26 19:32:32 +00:00
Zuul
00a5a69380 Merge "Identity: Support assigning inherited roles" 2024-11-26 19:32:30 +00:00
Zuul
32f906472e Merge "Add port bindings to SDK" 2024-11-26 19:32:28 +00:00
Zuul
1ce38723b8 Merge "Timing tests should use a threshold." 2024-11-26 19:32:26 +00:00
Zuul
fee2c98926 Merge "identity: Add tags, options to Domain" 2024-11-26 19:32:24 +00:00
Dr. Jens Harbott
85aa947ee7 Skip disabling compute service
The tests.functional.compute.v2.test_service.TestService.disable_enable
test seems to sometimes cause following tests to fail until the
compute service has fully recovered.

Change-Id: Ie0c11e487404375d4341bfc50e76aa6b117de601
2024-11-22 12:54:40 +01:00
Zuul
6ea9ba4d8a Merge "Skip disabling compute service" 2024-11-15 12:29:31 +00:00
elajkat
85a14888cd Add port bindings to SDK
Related-Bug: #1580880
Change-Id: Ic963fbca27511a7242eb79ae6256f0aa15b0ddcc
2024-11-14 10:28:14 +00:00
Stephen Finucane
c5d74ad33b identity: Add tags, options to Domain
We also remove an unnecessary 'name' field since it's defined on the
parent Resource class and add a missing links field to Project too.

Change-Id: Id1b7b00fe5b96f0cc922716afabcc678193f0f57
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-13 16:58:05 +00:00
Stephen Finucane
399dfcc0e5 pre-commit: Migrate pyupgrade to ruff-format
openstack/tests/unit/cloud/test_stack.py needs some manual fixes but
this is otherwise auto-generated.

Change-Id: If0d202ece232181c16ee4990eb428e9ad6e91cd5
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-12 14:27:23 +00:00
Michael Still
30d41a4b3f Timing tests should use a threshold.
The stats tests were using an exact value for a timing statistic,
which results in flakey results. Instead, let's set a small
maximum threshold.

Change-Id: I0be868daf3edbc6570585968a573e6e167c6bd1c
2024-11-10 18:39:08 +11:00
Stephen Finucane
adf152f972 identity: Add support for endpoint projects
This is an extension. We require it to support migration to OSC.

No functional tests are added yet since we don't currently have the
ability to associate a project with an endpoint.

https://docs.openstack.org/api-ref/identity/v3-ext/index.html#create-association

Change-Id: I599ff3e88d4e1e9ffafc638bb74186f2739b5a77
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-07 10:29:48 +00:00
Zuul
3faf2cacb6 Merge "Add functional test for tags in Neutron resources" 2024-11-06 12:31:27 +00:00
Stephen Finucane
1453d56c99 block storage: Add user_id query param for Volume
We also combine two unit test classes since the existing layout was
resulting in unnecessary duplicated tests being run.

Change-Id: I2cfd8593b4b231469d2a0684d20dc3a2fd88290b
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-06 11:30:26 +00:00
Stephen Finucane
30153433a9 compute: Add additional migration parameters
Change-Id: I94f6f3ffe36326e3c0531a6618ee72c5f56b7901
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-06 11:24:45 +00:00
Stephen Finucane
677192bf82 identity: Add functional tests for projects
Change-Id: Ic5248c57ac2e83a522426e9a2dc4a6b8ceb89d67
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-11-06 10:55:04 +00:00
Rodolfo Alonso Hernandez
7005482787 Add method to create network resource tags
Depends-On: https://review.opendev.org/c/openstack/neutron/+/924724

Related-Bug: #2073836
Change-Id: I920595d36352f778b6488dfa3fe5d6278c0e7ec6
2024-11-05 23:49:58 +00:00
Dr. Jens Harbott
1621b490b9 Skip disabling compute service
The openstack.tests.functional.compute.v2.test_service.TestService.test_update
test seems to sometimes cause following tests to fail until the
compute service has fully recovered.

Change-Id: I69e27afd67dd4f578283a3eafa946bc9aa80bfed
2024-11-05 16:16:10 +01:00
0weng
aff5e358ac Identity: Support assigning inherited roles
Change-Id: I7ab6a693f486b5093533e123e6f9d0cefa3c1a83
2024-10-21 23:05:56 +00:00
Rodolfo Alonso Hernandez
7e592aabe3 Add functional test for tags in Neutron resources
Change-Id: I05d55e3ddddf52e477ed53a8bfdaefefd7874efd
2024-10-19 20:44:39 +00:00
Stephen Finucane
f6b9a3907a compute: Add locked filter for Server
Change-Id: If47890ec259249a9cdec4bb758f91889c7991f09
Closes-bug: #2084547
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-10-15 13:08:55 +01:00
goldmung
e4536fff79 Add TSIG key support for DNS zones in SDK
This commit adds functionality for managing TSIG keys for DNS zones, which was missing in the SDK despite being documented in the DNS API.

- Implemented create, delete, and list operations for TSIG keys related to zones.

Change-Id: Id13e434aa1497a46b60d35fe03188d30e974b50e
2024-10-13 15:01:54 +09:00
Rajat Dhasmana
a9ad50640f Fix volume backup restore response
Previously the backup restore response only included ``id``
whereas the restore API returns ``backup_id``, ``volume_id``
and ``volume_name`` fields.
Turns out the resource_response_key was missing in the translate
response method and the has_body parameter was set to False indicating
that the response doesn't return a body which is not true.
This patch fixes the above stated issues.

Story: 2011235
Task: 51137

Change-Id: Id5c7fd2f0fcb55474b44b688bfdebaca4c670bd2
2024-10-10 14:18:25 +05:30
René Ribaud
0b592bceb9 Avoid race condition between rule removal and share deletion in tearDown
The test_create_delete_access_rule_with_locks test occasionally fails
because tearDown attempts to delete the share before the access rule,
which involves locking, has been fully removed. This patch ensures
that the access rule is properly removed before proceeding with share
deletion, thus preventing the race condition.

Change-Id: I61f889bc07d84c80116db2f2b15ce6dc5eb10c5d
2024-10-09 15:35:57 +02:00
Junwoo Park
e53b1b7606 Add getting info about the Limit in a DNS SDK.
I added this because showing the info lists for a limit as specified in the DNS API documentation is not implemented in the SDK.

Change-Id: I4d7b9a3c0f652f9a07fbf70df35e3c780462514c
2024-10-05 16:19:09 +09:00
Rajat Dhasmana
1cc397991d Add support for default volume types
This patch adds support for default volume type operations:
1. Set
2. Unset
3. List
4. Get

Change-Id: Iac22d3c989b2b19fe4f167011aec1304becc4f34
2024-10-04 17:58:07 +05:30
Zuul
4892f9d19a Merge "Add getting the status of the services in designate system" 2024-10-02 14:57:18 +00:00
Zuul
16781a9fb4 Merge "Deprecate unnecessary options, aliases" 2024-10-02 10:54:02 +00:00
Zuul
c6e857cf12 Merge "cloud: Stop reimplementing ignore_missing=False" 2024-10-02 10:22:57 +00:00
Zuul
9171c65dbc Merge "Add support for the runbooks feature" 2024-10-02 10:22:55 +00:00
Stephen Finucane
7069879b58 Deprecate unnecessary options, aliases
Change-Id: Ia2203bea15c8593611f01eca6ab511c0e11ae8b6
Signed-off-by: Stephen Finucane <stephenfin@redhat.com>
2024-10-02 09:52:16 +02:00
Zuul
c602ec7b5e Merge "Add "trusted" attribute to "port" resource" 2024-10-02 05:59:06 +00:00
Slawek Kaplonski
7994f88a35 Add "trusted" attribute to "port" resource
Related-bug: #2060916
Change-Id: Id065db33d7a71f0b4aac8ee95d4d3947736a7bda
2024-10-01 14:37:53 +02:00
Zuul
0aaab13251 Merge "Add timeline for removal of deprecated features" 2024-09-24 18:03:33 +00:00