octavia_tempest_plugin.tests.api.v2 package

octavia_tempest_plugin.tests.api.v2 package

Submodules

octavia_tempest_plugin.tests.api.v2.test_flavor module

class FlavorAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the flavor object API.

classmethod resource_setup()[source]

Setup resources needed by the tests.

test_flavor_create()[source]

Test idempotent id: 7e8f39ce-53e0-4364-8778-6da9b9a59e5a Tests flavor create and basic show APIs.

  • Tests that users without the loadbalancer admin role cannot create a flavor.
  • Create a fully populated flavor.
  • Validate the response reflects the requested values.
test_flavor_delete()[source]

Test idempotent id: dfe9173a-26f3-4bba-9e69-d2b817ff2b86 Tests flavor create and delete APIs.

  • Creates a flavor.
  • Validates that other accounts cannot delete the flavor.
  • Deletes the flavor.
  • Validates the flavor no longer exists.
test_flavor_list()[source]

Test idempotent id: 3ef040ee-fe7e-457b-a56f-8b152f7afa3b Tests flavor list API and field filtering.

  • Create three flavors.
  • Validates that non-admin accounts cannot list the flavors.
  • List the flavors using the default sort order.
  • List the flavors using descending sort order.
  • List the flavors using ascending sort order.
  • List the flavors returning one field at a time.
  • List the flavors returning two fields.
  • List the flavors filtering to one of the three.
  • List the flavors filtered, one field, and sorted.
test_flavor_show()[source]

Test idempotent id: 7492a862-4011-4924-8e81-70763f479cf8 Tests flavor show API.

  • Create a fully populated flavor.
  • Validates that non-lb-admin accounts cannot see the flavor.
  • Show flavor details.
  • Validate the show reflects the requested values.
test_flavor_update()[source]

Test idempotent id: 3d9e2820-a68e-4db9-bf94-53cbcff2dc15 Tests flavor update API.

  • Create a fully populated flavor.
  • Show flavor details.
  • Validate the show reflects the initial values.
  • Validates that non-admin accounts cannot update the flavor.
  • Update the flavor details.
  • Show flavor details.
  • Validate the show reflects the updated values.

octavia_tempest_plugin.tests.api.v2.test_flavor_profile module

class FlavorProfileAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the flavor profile object API.

test_flavor_profile_create()[source]

Test idempotent id: d0e3a08e-d58a-4460-83ed-34307ca04cde Tests flavor profile create and basic show APIs.

  • Tests that users without the loadbalancer admin role cannot create flavor profiles.
  • Create a fully populated flavor profile.
  • Validate the response reflects the requested values.
test_flavor_profile_delete()[source]

Test idempotent id: 4c2eaacf-c2c8-422a-b7dc-a30ceba6bcd4 Tests flavor profile create and delete APIs.

  • Creates a flavor profile.
  • Validates that other accounts cannot delete the flavor profile.
  • Deletes the flavor profile.
  • Validates the flavor profile is in the DELETED state.
test_flavor_profile_list()[source]

Test idempotent id: c4e17fdf-849a-4132-93ae-dfca21ce4444 Tests flavor profile list API and field filtering.

  • Create three flavor profiles.
  • Validates that non-admin accounts cannot list the flavor profiles.
  • List the flavor profiles using the default sort order.
  • List the flavor profiles using descending sort order.
  • List the flavor profiles using ascending sort order.
  • List the flavor profiles returning one field at a time.
  • List the flavor profiles returning two fields.
  • List the flavor profiles filtering to one of the three.
  • List the flavor profiles filtered, one field, and sorted.
test_flavor_profile_show()[source]

Test idempotent id: a2c2ff9a-fce1-42fd-8cfd-56dea31610f6 Tests flavor profile show API.

  • Create a fully populated flavor profile.
  • Show flavor profile details.
  • Validate the show reflects the requested values.
  • Validates that non-lb-admin accounts cannot see the flavor profile.
test_flavor_profile_update()[source]

Test idempotent id: 32a2e285-8dfc-485f-a450-a4d450d3c3ec Tests flavor profile update API.

  • Create a fully populated flavor profile.
  • Show flavor profile details.
  • Validate the show reflects the initial values.
  • Validates that non-admin accounts cannot update the flavor profile.
  • Update the flavor profile details.
  • Show flavor profile details.
  • Validate the show reflects the updated values.

