1803 Commits

Author SHA1 Message Date
c76727b97c Use RE2 compatible regex for irrelevant-files
Zuul has deprecated the usage of negative regex[1] and
reports WARNINGs when these are used.
This patch switches the branches regex to the supported
one.

[1] https://review.opendev.org/c/zuul/zuul/+/916141

Change-Id: I3cae6a14044010ee16f328036278a0542a03a701
2024-06-03 12:25:30 +05:30
Zuul
c007b81f70 Merge "Remove old excludes" 2024-06-03 06:10:10 +00:00
Slawek Kaplonski
58016a689e Add pre-commit configuration
'pre-commit' tool [1] provides an extensible way to configure hooks
which can be run automatically before each commit. That way we can make
sure that code send to review is passing base static analysis checks
like e.g. bandit, flake8 or hacking.

For now this is optional to use and not integrated in e.g. tox.ini file
but we can integrate it there too as next step.

[1] https://pre-commit.com/

Change-Id: Ie53c1b44a16cb2ef6b5fad709aecf4d0246a6b34
2024-06-03 05:55:15 +00:00
Brian Haley
1a8b36e233 Remove devstack-gate requirement
devstack-gate has been retired, remove it from the
'required-projects' section of job definitions.

Depends-on: https://review.opendev.org/c/openstack/neutron-fwaas/+/920709
Change-Id: I6328ed3b62f6ff462fd49ae6df4b78c797956a4e
2024-05-28 23:39:32 -04:00
Frode Nordahl
1bb8e62a3a Add Active Active L3 GW scenario test cases
Depends-On: I34e2453ab206c13c3ca40c4181970c320bdd8e67
Change-Id: Idba4e48c22f8668ed2565e0c97e53a438b6746e7
Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
2024-05-29 03:10:34 +00:00
Takashi Kajinami
ba353d305b Remove old excludes
These are detected as errors since the clean up was done[1] in
the requirements repository.

[1] 314734e938f107cbd5ebcc7af4d9167c11347406

Also remove the note about old pip's behavior because the resolver
in recent pip no longer requires specific order.

Change-Id: Ic32aa7a18054c128efb9094154f055a2cf55c1f0
2024-05-21 13:15:48 -04:00
Zuul
4f5cb57d68 Merge "Negative test: set quota lower than resource count" 2024-05-20 18:22:40 +00:00
Zuul
9e0c8b2fb0 Merge "Stop running zed jobs in check/gate" 2024-05-20 08:38:58 +00:00
Zuul
fd340571b8 Merge "UM only: change wallaby and xena to use unmaintained/" 2024-05-17 23:54:28 +00:00
Maor Blaustein
22bc0618d0 Stop running zed jobs in check/gate
Zed jobs fail and block CI, since already unmaintained there is no point of keeping them failing,
they will be removed eventually anyways, for the same reasoning to previously stop yoga jobs [1].

[1] 908419: Stop running yoga jobs in check/gate | https://review.opendev.org/908419

Depends-On: https://review.opendev.org/c/openstack/tap-as-a-service/+/919934
Change-Id: I1cc85372aeb7725fcffd6a92cfda412a1f5556bd
2024-05-17 13:25:33 +00:00
Maor Blaustein
52e6cb7d6a Negative test: set quota lower than resource count
Verifies feature [1] original reproducer steps.

[1] https://bugs.launchpad.net/neutron/+bug/1936408

Depends-On: https://review.opendev.org/c/openstack/neutron/+/801470
Depends-On: https://review.opendev.org/c/openstack/neutron-tempest-plugin/+/919443
Related-Bug: #1936408

Change-Id: Ifbdaf545eff6b13da199716ba0c91ebd35ec2a19
2024-05-16 14:44:39 +03:00
537dc184b3 Switch to neutron-tempest-plugin-2.6.0 in yoga jobs
Follow of https://review.opendev.org/908419.

Change-Id: I4de8faee1d39f9acb92d4a7dd4ad44ce9340eb42
2024-05-13 10:26:34 +05:30
Slawek Kaplonski
17e95518ea Remove executable from python files which don't really needs it
Additionally fix length of the line in api/base.py file to fit 79 line
chars limit.

