Commit Graph

1687 Commits

Author SHA1 Message Date
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"" 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
yatinkarel 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" 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
Zuul 3d6f2976bf Merge "Remove test duplication between tempest and n-t-p RoutersDVRTest" 2023-11-22 13:46:40 +00:00
Zuul f6a47e8f7a Merge "Remove test duplications between tempest and n-t-p plugin" 2023-11-22 12:19:32 +00:00
Zuul c4802160f8 Merge "[Default SG rules] Test to check if SG rules are created from template" 2023-11-17 12:57:20 +00:00
Zuul ba65bbd6ea Merge "New basic API tests for the default SG rules templates CRUDs" 2023-11-17 11:05:48 +00:00
Slawek Kaplonski a1f654aa71 [Default SG rules] Test to check if SG rules are created from template
This patch adds new test which checks if SG rules actually created
automatically for new default and non-default SG are matching template
rules from neutron DB.

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

Related-bug: #1983053
Change-Id: Ica0810413bef7f0e3e6dff21f6c9e4cda1945a43
2023-11-17 08:37:02 +00:00
Zuul a9b54e26a8 Merge "Fix importing security group tests" 2023-11-16 17:23:31 +00:00
Brian Haley 969d66e149 Update the contributor information
Some of the links and information were outdated here, update
and point to Neutron tree for installation and usage.

TrivialFix

Change-Id: Ia913a976dc2f60eb28548b2f099d924e160df2cf
2023-11-15 09:58:15 -05:00
Roman Safronov 052808c2e6 Fix importing security group tests
Importing StatelessSecGroupDualStackDHCPv6StatelessTest was causing
a type error in case CONF.neutron_plugin_options.firewall_driver
was set to 'openvswitch' [1]. This patch fixes the issue by
separation code to a class with base functions, that is never skipped
and classes with tests that optionally can be skipped.

[1] https://bugzilla.redhat.com/show_bug.cgi?id=2249407

Change-Id: I90b9cf495f35aca7a9171dc685696ae4cdd4d0f2
2023-11-15 15:53:04 +02:00
Zuul 3abea1de41 Merge "Add test documentation for docs tox target" 2023-11-15 05:05:38 +00:00
Dmitriy Rabotyagov 17c48d62eb Add VNaaS OVN job to the project
Depends-On: https://review.opendev.org/c/openstack/neutron-vpnaas/+/765353
Change-Id: Ic487ac600270ca772e344ed95cd14bd40257e268
2023-11-09 13:55:00 +00:00
Elod Illes f2e985e8fd Add test documentation for docs tox target
Enable sphinx to generate documentation from docstrings by running
'tox -e docs'.

Change-Id: I5996e5f07493f69f14172b4bb0535852e89d5456
2023-11-08 15:52:37 +01:00
jskunda bc84489e49 Remove test duplication between tempest and ntp NetworksTestDHCPv6
NetworksTestDHCPv6 [1] has better
functionality in tempest than in neutron-tempest-plugin, so with
removing these tests from neutron-tempest-plugin we can get rid
of whole module, reducing the test duplications.

[1]cc0e9b1817/tempest/api/network/test_dhcp_ipv6.py (L31)

Change-Id: I080b83965acd69c3d1b4693527c1be0b730e80a6
2023-11-08 11:23:34 +00:00
Slawek Kaplonski 7944b08b1f Use default RBAC policies in other projects together with Neutron policies
In the job "neutron-tempest-plugin-openvswitch-enforce-scope-old-defaults"
we will now test old policies in the Neutron project together with what
is used by default in other projects, like Nova, Glance, etc.

Change-Id: I4c2440f6f1546d22d4acebe69c6143eefe10335a
2023-11-06 08:17:20 +00:00
Arkady Shtempler 88d1d5752a Makes "segmentation_id" configurable
We should add the segmentation_id as tempest option,
so that it can be changed to match the deployment if needed.

Change-Id: I42bea9217462226e8650e55997449e1cc05f085c
2023-11-01 13:06:05 +02:00
Zuul 777c95faa7 Merge "Revert "Revert "[S-RBAC] Switch to new policies by default""" 2023-10-26 18:14:10 +00:00
Bodo Petermann af70af3e07 Test job for VPNaaS on OVN
Add a new test job to test VPNaaS on OVN, that will be picked up
by the proposed patch [1] in neutron-vpnaas.
Since VPNaaS for OVN doesn't support IPv6 VMs, skip 6in4 and 6in6 tests.

[1] https://review.opendev.org/c/openstack/neutron-vpnaas/+/765353

Related-Bug: #1905391
Change-Id: I9e9e8e78fd22b5edbc794ec68dbe40302ed0f3fd
2023-10-26 12:09:59 +02:00