octavia_tempest_plugin.tests.api.v2.test_healthmonitor module

class HealthMonitorAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the healthmonitor object API.

classmethod resource_setup()[source]

Setup resources needed by the tests.

classmethod skip_checks()[source]

Check if we should skip all of the children tests.

test_healthmonitor_create()[source]

Test idempotent id: 30288670-5772-40c2-92e6-6d4a6d62d029 Tests healthmonitor create and basic show APIs.

  • Create a clean pool to use for the healthmonitor.
  • Tests that users without the loadbalancer member role cannot create healthmonitors.
  • Create a fully populated healthmonitor.
  • Show healthmonitor details.
  • Validate the show reflects the requested values.
test_healthmonitor_delete()[source]

Test idempotent id: a7bab4ac-340c-4776-ab9d-9fcb66869432 Tests healthmonitor create and delete APIs.

  • Create a clean pool to use for the healthmonitor.
  • Creates a healthmonitor.
  • Validates that other accounts cannot delete the healthmonitor
  • Deletes the healthmonitor.
  • Validates the healthmonitor is in the DELETED state.
test_healthmonitor_list()[source]

Test idempotent id: c9a9f20c-3680-4ae8-b657-33c687258fea Tests healthmonitor list API and field filtering.

  • Create three clean pools to use for the healthmonitors.
  • Create three healthmonitors.
  • Validates that other accounts cannot list the healthmonitors.
  • List the healthmonitors using the default sort order.
  • List the healthmonitors using descending sort order.
  • List the healthmonitors using ascending sort order.
  • List the healthmonitors returning one field at a time.
  • List the healthmonitors returning two fields.
  • List the healthmonitors filtering to one of the three.
  • List the healthmonitors filtered, one field, and sorted.
test_healthmonitor_show()[source]

Test idempotent id: 284e8d3b-7b2d-4697-9e41-580b3423c0b4 Tests healthmonitor show API.

  • Create a clean pool to use for the healthmonitor.
  • Create a fully populated healthmonitor.
  • Show healthmonitor details.
  • Validate the show reflects the requested values.
  • Validates that other accounts cannot see the healthmonitor.
test_healthmonitor_update()[source]

Test idempotent id: fa584b2c-f179-4c4e-ad2e-ff51fd1c5973 Tests healthmonitor update and show APIs.

  • Create a clean pool to use for the healthmonitor.
  • Create a fully populated healthmonitor.
  • Show healthmonitor details.
  • Validate the show reflects the initial values.
  • Validates that other accounts cannot update the healthmonitor.
  • Update the healthmonitor details.
  • Show healthmonitor details.
  • Validate the show reflects the updated values.

octavia_tempest_plugin.tests.api.v2.test_l7policy module

class L7PolicyAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the l7policy object API.

classmethod resource_setup()[source]

Setup resources needed by the tests.

classmethod skip_checks()[source]

Check if we should skip all of the children tests.

test_l7policy_create_redirect_pool()[source]

Test idempotent id: eba4ddc2-758b-4dd5-bd28-c1b41d6575ca

test_l7policy_create_redirect_url()[source]

Test idempotent id: 2b529135-71bc-46f7-912f-74d238d67190

test_l7policy_create_reject()[source]

Test idempotent id: aa9b0d50-0d16-4365-85eb-846b17eb8398

test_l7policy_delete()[source]

Test idempotent id: 7925eb4b-94b6-4c28-98c2-fd0b4f0976cc Tests l7policy create and delete APIs.

  • Creates a l7policy.
  • Validates that other accounts cannot delete the l7policy
  • Deletes the l7policy.
  • Validates the l7policy is in the DELETED state.
test_l7policy_list()[source]

Test idempotent id: 42fa14ba-caf1-465e-ab36-27e7501f95ef Tests l7policy list API and field filtering.

  • Create a clean listener.
  • Create three l7policies.
  • Validates that other accounts cannot list the l7policies.
  • List the l7policies using the default sort order.
  • List the l7policies using descending sort order.
  • List the l7policies using ascending sort order.
  • List the l7policies returning one field at a time.
  • List the l7policies returning two fields.
  • List the l7policies filtering to one of the three.
  • List the l7policies filtered, one field, and sorted.
test_l7policy_show()[source]

