10628 Commits

Author SHA1 Message Date
Zuul
0d6da3e19c Merge "Fix the attribute to look up security group ids of a port (3)" 2025-01-10 19:42:42 +00:00
Takashi Kajinami
53bba73b5c Fix the attribute to look up security group ids of a port (3)
... to fix the "Edit Port" functionality.

Closes-Bug: #2092276
Change-Id: I815a558e87fef2474eed42cfb175b753ad61713a
2025-01-09 14:09:32 +00:00
Zuul
32312e6928 Merge "Move deprecated since/reason to deprecated_rule object" 2025-01-09 10:41:38 +00:00
e3bf69f015 Move deprecated since/reason to deprecated_rule object
[1] moved these attributes to deprecated_rule in wallaby
release. Updated the tool and pulled default conf of services.

[1] https://review.opendev.org/c/openstack/oslo.policy/+/766628

Related-Bug: #2092657
Change-Id: Ib0f4ede94f51e0d6ba48c2a77c0303e702f2ca2f
2025-01-09 13:32:58 +05:30
Zuul
dd322305ed Merge "Replace deprecated django.utils.timezone.utc" 2025-01-08 13:43:21 +00:00
Zuul
7baca03931 Merge "Fix the attribute to look up security group ids of a port (2)" 2025-01-08 11:59:49 +00:00
Takashi Kajinami
2dc9b5475c Replace deprecated django.utils.timezone.utc
It was deprecated in django 4.1[1] and was removed in django 5.0[2].

[1] 59ab3fd0e9
[2] d6816bff73

Closes-Bug: #2092445
Change-Id: Ie7aafab66560bbb4e265b69c79c83d187e455a53
2025-01-08 13:34:52 +09:00
Zuul
21eceecbfb Merge "SDK for Neutron Routers" 2025-01-07 22:49:30 +00:00
Zuul
8ee5136cb5 Merge "Replace placement request path" 2025-01-06 12:26:01 +00:00
Zuul
f4dd0f7f50 Merge "Force scope when listing domains" 2025-01-02 18:25:16 +00:00
Takashi Kajinami
c2cce40257 Fix the attribute to look up security group ids of a port (2)
Fix the usage which was overlooked in the previous attempt to fix
the error[1].

[1] 3ab66494ba56afb912de9586ad36533140837ec6

Related-Bug: #2089557
Change-Id: Ia3747d7033adfa065b1737ff73d0d0e37fc60ea5
2024-12-25 12:01:35 +09:00
Takashi Kajinami
ca0dbdab8c Fix a typo
Correct a wrong package name in the comment line.

Trivial-Fix

Closes-Bug: #2092444
Change-Id: I9ba28cf529f249c2a06cfa253a0f736518fd374c
2024-12-24 23:19:56 +09:00
Jan Jasek
e1fde47a0c Allow configuring separated UI tests for different themes
Allow configuring of locators/parts of the tests
that are theme specific, using a config file.

Change-Id: I3ea3d0cf42dc8e89a23a763defe84389da56366b
2024-12-18 17:03:04 +01:00
Jan Jasek
a87ad750ea Allow configuring tests for different themes
Allow configuring of locators/parts of the tests
that are theme specific, using a config file.

Change-Id: I7650ed4cff95674845c8613d424b76d296bf1a56
2024-12-18 12:49:43 +01:00
Jan Jasek
4d990a0d25 pytest-based selenium tests rm login tests
Login tests were the first implemented pytest tests
during experimenting with fixtures.

Now login (as a fixture) is a part of every test so
it does not makes sense to have separeted tests for
them.

Change-Id: I78d40234b186cc065ef41e6fa65481a3f5a70981
2024-12-18 12:49:17 +01:00
Zuul
36226dd4f0 Merge "Fix the attribute to look up security group ids of a port" 2024-12-17 10:50:42 +00:00
Zuul
b50784edfb Merge "Replace django-pyscss with libsass" 2024-12-13 17:26:03 +00:00
Takashi Kajinami
3ab66494ba Fix the attribute to look up security group ids of a port
A port instance from openstacksdk exposes ids of the associated
security groups in the 'security_group_ids' attribute[1]. Replace
the old attribute name from neutronclient to fix the regression caused
by migration to openstacksdk[1].

[1] https://docs.openstack.org/openstacksdk/latest/user/resources/network/v2/port.html#openstack.network.v2.port.Port.security_group_ids
[2] c7a640733042ac49a24ce2a457741fd4fe511571

