The changes for octavia testcase

octavia files are changed

Change-Id: Ib958ad516984d580b54ba14ec0a9b2f637d244ba
This commit is contained in:
pbharathbhu 2019-09-27 08:59:38 +00:00
parent e9c592bacd
commit 6514b31e69
1 changed files with 7 additions and 7 deletions

View File

@ -167,7 +167,7 @@ class OctaviaRoundRobin(feature_manager.FeatureManager):
"""
diction = self.deploy_octavia_topology()
self.start_web_servers(constants.HTTP_PORT)
net_id = diction['network']['network']['id']
net_id = diction['network']['id']
self.create_project_octavia(protocol_type="HTTP", protocol_port="80",
lb_algorithm="ROUND_ROBIN",
vip_net_id=net_id)
@ -182,9 +182,9 @@ class OctaviaRoundRobin(feature_manager.FeatureManager):
"""
diction = self.deploy_octavia_topology()
self.start_web_servers(constants.HTTP_PORT)
net_id = diction['network']['network']['id']
net_id = diction['network']['id']
self.create_project_octavia(protocol_type="HTTP", protocol_port="80",
lb_algorithm="LEASTS_CONTNECTIONS",
lb_algorithm="LEAST_CONNECTIONS",
vip_net_id=net_id)
self.check_project_lbaas()
@ -217,7 +217,7 @@ class OctaviaRoundRobin(feature_manager.FeatureManager):
lb_algorithm="LEAST_CONNECTIONS",
vip_subnet_id=subnet_id)
self.check_project_lbaas()
get_lb = self.octavia_admin_client.list_load_balancers()
get_lb = self.octavia_admin_client.list_octavia_load_balancers()
lb_id = get_lb['loadbalancers'][0]['id']
stat = self.octavia_admin_client.show_load_balancer_stats(lb_id)
assert (stat['stats']['bytes_in'] == 0 and
@ -251,13 +251,13 @@ class OctaviaRoundRobin(feature_manager.FeatureManager):
def test_octavia_http_round_robin_with_net_id_session_persistence(self):
"""
To verify the server count for LB pool with SOURCE_IP
session persistence and ROUND_ROBIN lb-algorithm
session persistence and ROUND_ROBIN lb-algorithm,
expected outcome is only one server responds to the
client requests
client requests.
"""
diction = self.deploy_octavia_topology()
self.start_web_servers(constants.HTTP_PORT)
net_id = diction['network']['network']['id']
net_id = diction['network']['id']
self.create_project_octavia(protocol_type="HTTP", protocol_port="80",
lb_algorithm="ROUND_ROBIN",
vip_net_id=net_id, persistence=True,