Commit Graph

13 Commits

Author SHA1 Message Date
Gregory Thiemonge 3bc1f4decd Fix scenario tests issue with immutable LBs
Wait for the loadbalancer to become ACTIVE after deleting an
healthmonitor or a listener, to ensure the next test uses a LB in a
non-transitional state.

This also fixes the cidrs tests that were using the wrong waiter
timeouts.

This patch also moves individual deletion of children resources in class
tear down to a more performant way by cascade deleting the load
balancer.

Story: 2008219
Task: 41008

Depends-On: https://review.opendev.org/#/c/757604/
Depends-On: https://review.opendev.org/#/c/757840/
Depends-On: https://review.opendev.org/#/c/757841/
Depends-On: https://review.opendev.org/#/c/757842/

Co-Authored-By: Carlos Goncalves <cgoncalves@redhat.com>
Change-Id: I6a4eed7269e4f502bd0fc8613cb4ec4da13890e7
2020-10-19 10:30:00 +02:00
Michael Johnson 46658f2ff8 Add duplicate uuid checking for tempest tests
This patch adds a pep8 test for duplicate uuids in the tempest tests.
It also corrects some existing duplicates.

Change-Id: I2fc03b3cc604528903b8f70ce7f1e4e641aeafd2
2020-09-13 10:39:31 -07:00
Michael Johnson 89bdbcd125 Adjust scenario tests for NotImplemented skip
This is a patch to restructrue the scenario tests to use the
new skip_if_not_implemented capability.

Change-Id: I49a7fb6650030f2a1115c6d42442062bd33415fd
2020-09-03 17:10:56 -07:00
Gregory Thiemonge 29d179016a Add UDP test scenario
Update test_healthmonitor_traffic & test_basic_traffic tests
to support UDP traffic in test_traffic_ops
Add simple UDP test in test_ipv6_traffic_ops

Add a UDP test server, merged with the existing HTTP test server.

Change-Id: I1e497b75672753ed0e7acf482bc0e4a6138d3437
2020-01-24 08:30:01 +01:00
Gregory Thiemonge 2c59777910 Add tests for mixed IP networks UDP members
Added api tests (specific to the amphora driver) that ensure that:
- User cannot add member with a different IP protocol version than the
  VIP IP protocol version in UDP load balancers.
- User can add member with a different IP protocol in non-UDP load
  balancers.

Story: 2005876
Task: 34779

Change-Id: Ia79d85b4566c2d2ef102a3381e6e3cc8d5328ebc
2020-01-24 08:30:01 +01:00
Maciej Józefczyk b6df5f8143 Run tests with algorithm supported by provider driver
This patch adds map of supported algorithms by
provider drivers. For a first iteration lets select
the first from supported algorithms to be used as
a default and run the tests with it.

In addition this patch splits check_members_balanced()
into subfunctions related to the algorithm
that is validated.

Story: 2006264
Task: 35972

Change-Id: Id055763f35b487da539eddfe802c543a11246503
2019-12-10 10:12:30 +00:00
Reedip 3e795008d5 Check Monitor in Member Scenario Tests
Currently the Member scenario tests are not checking
if Monitor is enabled in the Tempest conf or not. This patch adds
the fix.

Change-Id: Id74ea9b232ac44e7f13c44035856bbb84eabeb63
2019-02-18 09:44:47 +00:00
Reedip 6626f25a81 Add configuration to enable/disable L7,L4 protocols
Currently not all Provider drivers support L7 in Octavia.
Until the flavors option is not enabled, it is proposed to skip
L7 in favor of L4( specifically TCP ) protocol tests for the provider
drivers.

Change-Id: I07b4f7038d71d684c23885c89257af2711a442a0
2019-01-23 06:35:47 +00:00
Michael Johnson 04dc5cb4a0 Retry subnet/network deletes on 409 Conflict
Neutron can be slow to cleanup ports from subnets/networks.
This patch adds retries when deleting subnets and networks in the
tempest teardown/clean up phase after tests.

Also, there were cases where addClassResourceCleanup was being used
inside test cases instead of addCleanup. This patch corrects those to
use addCleanup.

Story: 2004826
Task: 29000

Change-Id: Ia29541d1c89f3559a3ce22b1a27c6bcf079ce2cc
2019-01-21 12:46:20 -08:00
Michael Johnson dfd818a421 Fix tests to honor Octavia API versioning
This patch adds support for Octavia API endpoint versioning.
Previously Rocky API additions were being tested, regardless of the Octavia
API version.
It also fixes a potential race condition when testing the "ONLINE"
operating status.
The patch also makes sure that duplicate fixed IP addresses are not allocated
on subnets.

Story: 2003466
Task: 24726

Change-Id: If0ec777f34326c09c7215d9c7c2ed249571d779e
2018-09-06 13:57:38 +00:00
Adam Harwell 446f8be193 Create api+scenario tests for l7policies
This patch implements l7policy tests for the Octavia
Tempest Plugin.

Depends-On: https://review.openstack.org/#/c/571997/
Change-Id: I58061cd69704da80e48c0963b6639ff8d6051c01
Story: 2001387
Task: 5976
2018-06-04 05:08:20 +00:00
Adam Harwell 60ed9d9cde Create api+scenario tests for healthmonitors
This patch implements healthmonitor tests for the Octavia
Tempest Plugin.

Depends-On: https://review.openstack.org/#/c/571107/
Change-Id: Ib7cd9eef7c9aeb705c56df3f88612d1bf2039163
Story: 2001387
Task: 5975
2018-06-01 09:02:14 +00:00
Adam Harwell de3e0544f1 Create api+scenario tests for members
This patch implements member tests for the Octavia
Tempest Plugin.

Depends-On: https://review.openstack.org/#/c/567955/
Change-Id: I8813f90538b9ec9047a1777b6cab76485a150498
Story: 2001387
Task: 5970
2018-05-18 16:08:34 -07:00