Test idempotent id: baaa8104-a037-4976-b908-82a0b3e08129 Tests l7policy show API.

  • Create a fully populated l7policy.
  • Show l7policy details.
  • Validate the show reflects the requested values.
  • Validates that other accounts cannot see the l7policy.
test_l7policy_update()[source]

Test idempotent id: 08f73b22-550b-4e5a-b3d6-2ec03251ca13 Tests l7policy update and show APIs.

  • Create a clean listener.
  • Create a fully populated l7policy.
  • Show l7policy details.
  • Validate the show reflects the initial values.
  • Validates that other accounts cannot update the l7policy.
  • Update the l7policy details.
  • Show l7policy details.
  • Validate the show reflects the updated values.

octavia_tempest_plugin.tests.api.v2.test_l7rule module

class L7RuleAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the l7rule object API.

classmethod resource_setup()[source]

Setup resources needed by the tests.

classmethod skip_checks()[source]

Check if we should skip all of the children tests.

test_l7rule_create()[source]

Test idempotent id: 55ac1337-189d-40a6-b614-47d7a8e991f6 Tests l7rule create and basic show APIs.

  • Tests that users without the loadbalancer member role cannot create l7rules.
  • Create a fully populated l7rule.
  • Show l7rule details.
  • Validate the show reflects the requested values.
test_l7rule_delete()[source]

Test idempotent id: 8e15d68d-70e7-4cf3-82bc-9604384654a0 Tests l7rule create and delete APIs.

  • Creates a l7rule.
  • Validates that other accounts cannot delete the l7rule
  • Deletes the l7rule.
  • Validates the l7rule is in the DELETED state.
test_l7rule_list()[source]

Test idempotent id: 69095254-f106-4fb6-9f54-7a78cc14fb51 Tests l7rule list API and field filtering.

  • Create a clean l7policy.
  • Create three l7rules.
  • Validates that other accounts cannot list the l7rules.
  • List the l7rules using the default sort order.
  • List the l7rules using descending sort order.
  • List the l7rules using ascending sort order.
  • List the l7rules returning one field at a time.
  • List the l7rules returning two fields.
  • List the l7rules filtering to one of the three.
  • List the l7rules filtered, one field, and sorted.
test_l7rule_show()[source]

Test idempotent id: b80b34c3-09fc-467b-8027-7350adb17070 Tests l7rule show API.

  • Create a fully populated l7rule.
  • Show l7rule details.
  • Validate the show reflects the requested values.
  • Validates that other accounts cannot see the l7rule.
test_l7rule_update()[source]

Test idempotent id: f8cee23b-89b6-4f3a-a842-1463daf42cf7 Tests l7rule show API and field filtering.

  • Create a fully populated l7rule.
  • Show l7rule details.
  • Validate the show reflects the initial values.
  • Validates that other accounts cannot update the l7rule.
  • Update the l7rule details.
  • Show l7rule details.
  • Validate the show reflects the initial values.

octavia_tempest_plugin.tests.api.v2.test_listener module

class ListenerAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the listener object API.

classmethod resource_setup()[source]

Setup resources needed by the tests.

test_listener_create()[source]

Test idempotent id: 88d0ec83-7b08-48d9-96e2-0df1d2f8cd98 Tests listener create and basic show APIs.

  • Tests that users without the loadbalancer member role cannot create listeners.
  • Create a fully populated listener.
  • Show listener details.
  • Validate the show reflects the requested values.
test_listener_delete()[source]

Test idempotent id: 16f11c82-f069-4592-8954-81b35a98e3b7 Tests listener create and delete APIs.

  • Creates a listener.
  • Validates that other accounts cannot delete the listener
  • Deletes the listener.
  • Validates the listener is in the DELETED state.
test_listener_list()[source]

Test idempotent id: 78ba6eb0-178c-477e-9156-b6775ca7b271 Tests listener list API and field filtering.

  • Create a clean loadbalancer.
  • Create three listeners.
  • Validates that other accounts cannot list the listeners.
  • List the listeners using the default sort order.
  • List the listeners using descending sort order.
  • List the listeners using ascending sort order.
  • List the listeners returning one field at a time.
  • List the listeners returning two fields.
  • List the listeners filtering to one of the three.
  • List the listeners filtered, one field, and sorted.
test_listener_show()[source]

Test idempotent id: 6e299eae-6907-4dfc-89c2-e57709d25d3d Tests listener show API.

  • Create a fully populated listener.
  • Show listener details.
  • Validate the show reflects the requested values.
  • Validates that other accounts cannot see the listener.
