Adds flavor profile API tests
This patch adds flavor profile API tests to the Octavia tempest plugin.
Depends-On: https://review.openstack.org/626819
Change-Id: I4e76b3717ddc577a912e39edbe701c71825361d2
diff --git a/octavia_tempest_plugin/common/constants.py b/octavia_tempest_plugin/common/constants.py
index 4154e7b..0dd0156 100644
--- a/octavia_tempest_plugin/common/constants.py
+++ b/octavia_tempest_plugin/common/constants.py
@@ -28,6 +28,7 @@
POOLS = 'pools'
PROJECT_ID = 'project_id'
PROVIDER = 'provider'
+PROVIDER_NAME = 'provider_name'
PROVISIONING_STATUS = 'provisioning_status'
REQUEST_ERRORS = 'request_errors'
TOTAL_CONNECTIONS = 'total_connections'
@@ -77,6 +78,8 @@
URL_PATH = 'url_path'
EXPECTED_CODES = 'expected_codes'
+FLAVOR_DATA = 'flavor_data'
+
# Other constants
ACTIVE = 'ACTIVE'
ADMIN_STATE_UP_TRUE = 'true'
@@ -89,6 +92,8 @@
NO_MONITOR = 'NO_MONITOR'
ERROR = 'ERROR'
SORT = 'sort'
+SINGLE = 'SINGLE'
+ACTIVE_STANDBY = 'ACTIVE_STANDBY'
# Protocols
HTTP = 'HTTP'
@@ -185,6 +190,9 @@
STATUS_PENDING_DELETE, STATUS_DELETED, STATUS_ERROR
)
+# Flavor capabilities
+LOADBALANCER_TOPOLOGY = 'loadbalancer_topology'
+
# API valid fields
SHOW_LOAD_BALANCER_RESPONSE_FIELDS = (
ADMIN_STATE_UP, CREATED_AT, DESCRIPTION, FLAVOR_ID, ID, LISTENERS, NAME,
@@ -232,3 +240,5 @@
VRRP_PORT_ID, HA_PORT_ID, CERT_EXPIRATION, CERT_BUSY, ROLE, STATUS,
VRRP_INTERFACE, VRRP_ID, VRRP_PRIORITY, CACHED_ZONE
]
+
+SHOW_FLAVOR_PROFILE_FIELDS = [ID, NAME, PROVIDER_NAME, FLAVOR_DATA]