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
'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
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
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
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
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
This patch modifies exisitng port_security_removed_added to be run
for both stateful and stateless SGs.
Change-Id: Idb49963618c45dbe5976e32d5db466f35ed534c8
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
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
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
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
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
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
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
These decorators were moved to the common module in tempest 17.0.0[1].
[1] cd36841ca25b39b9c8ad1b83e0abd0a191d538a0
Change-Id: Ic7a8ac8e98f4b56b2ae2b76071c6dc64c0f34066
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
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
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
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