test_listener_show_stats()[source]

Test idempotent id: 6f14a6c1-945e-43bc-8215-410c8a5edb25 Tests listener show statistics API.

  • Create a listener.
  • Validates that other accounts cannot see the stats for the
  • listener.
  • Show listener statistics.
  • Validate the show reflects the expected values.
test_listener_update()[source]

Test idempotent id: aaae0298-5778-4c7e-a27a-01549a71b319 Tests listener update and show APIs.

  • Create a fully populated listener.
  • Show listener details.
  • Validate the show reflects the initial values.
  • Validates that other accounts cannot update the listener.
  • Update the listener details.
  • Show listener details.
  • Validate the show reflects the updated values.

octavia_tempest_plugin.tests.api.v2.test_load_balancer module

class LoadBalancerAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the load balancer object API.

test_load_balancer_delete()[source]

Test idempotent id: 643ef031-c800-45f2-b229-3c8f8b37c829 Tests load balancer create and delete APIs.

  • Creates a load balancer.
  • Validates that other accounts cannot delete the load balancer
  • Deletes the load balancer.
  • Validates the load balancer is in the DELETED state.
test_load_balancer_delete_cascade()[source]

Test idempotent id: 643ef031-c800-45f2-b229-3c8f8b37c829 Tests load balancer create and cascade delete APIs.

  • Creates a load balancer.
  • Validates that other accounts cannot delete the load balancer
  • Deletes the load balancer with the cascade parameter.
  • Validates the load balancer is in the DELETED state.
test_load_balancer_failover()[source]

Test idempotent id: fc2e07a6-9776-4559-90c9-141170d4c397 Tests load balancer failover API.

  • Create a load balancer.
  • Validates that other accounts cannot failover the load balancer
  • Wait for the load balancer to go ACTIVE.
  • Failover the load balancer.
  • Wait for the load balancer to go ACTIVE.
test_load_balancer_ipv4_create()[source]

Test idempotent id: 61c6343c-a5d2-4b9f-8c7d-34ea83f0596b

test_load_balancer_ipv6_create()[source]

Test idempotent id: fc9996de-4f55-4fc4-b8ef-a4b9170c7078

test_load_balancer_list()[source]

Test idempotent id: 6546ef3c-c0e2-46af-b892-f795f4d01119 Tests load balancer list API and field filtering.

  • Create three load balancers.
  • Validates that other accounts cannot list the load balancers.
  • List the load balancers using the default sort order.
  • List the load balancers using descending sort order.
  • List the load balancers using ascending sort order.
  • List the load balancers returning one field at a time.
  • List the load balancers returning two fields.
  • List the load balancers filtering to one of the three.
  • List the load balancers filtered, one field, and sorted.
test_load_balancer_show()[source]

Test idempotent id: 826ae612-8717-4c64-a8a7-cb9570a85870 Tests load balancer show API.

  • Create a fully populated load balancer.
  • Show load balancer details.
  • Validate the show reflects the requested values.
  • Validates that other accounts cannot see the load balancer.
test_load_balancer_show_stats()[source]

Test idempotent id: 105afcba-4dd6-46d6-8fa4-bd7330aa1259 Tests load balancer show statistics API.

  • Create a load balancer.
  • Validates that other accounts cannot see the stats for the
  • load balancer.
  • Show load balancer statistics.
  • Validate the show reflects the expected values.
test_load_balancer_show_status()[source]

Test idempotent id: 60acc1b0-fa46-41f8-b526-c81ae2f42c30 Tests load balancer show status tree API.

  • Create a load balancer.
  • Validates that other accounts cannot see the status for the
  • load balancer.
  • Show load balancer status tree.
  • Validate the show reflects the expected values.
test_load_balancer_update()[source]

Test idempotent id: b75a4d15-49d2-4149-a745-635eed1aacc3 Tests load balancer update and show APIs.

  • Create a fully populated load balancer.
  • Show load balancer details.
  • Validate the show reflects the initial values.
  • Validates that other accounts cannot update the load balancer.
  • Update the load balancer details.
  • Show load balancer details.
  • Validate the show reflects the updated values.

octavia_tempest_plugin.tests.api.v2.test_member module

class MemberAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the member object API.

classmethod resource_setup()[source]

Setup resources needed by the tests.

