Commit Graph

10495 Commits

Author SHA1 Message Date
Ashish Gupta b5a160a1cc pytest-based integration tests:add images tests
Added the following tests:
- test_update_image_metadata_admin
- test_launch_instance_from_image_admin
- test_create_volume_from_image_admin

Change-Id: I5dd18e97593c1b2cb9634d4e448403d3f895ee5d
2024-03-27 15:37:48 +05:30
Zuul 32acd8371d Merge "pytest-based UI tests add help page and theme tests" 2024-03-26 12:03:21 +00:00
OpenStack Proposal Bot 10e45042f4 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I127d33c4df59da7dac2b22f2dce132cfc32b9a3a
2024-03-22 03:54:17 +00:00
Jan Jasek cf51415b0f pytest-based UI tests add help page and theme tests
test_dashboard_help_redirection
test_switch_to_material_theme

Change-Id: Ia6611ff1aae26234c56921e9e70d7ff4c0bacfa8
2024-03-19 14:40:11 +01:00
Rodrigo Barbieri da8e959298 Fix error on changing user password by admin
Previous change I8438bedaf7cead452fc499e484d23690b48894d9
attempted to address bug LP#1728031 by improving upon
patch https://review.opendev.org/854005 but missed the
line that allows the keystone client to properly
authenticate a cloud admin user that IS NOT in the
default domain.

Without this 1-line fix, a cloud admin that is not
in the default domain will face an "incorrect admin
password" error in the UI (despite the admin password
being correct) and an authentication error in the logs,
regardless of the endpoint type used (adminURL,
internalURL or publicURL).

Closes-bug: #1728031
Change-Id: I018e7d9cb84fd6ce8635c9054e15052ded7e9368
2024-03-14 15:58:43 -03:00
manchandavishal 712dbd26d1 Sync default policy rules
This patch updates default policy-in-code rules in horizon based on
nova/neutron/cinder/keystone RC deliverables. It doesn't update policy
rules for glance as I have found no changes in their policy rules.
Horizon needs to update default policy-in-code rules for all backend
services before releasing the horizon[1].

[1] https://docs.openstack.org/horizon/latest/contributor/policies/releasing.html#things-to-do-before-releasing

Change-Id: I7437b3a46377c18f026db103237b4d107dc787cb
2024-03-12 04:43:48 +00:00
Zuul be825dfda8 Merge "pytest-based selenium tests add images tests" 2024-03-11 15:53:18 +00:00
Zuul e7d8005321 Merge "Add a setting for disabling dhcp agents column in the admin network view" 2024-03-08 17:44:21 +00:00
Zuul 061380cba7 Merge "fix: ignore errors when flavors are deleted" 2024-03-04 07:20:21 +00:00
Radomir Dopieralski 1ea4f4d76f Add a setting for disabling dhcp agents column in the admin network view
Retrieving that information for every network can take considerable time
on large deployments with large number of networks, and for some kinds
of network drivers (ovn binary) this will be always zero anyways.

This setting lets us disable that column to speed up the networks view.

Change-Id: I1f1561916067d3f4a02f10ec9f62e8ba777a1501
2024-02-22 17:36:12 +01:00
Zuul e8719ca29e Merge "Add user login mocking to the pytest UI tests" 2024-02-20 07:12:32 +00:00
Zuul ba9a318359 Merge "Fixing Incorrect URL when browsing Swift containers" 2024-02-19 14:36:16 +00:00
Zuul 590632cf5c Merge "Extend configurable skippability of neutron calls to project instance detail" 2024-02-13 14:46:03 +00:00
Radomir Dopieralski d2af1e6e1a Add user login mocking to the pytest UI tests
This way we can run the tests in any order.

Change-Id: Ifdc89b650540cc632f7c6ec2005a429b89a5b9f0
2024-02-13 15:04:26 +01:00
OpenStack Proposal Bot 36dfe1f156 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I120b9d824ebf57faff5e37ca47c6cf008ce98e43
2024-02-10 04:24:16 +00:00
OpenStack Proposal Bot b83691224b Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I6525a7b82e9e8a59e8dffac1a9c1f43a95ec2e9f
2024-02-09 04:44:16 +00:00
Zuul 8a3006756d Merge "Remove workaround for old django-pyscss" 2024-02-07 17:21:38 +00:00
Zuul ba2b5fe784 Merge "pytest-based selenium tests add volume manage attachments test" 2024-02-06 16:58:44 +00:00
Zuul 2445c54ad4 Merge "pytest-based selenium tests add router set, clear gateway tests" 2024-02-06 16:58:41 +00:00
Jan Jasek 485724209c pytest-based selenium tests add volume manage attachments test
test_manage_volume_attachments

Increase wait_for_steady_state_of_volume. Attach/detach can
take quite a long time.

Add wait_for_steady_state_of_volume into the extend_volume
test to wait until extending is done before checking size via SDK.