TrivialFix

Change-Id: I37253f28cbbddf58740d7f75cad6ee7cc9be8954
2.8.0 zed-last
2024-05-02 14:12:31 +02:00
elajkat
eb17a84aaa UM only: change wallaby and xena to use unmaintained/
Change-Id: I30002758a9bf42ece6e1565deb903913bf510af1
2024-04-24 17:04:15 +02:00
elajkat
decb2a6f09 Use unmaintained/ for Victoria
Change-Id: I0be60121a571534032f7b34861b9c5eecb36d0b0
2024-04-24 16:56:46 +02:00
Arkady Shtempler
7013c81be1 Neutron&Designate DNS integration - some enhancements
1) Increase "build_timeout" for stability purposes
2) Extend "test_port_with_publishing_subnet", so it will now
   cover IPV4 missing test case, it means:"subnet-dns-publish-fixed-ip"
   is set to True for IPV4 subnet.
3) As of now "reverse zones" created by Neutron for testing
   purposes aren't cleanuped.
   This patch adds "resource_cleanup" that detects "arpa"
   zone created by Neutron within the test and removes it.
4) Minor code changes:
   - Using provided by Designate Plugin "wait_until" to reduce
     some code lines
   - Giving names to created instances for debug purposes

Change-Id: I8aa238cfc73d67906e7d3f769a8a10423b2247cc
2024-04-21 19:34:23 +03:00
Frode Nordahl
395e6fa290
Add Active Active L3 GW API test cases
Depends-On: I34e2453ab206c13c3ca40c4181970c320bdd8e67
Change-Id: I8ee8d40d5fa0dbb1c3bbfd4bac7d38e4b108a58b
2024-03-26 10:15:15 +01:00
Zuul
7e3ba069dc Merge "Add extension "subnet-external-network"" 2024-03-25 16:49:23 +00:00
Zuul
0c9c484e87 Merge "Check device_owner with actual availability zone" 2024-03-25 12:39:10 +00:00
Brian Haley
03eb4f2728 Add job definitions for 2024.1 (Caracal) branch
Create job template for 2024.1 jobs: neutron-tempest-plugin-jobs-2024-1
and fill it with job definitions for all Neutron core and stadium
projects active during the 2024.1 (Caracal) cycle.

Change-Id: Ib5a368ce40ade222b12376855143fd483f669892
2024-03-18 13:37:08 -04:00
Zuul
bcabf136e5 Merge "[OVN] Use the OVN agent in "neutron-tempest-plugin-ovn"" 2.7.0 2024-03-18 17:25:01 +00:00
Slawek Kaplonski
ad4ddcbaa1 [Stateless SG] Add test for port security and stateless SGs
This patch modifies exisitng port_security_removed_added to be run
for both stateful and stateless SGs.

Change-Id: Idb49963618c45dbe5976e32d5db466f35ed534c8
2024-03-14 11:15:59 +01:00
Rodolfo Alonso Hernandez
0da38af84c Add extension "subnet-external-network"
Added extension "subnet-external-network" to:
* neutron-tempest-plugin-base
* neutron-tempest-plugin-openvswitch
* neutron-tempest-plugin-openvswitch-iptables_hybrid

The ``SubnetsSearchCriteriaTest.test_list_validation_filters`` test
case now filters the subnets by 'shared' and 'router:external' fields,
same as the network test case. It should behave the same with this
new extension.

Related-Bug: #2051831
Change-Id: I13144e3d722c06c918cd47860f378bf4bdaa0bf7
2024-03-08 01:26:41 +00:00
Slawek Kaplonski
ec162e0f56 Remove usage of testscenarios and replace it with ddt library
As our internal QE reported to us, ddt is producing more consistent
names of the same tests with different variables then testscenarios.
With testscenarios it is something like:

foo_tempest_plugin.tests.something.SomeClass.test_foo[id-123456](c1,c2)

and with ddt is more similar to tests without scenarios:

foo_tempest_plugin.tests.something.SomeClass.test_foo_1[id-123456]

Apparently due to this inconsistency results of some tests couldn't be
properly reported properly to some tools which we are using downstream.