test_member_batch_update()[source]

Test idempotent id: 83e0a9f2-491f-46a8-b3ce-6969d70a4e9f Tests member batch update.

  • Create two members.
  • Batch update the members so one is deleted, created, and updated
  • Validate the member list is correct.
test_member_delete()[source]

Test idempotent id: f129ba5e-a16e-4178-924f-6a9c5b8b1589 Tests member create and delete APIs.

  • Creates a member.
  • Validates that other accounts cannot delete the member
  • Deletes the member.
  • Validates the member is in the DELETED state.
test_member_ipv4_create()[source]

Test idempotent id: 0623aa1f-753d-44e7-afa1-017d274eace7

test_member_ipv6_create()[source]

Test idempotent id: 141944cc-5e2c-4e83-88f8-f61a6797c9b7

test_member_list()[source]

Test idempotent id: 9ce7ad78-915b-42ce-b0d8-44d88a929f3d Tests member list API and field filtering.

  • Create a clean pool.
  • Create three members.
  • Validates that other accounts cannot list the members.
  • List the members using the default sort order.
  • List the members using descending sort order.
  • List the members using ascending sort order.
  • List the members returning one field at a time.
  • List the members returning two fields.
  • List the members filtering to one of the three.
  • List the members filtered, one field, and sorted.
test_member_show()[source]

Test idempotent id: 7674ae04-7e92-44ef-9adf-40718d7ec705 Tests member show API.

  • Create a fully populated member.
  • Show member details.
  • Validate the show reflects the requested values.
  • Validates that other accounts cannot see the member.
test_member_update()[source]

Test idempotent id: c07572b8-e853-48f3-a8ea-37fc293a4724 Tests member show API and field filtering.

  • Create a fully populated member.
  • Show member details.
  • Validate the show reflects the initial values.
  • Validates that other accounts cannot update the member.
  • Update the member details.
  • Show member details.
  • Validate the show reflects the initial values.

octavia_tempest_plugin.tests.api.v2.test_pool module

class PoolAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the pool object API.

classmethod resource_setup()[source]

Setup resources needed by the tests.

test_pool_create_standalone()[source]

Test idempotent id: 7587fe48-87ba-4538-9f03-190911f100ff

test_pool_create_with_listener()[source]

Test idempotent id: c9c0df79-f07e-428c-ae57-b9d4078eec79

test_pool_delete()[source]

Test idempotent id: 35ed3800-7a4a-47a6-9b94-c1033fff1112 Tests pool create and delete APIs.

  • Creates a pool.
  • Validates that other accounts cannot delete the pool
  • Deletes the pool.
  • Validates the pool is in the DELETED state.
test_pool_list()[source]

Test idempotent id: 6959a32e-fb34-4f3e-be68-8880c6450016 Tests pool list API and field filtering.

  • Create a clean loadbalancer.
  • Create three pools.
  • Validates that other accounts cannot list the pools.
  • List the pools using the default sort order.
  • List the pools using descending sort order.
  • List the pools using ascending sort order.
  • List the pools returning one field at a time.
  • List the pools returning two fields.
  • List the pools filtering to one of the three.
  • List the pools filtered, one field, and sorted.
test_pool_show()[source]

Test idempotent id: b7932438-1aea-4175-a50c-984fee1c0cad Tests pool show API.

  • Create a fully populated pool.
  • Show pool details.
  • Validate the show reflects the requested values.
  • Validates that other accounts cannot see the pool.
test_pool_update()[source]

Test idempotent id: 7bd0a6bf-57b4-46a6-83ef-f9991896658a Tests pool update and show APIs.

  • Create a fully populated pool.
  • Show pool details.
  • Validate the show reflects the initial values.
  • Validates that other accounts cannot update the pool.
  • Update the pool details.
  • Show pool details.
  • Validate the show reflects the updated values.

octavia_tempest_plugin.tests.api.v2.test_provider module

class ProviderAPITest(*args, **kwargs)[source]

Bases: octavia_tempest_plugin.tests.test_base.LoadBalancerBaseTest

Test the provider object API.

test_provider_list()[source]

Test idempotent id: 8b94e0cc-a24d-4c29-bc8e-53f58214dc67 Tests provider list API and field filtering.

  • Validates that non-lb member accounts cannot list the providers.
  • List the providers and validate against the expected provider list.
  • List the providers returning one field at a time.

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.