Change-Id: Ie3b9cf74e7c0a2ffcc3c9bbed1b4d45a84545e8f
2024-02-06 11:01:56 +01:00
Zuul 1966d5ce82 Merge "Remove quota checks from admin network dashboards" 2024-02-06 09:13:12 +00:00
Takashi Kajinami bced896d37 Remove workaround for old django-pyscss
This reverts the change[1] made earlier to workaround the issue caused
by usage of vendored version of six library in the django-pyscss
library.

The django-pyscss library no longer imports the vendored version of
six, since 2.0.3[2].

[1] 39f28ad5ed
[2] 1499332e1d

Change-Id: I22802b75d6a8d8f35930709e89d64dd65982cef0
2024-02-02 03:23:43 +09:00
OpenStack Proposal Bot 358038f607 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I7720d4e3aaf42d46cd9f8fee57003abb62886332
2024-02-01 05:10:27 +00:00
Zuul 53a73714ff Merge "Add allocation ratios to Placement stats" 2024-01-29 20:48:37 +00:00
Rodrigo Barbieri 95089025fd Extend configurable skippability of neutron calls to project instance detail
The OPENSTACK_INSTANCE_RETRIEVE_IP_ADDRESSES config aids
in envs struggling to load the instance list due to having
too many ports or bad neutron plugin performance. However,
the config does not apply its effect to the instance detail
page, which cannot be loaded due to the neutron calls
taking too long.

This patch extends the config option to the instance
detail page, allowing the same benefit (and side-effects)
of the instance list page.

Related-bug: #2045168
Change-Id: I3e71a208a1c7212e168d63a259f2adddf27dbabf
2024-01-29 15:11:33 +00:00
Zuul 3d1a8bff20 Merge "pytest-based selenium tests add metadata definitions namespace tests" 2024-01-23 21:51:10 +00:00
Ashish Gupta 6462d93ea3 pytest-based selenium tests add images tests
Added test_image_filtration_admin
      test_remove_protected_image_admin
      test_edit_image_description_admin

Change-Id: I375d2adcbc3d4e8af86519897a87c3b965228b65
2024-01-24 01:26:31 +05:30
Jan Jasek c505e30f2e pytest-based selenium tests add router set, clear gateway tests
test_router_set_gateway_demo
test_router_clear_gateway_demo

Change order of tests to reduce the number of logins

Change-Id: I6a1e53795a95938c877bb783fc4d0edb74445128
2024-01-19 18:10:03 +01:00
Zuul a77818d745 Merge "pytest-based selenium tests add volume actions tests" 2024-01-18 15:43:24 +00:00
Zuul 9df32b0d5f Merge "pytest-based selenium tests add project group, roles tests" 2024-01-18 12:07:12 +00:00
Tatiana Ovchinnikova 3acbf227a4 Add allocation ratios to Placement stats
All the Placement API stats "total" show the actual amount of the
resource that the provider can accommodate. Using allocation ratio
it is possible to exceed physical constraints.

This patch uses allocation ratios to display the diagrams properly
and adds the data to the stats table.

Closes-Bug: #1974470
Closes-Bug: #1397917

Change-Id: Iab0ce21ae63f4cc26d3ec5684615189b8ab35231
2024-01-17 21:00:32 +00:00
OpenStack Proposal Bot 28dd7e3310 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I2aee7f3751eb1553793578c8762439571406e42b
2024-01-14 05:38:23 +00:00
Jan Jasek df857b7f69 pytest-based selenium tests add fix recording issue
When tests are very short and passed (they do not wait for any element).
Specifically: test_user_login, test_admin_login.
The action in UI (login and check the homepage) is super quick (0.5s-1s).
So the video is not even created - we do not need to clean it up.

Change-Id: Id8433842247258f472fa3951fcdfa2b0e78ae781
2024-01-11 09:06:20 +01:00
Jan Jasek e6f31f6047 pytest-based selenium tests add metadata definitions namespace tests
test_create_metadata_namespace
test_delete_metadata_namespace

Change-Id: I106f67f21f5298e793eb27330467fd257c91fa69
2024-01-10 00:14:15 +01:00
Jan Jasek bb2fb046ff pytest-based selenium tests add project group, roles tests
test_add_group_to_project
test_add_role_to_project_group

Change-Id: I8cd68a40b7043039b1b8b31f35e4a9fbb004ad93
2024-01-09 16:49:31 +01:00
Jan Jasek 35da6c52e4 pytest-based selenium tests add volume actions tests
test_extend_volume_demo
test_volume_launch_as_instance_demo
test_volume_upload_to_image_demo