So this patch proposes to remove usage of testscenarios in
neutron_tempest_plugin and replace it with ddt where it is needed.
Actually ddt was already used in some of the tests here so this will
make it also more consistent across the tests in that repo.

Also as part of this effort I relalised that in some cases testscenarios
where used, tests were running e.g. 2 times but actually variable set to
different value in different scenarios were not used at all. So in such
case I simply dropped usage of testscenarios and left only one variant
of the test to be run.

Change-Id: Ieabab4ccaa0e2a365939425dff0c0776839251eb
2024-03-06 14:27:39 +01:00
Zuul
468deaf6fb Merge "[OVN] Do not check L3 agents state with ML2/OVN" 2024-03-06 09:43:06 +00:00
Zuul
20549ceb92 Merge "Makes "segmentation_id" configurable" 2024-03-05 12:12:47 +00:00
Rodolfo Alonso Hernandez
9286588fc0 [OVN] Do not check L3 agents state with ML2/OVN
With [1], the ML2/OVN L3 plugin will have the "ha" API extension
enabled. The OVN L3 plugin does not have L3 agents; this check
should be skipped.

[1]https://review.opendev.org/c/openstack/neutron/+/910889

Related-Bug: #2020823
Change-Id: I09c12ba36b007d4f6fdd3723974ecfe9e4466b72
2024-03-04 20:33:33 +00:00
Rodolfo Alonso Hernandez
4528027329 [OVN] Use the OVN agent in "neutron-tempest-plugin-ovn"
Now, only in master (Caracal 2024.1), the "neutron-tempest-plugin-ovn"
job used the OVN agent with the metadata extension, instead of the
OVN metadata agent. This functionality is implemented in the referred
link.

The OVN agent won't be used in stable releases.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/898238

Related-Bug: #2017871
Change-Id: I92b85ec1ac609ada18fc1185e56f07c36d353518
2024-02-22 14:08:04 +00:00
Roman Safronov
4d6ae07f5e Check device_owner with actual availability zone
test_floatingip_port_details was checking device_owner port field
against a hard-coded default value of 'compute:nova'. This was
causing a MismatchError in case custom availability zones were
configured on openstack environment.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2247268

Change-Id: Ibdb8bf6f90818c74f1198cd89d24778c74739f50
2024-02-21 17:57:45 +00:00
Zuul
9c55bfc364 Merge "Add router check, subnet attached gateway IP update or deletion" 2024-02-20 14:35:53 +00:00
Maor Blaustein
fc274a0d18 Skip HA router tests when not meant for OVN driver
Change is needed to check "l3-ha" extension with OVN router flavors.
This change allows to check if OVN backend or not, and add test skips
accordingly.

The tests used to run only against OVS driver, a subset of them was
found useful also with OVN, for instance this bug noticed by altered
tests:
https://bugzilla.redhat.com/show_bug.cgi?id=2263225

Change-Id: I7c2c2f23417b3b43a2788b3c4bca2f8b532b7974
2024-02-19 13:21:08 +02:00
Zuul
b9681a0284 Merge "Remove train and ussuri jobs" 2024-02-13 07:26:57 +00:00
Rodolfo Alonso Hernandez
780d81ec00 Add router check, subnet attached gateway IP update or deletion
Added a new test to ``RoutersTest``. If a subnet has a router
interface, the subnet gateway IP cannot be modified or deleted.
Both operations will raise a ``GatewayIpInUse`` exception.

Depends-On: https://review.opendev.org/c/openstack/neutron/+/904713

Related-Bug: #2036423
Change-Id: I46a39c53017589e23e03ceabc45c2f144ca2f3bb
2024-02-09 12:41:01 +00:00
Takashi Kajinami
84d56d00dc Remove train and ussuri jobs
Train and Ussuri are already EOL.

Change-Id: I9b485c98f2b88a92442df0f236aa1503c9c6954f
2024-02-09 15:20:55 +09:00
Takashi Kajinami
815b0d26b4 Replace usage of deprecated path for test decorators
These decorators were moved to the common module in tempest 17.0.0[1].

[1] cd36841ca25b39b9c8ad1b83e0abd0a191d538a0