Closes-Bug: #2089557
Change-Id: I58a6d816d0591989abf57261ab98f3368f107a1c
2024-12-13 12:41:26 +09:00
chung00-lee
5093c4101e Replace placement request path
Remove '//' in the placement request path.

Closes-Bug: #2089223
Change-Id: I2646ac3f82c7e1ab01faf1626bd8aa8046d66d0d
2024-12-12 12:49:51 +09:00
Zuul
de4fb865c0 Merge "Fix typo in metadef for Cinder Volume Type" 2024-12-11 14:17:15 +00:00
Zuul
f8afac5384 Merge "pytest-based UI tests rm login test" 2024-12-10 20:17:35 +00:00
Zuul
f90fc25c68 Merge "Configuring tests for different themes - ui unification" 2024-12-10 17:17:08 +00:00
Radomir Dopieralski
283219ab5e Replace django-pyscss with libsass
This is the same as the django-libsass patch, but using our own django
filter. This no longer depends on django-libsass, and handles paths
the same way as the old code did, respecting static file prefixes.

It requires fewer changes, and no longer assumes collectstatic has been
run.

Depends-On: https://review.opendev.org/c/openstack/requirements/+/934220

Change-Id: I82f802ef33f1e2071c5e42f806a6a8d9ff7e26e4
2024-12-10 08:32:50 +00:00
Zuul
48668eb08c Merge "Drop USE_L10N" 2024-12-09 10:57:36 +00:00
Jan Jasek
6394e6e279 pytest-based UI tests rm login test
Login test was the first implemented UI test during
experimenting with django liveserver

Now login (as a fixture) is a part of every integration
test so it does not makes sense to have separated UI
tests for it.

Change-Id: If73a69a1e58d9558141680def8766dff58026a3e
2024-12-06 01:32:14 +01:00
Dmitriy Rabotyagov
2ec0177edc Use Python 3.12 for python3-django job
With migration from ubuntu jammy to noble, python3.11 is not available
anymore. This makes the job to fail on pre-install step.

So let's use Python 3.12 which is available out of the box on Noble
after switch.

This also bumps pylint version, as older one does not work
anymore with Python 3.12. New pylint brings quite some new
rules with it. Some were disabled, some were fixed within this
patch.

Change-Id: I4ba288966c582910e8a822d4531e29c9c005e48f
2024-12-01 21:48:52 +01:00
Jan Jasek
69ab8938c3 Configuring tests for different themes - ui unification
Change xpath and selector to be more universal
(unified for different themes).

Change-Id: I9bdd8175997cbeed995f45bb31034583c30a79dc
2024-11-27 00:36:09 +01:00
Takashi Kajinami
e9893b3f22 Drop USE_L10N
This option was deprecated in django 4.0 and was removed in 5.0 .

https://docs.djangoproject.com/en/5.1/releases/4.0/#localization
```
In order to follow good practice, the default value of the USE_L10N
setting is changed from False to True.

Moreover USE_L10N is deprecated as of this release. Starting with
Django 5.0, by default, any date or number displayed by Django will be
localized.
```

Change-Id: I81e1c790fe8df7851f1f91c0851d64af17c7dbdb
2024-11-27 03:11:06 +09:00
elajkat
1d00997f50 SDK for Neutron Routers
Related-Bug: #1999774
Change-Id: Ibf62d0a0305e27d0dbff375051fb31daf04fe549
2024-11-26 13:00:51 +01:00
Zuul
1b15f51bab Merge "pytest-based tests add fix tooltip obscures" 2024-11-20 12:25:14 +00:00
Jan Jasek
4105f61fc4 pytest-based tests add fix tooltip obscures
In some unspecified cases tooltip in instances tab obscures
button for instance filtration

Change-Id: I22beb974914b66c702051026bd93db6012321401
2024-11-18 23:02:29 +01:00
Jan Jasek
db0d6a04ee pytest-based tests move help_url test
Move help_url test from UI tests to integration tests
as the help_url is a setting and integration tests
check for correct settings and UI tests check if
the mechanism for those settings works.

Change-Id: I41d38e1d51151f1e7b78c6591801552b9bf86f8e
2024-11-18 12:00:44 +01:00
Zuul
0763ff9f5b Merge "pytest-based UI tests add fix not interactable element" 2024-11-05 18:08:26 +00:00
Zuul
72330dd58d Merge "Replace deprecated functions in datetime" 2024-11-05 17:00:00 +00:00
Zuul
2e0e9c2d56 Merge "Deactivate/reactivate images" 2024-11-05 15:47:33 +00:00
Jan Jasek
1e8a032891 Fix integration tests image cirros version, ignore doc line length
Zuul deploy contains newer version of cirros (0.6.3) than our
tests expects (0.6.2).