Change-Id: Ic577a94514881e56d32087a4fc4d6a06414ff568
2024-01-08 11:53:33 +01:00
Jan Jasek 42915b6a78 pytest-based selenium tests add volume snapshots admin, edit, action tests
test_edit_volume_snapshot_description_demo
test_create_volume_from_volume_snapshot_demo
test_delete_volume_from_volume_snapshot_demo
test_delete_snapshot_before_volume_demo
test_create_volume_snapshot_admin
test_delete_volume_snapshot_admin
test_edit_volume_snapshot_description_admin

Change-Id: I68585c921d1fd298023ccd54cdc87d2f9666e398
2024-01-05 13:45:32 +00:00
Zuul c528bfe84f Merge "pytest-based selenium tests add keypair create, delete tests" 2024-01-05 13:29:37 +00:00
jeremy-boyle 4aa347fe19 Fixing Incorrect URL when browsing Swift containers
This patch fixes a bug identified in the code that generates the URL for
the Swift container object. The bug caused the forward slashes (/) in the
folder parameter to be encoded as %2F instead of being included as '/' in the
resulting URL.

To resolve this issue, the code has been updated by adding a replace() method
to replace the %2F sequences with forward slashes. The updated code ensures
that the URL generated for the folder parameter contains the correct forward
slash (/) representation.

Closes-Bug: #2009724
Signed-off-by: jeremy-boyle <jeremyboylet@gmail.com>

Change-Id: I5837e74ddcc71cda6b4686e586dbb8b1386a9cd3
2024-01-05 10:09:13 +00:00
Zuul 108c8c2043 Merge "Use Placement API along with the hypervisor stats" 2024-01-04 13:45:55 +00:00
Jan Jasek 2f92ecf7b3 pytest-based selenium tests add keypair create, delete tests
test_create_keypair_demo
test_delete_keypair_demo

Change-Id: I731e23f301f8850971b72a69293a964700796b6e
2024-01-04 14:37:52 +01:00
Zuul 8d7a03616c Merge "pytest-based selenium tests add volumetypes/qos actions tests" 2024-01-04 13:35:03 +00:00
Radomir Dopieralski ce950e4eb4 Remove quota checks from admin network dashboards
Remove the checks for quota for network, subnetwork, and port create
actions in the admin dashboards. While the checks are a nice feature
in the project daashboard, where they result in only one call, because
only one tenant needs to be checked, on the admin dashboard those
checks are too expensive — there is one for every tenant that has a
network. This is unacceptable on clouds that have hundreds of tenants,
and in addition it exhausts the default limit for memoization (25),
resulting in many other extra calls.

The effect of this is that the create action will no longer be grayed
out when the given user runs out of quota. This doesn't matter for the
admin user. If they try to perform the action, they will get a quota
error anyways.

This patch should significantly speed up the admin dashboards on large
clouds with a lot of tenants.

Change-Id: I67447bad868f29022c5247c2193ec804dc2a0518
2024-01-04 11:51:25 +00:00
Zuul 749f7fd98e Merge "pytest-based selenium tests add host_aggregates create, delete tests" 2023-12-26 06:49:34 +00:00
Jan Jasek 5b7d59d502 pytest-based selenium tests add volumetypes/qos actions tests
test_volume_type_create_encryption
test_volume_type_delete_encryption
test_edit_qos_spec_consumer
test_qos_spec_create_extra_specs
test_qos_spec_delete_extra_specs

Change-Id: Ied7ac212aba525fe0b971e5b725b9dd1b26d1e32
2023-12-12 21:21:21 +01:00
Zuul 185cb40545 Merge "pytest-based selenium tests add project members, roles tests" 2023-12-06 16:42:42 +00:00
Zuul ff9e9fb09d Merge "pytest-based selenium tests add routers add, delete interface tests" 2023-12-06 16:42:39 +00:00
Jan Jasek 25b50a871c pytest-based selenium tests add host_aggregates create, delete tests
test_create_host_aggregate
test_delete_host_aggregate

Change-Id: Ic3d77b45e3d424c5c8706108e9029bbc1af1c2b1
2023-12-06 16:48:29 +01:00
Radomir Dopieralski ebdb19ab8c Use Placement API along with the hypervisor stats
Hypervisor stats do not reflect accurate VCPUs and PCPUs usage, so
to have a correct picture we need to use Placement API along with
hypervisors.

We add VCPUs and PCPUs usage diagrams and Resource Provider tab
to display correct stats.

Since there is no python client for the Placement API, and the
OpenStack SDK doesn't support the endpoints we need, we call the
endpoints directly.

Related-Bug: #1974470
Related-Bug: #1397917

Change-Id: If41cea0edeec8c95717229eb017e32898417a891
2023-12-06 15:39:34 +00:00
Jan Jasek 30f8462db2 pytest-based selenium tests add routers add, delete interface tests
test_router_add_interface_demo
test_router_delete_interface_demo

Change-Id: I57727f851006174df98d1bf54c62fd5fbff8964e
2023-12-05 17:47:02 +01:00