Change-Id: Ic7a8ac8e98f4b56b2ae2b76071c6dc64c0f34066
2024-02-09 06:19:24 +00:00
ff96cdecac Stop running yoga jobs in check/gate
Yoga moved to unmaintained with [1], so we no longer need
to run these in check/gate for neutron-tempest-plugin.

neutron-tempest-plugin is pinned to last released tag
i.e 2.5.0, can move to 2.6.0 once released[2].

[1] https://review.opendev.org/c/openstack/releases/+/906564
[2] https://review.opendev.org/c/openstack/releases/+/908369

Change-Id: I46e7818b55e1e2d5cc2457565a8ce1957a4fc591
2024-02-08 19:56:20 +02:00
Zuul
887d41532d Merge "[ovn] Enable IPv6 metadata tests for OVN" 2.6.0 yoga-last 2024-01-26 10:44:22 +00:00
Zuul
a0171864fc Merge "Fix network sorting in API tests" 2024-01-23 14:07:38 +00:00
Takashi Kajinami
ffcc017422 devstack: Update enabled services
The glance-registry service was removed some time ago.

Also, quantum was renamed to neutron and 'quantum' in enabled services
has no effect now.

Change-Id: I9f177493bb4b870c3e88741d3ffd12cd51265702
2024-01-23 12:57:10 +09:00
Martin Kopec
71a7324508 Fix network sorting in API tests
There is a mismatch in some tests because sorted() sorts in ASCII
order - digits are followed by uppercase characters and then
lowercase characters. That doesn't work if a network's name starts
with a capital letter.

Closes-Bug: #2049211
Change-Id: I8328d7d8ca7b49b99feb24d77525abdc064aae80
2024-01-17 12:09:50 +01:00
Zuul
7d950d78a2 Merge "Add VNaaS OVN job to the project" 2024-01-09 18:40:20 +00:00
ccamposr
873b7152f0 Remove duplicate setup in NetworksIpAvailabilityIPv6Test class
Change-Id: I2a51ba6999d853e526686292ccc110a4afe14f18
2023-12-19 10:40:10 +01:00
Zuul
14f44a0c29 Merge "Add API test for normalized CIDR attribute in the SG rule" 2023-12-12 20:26:33 +00:00
Slawek Kaplonski
63396f05fd Add API test for normalized CIDR attribute in the SG rule
This patch adds test which replaces fullstack test:
neutron.tests.fullstack.test_securitygroup.SecurityGroupRulesTest.test_normalized_cidr_in_rule

It is simple API test which can be done quickly in
neutron-tempest-plugin job. In fullstack instead it requires to prepare
whole environment with neutron-server, fake compute
node, agents, etc. so it takes much more time.

Change-Id: I4124f7f0a2edfe28c95693280b6490c8884fce11
2023-12-12 17:05:27 +01:00
Zuul
61cba1e24b Merge "Add test_port_shut_down API test" 2023-12-12 01:05:37 +00:00
Zuul
eb109725f0 Merge "Test job for VPNaaS on OVN" 2023-12-07 10:16:02 +00:00
Slawek Kaplonski
eec234d703 Add test_port_shut_down API test
This patch adds test which replaces fullstack test:
neutron.tests.fullstack.test_port_shut_down.PortShutDownTest

It is simple API test which can be done quickly in
neutron-tempest-plugin job. In fullstack instead it requires to prepare
whole environment with neutron-server, fake compute node, agents, etc.
so it takes much more time.

Change-Id: Ica5e72ab6d4c20fdcbd1f0dd38e6adcf627bcefd
2023-12-05 13:04:02 +01:00
Zuul
c3f626118a Merge "Update the contributor information" 2023-12-01 12:39:34 +00:00
Daniel Alvarez Sanchez
366a51598e [ovn] Enable IPv6 metadata tests for OVN
Depends-On: https://review.opendev.org/c/openstack/neutron/+/894026
Change-Id: Ideedd49c16bd88088ef8edbf9fdc3f77e54ae2c9
Signed-off-by: Daniel Alvarez Sanchez <dalvarez@redhat.com>
2023-11-30 14:18:05 -05:00
Zuul
87f43c3c32 Merge "Remove test duplication between tempest and ntp NetworksTestDHCPv6" 2023-11-22 16:15:06 +00:00