Error Line too long for doc files. Added D001 to ignore.

Change-Id: I972f4b7db19fb3852c3b9fe055ec514e78655d52
2024-11-04 19:40:57 +01:00
Takashi Natsume
906be85853 Replace deprecated functions in datetime
The datetime.utcfromtimestamp() and datetime.utcnow()
are deprecated in Python 3.12.
Replace datetime.utcfromtimestamp() with datetime.fromtimestamp().
Replace datetime.utcnow() with oslo_utils.timeutils.utcnow().
This bumps oslo.utils to 7.0.0.

Change-Id: Ifa8a892aeaece7575a29c979bf48a1c27ec1643f
Signed-off-by: Takashi Natsume <takanattie@gmail.com>
2024-11-02 14:29:20 +00:00
Zuul
d3c4ffe496 Merge "pytest-based UI tests add fix create instance" 2024-10-21 14:38:01 +00:00
Jan Jasek
1d00c2bffa pytest-based UI tests add fix not interactable element
Some of the UI tests fails because of elements
in dropdown menu in left panel are not interactable

Change-Id: I6a9a9e608b3862bce888e40d689ccf3fe7b50e3f
2024-10-21 09:33:09 +02:00
Zuul
02fa4d9f1f Merge "pytest-based tests add fix more specific css selector" 2024-10-18 15:56:57 +00:00
viktorkrivak
b34bd0264b Fix typo in metadef for Cinder Volume Type
Closes-Bug: #2084796
Change-Id: Id1befb280389c109392840614ce04719a3a0c273
2024-10-18 09:27:44 +00:00
Takashi Kajinami
179c2e3771 cinder: Use 'block-storage' service type to detect cinder
The official service type name for cinder is not volume (or volumevN)
but block-storage. Use the block-storage type to detect availability
of cinder, in addition to legacy volume/volumev3 service type.

'block-store' is also a valid alias and should be added as well.

Closes-Bug: #2084794
Change-Id: Ifbeaba033c6dae0fa704a2be568b2f4e2cb7426a
2024-10-17 14:55:22 -05:00
Jan Jasek
058fb1ba0e pytest-based tests add fix more specific css selector
Insufficiently specified selector causes issue in case
when the tooltip of flavor for instance is displayed

Change-Id: Ibd1f696f279bab240e6e3cc216a51783a5f3ddda
2024-10-17 16:18:32 +02:00
Jan Jasek
66f61889b6 pytest-based UI tests add fix create instance
If delpoy has more than 1 external network, then creating
instance can fail because auto_ip create a floating ip under
an unreachable external network (different than public).

Change-Id: I1c894f4bde6f3a1d758be550fab946fedaa672e6
2024-10-16 18:04:05 +02:00
AgnesNM
3789b36fd4 Deactivate/reactivate images
The deactivate/reactivate image feature is implemented
as two actions that you can take on an image. The idea
is to toggle between the two actions. Deactivated
images are not downloadable. Protected images cannot
be deactivated. Deactivated images can be reactivated.

Change-Id: If1c36cfea5b66216385f2f2e169084c1b7462b32
2024-10-10 10:33:31 +03:00
Jan Jasek
df2906b7f9 pytest-based UI tests add fix form of comment
Comment changed to # form as docstring should only appear at the
beginning of a function or class

Change-Id: I79c88d0236229f163d99fbc046dcf09ed9d85845
2024-09-30 09:56:45 +02:00
Zuul
e967760c3b Merge "pytest-based UI tests add basic browse settings tests" 2024-09-10 20:18:27 +00:00
Jan Jasek
e8f734703f pytest-based UI tests add basic browse settings tests
test_browse_user_setting_tab
test_browse_change_password_tab

Tests for basic browse of settings and change password tabs as those
tabs are not included in test_browse_left_panel because they are
not defaultly shown in the left browse panel.

Change-Id: I0bc59c4ae8c611868884b9654cb40e3e434b1f41
2024-09-09 16:15:40 +02:00
Jan Jasek
e6d7aedeb8 pytest-based UI tests add delete multiple image rows test
Change-Id: I0341da255e9330f364333696045b7c1b085b5aaf
2024-09-04 16:27:43 +02:00
Zuul
b1fc4cb27c Merge "[TRIVIAL] Add comment about policy override for images>launch button" 2024-08-30 19:35:50 +00:00