Support skipping SESSION_PERSISTENCE if L7 Protocol is disabled
Change-Id: Ifea51c1f927947588ac2ed82f25fa35ee56c98f7
This commit is contained in:
parent
3b41a36c0f
commit
ba1bc595e2
@ -147,11 +147,13 @@ class PoolScenarioTest(test_base.LoadBalancerBaseTest):
|
||||
self.assertEmpty(pool[const.LISTENERS])
|
||||
self.assertEqual(const.LB_ALGORITHM_ROUND_ROBIN,
|
||||
pool[const.LB_ALGORITHM])
|
||||
if self.lb_feature_enabled.l7_protocol_enabled:
|
||||
self.assertIsNotNone(pool.get(const.SESSION_PERSISTENCE))
|
||||
self.assertEqual(const.SESSION_PERSISTENCE_APP_COOKIE,
|
||||
pool[const.SESSION_PERSISTENCE][const.TYPE])
|
||||
self.assertEqual(pool_sp_cookie_name,
|
||||
pool[const.SESSION_PERSISTENCE][const.COOKIE_NAME])
|
||||
pool[const.SESSION_PERSISTENCE][
|
||||
const.COOKIE_NAME])
|
||||
|
||||
# Pool update
|
||||
new_name = data_utils.rand_name("lb_member_pool1-update")
|
||||
@ -191,8 +193,8 @@ class PoolScenarioTest(test_base.LoadBalancerBaseTest):
|
||||
if self.lb_feature_enabled.pool_algorithms_enabled:
|
||||
self.assertEqual(const.LB_ALGORITHM_LEAST_CONNECTIONS,
|
||||
pool[const.LB_ALGORITHM])
|
||||
if self.lb_feature_enabled.l7_protocol_enabled:
|
||||
self.assertIsNotNone(pool.get(const.SESSION_PERSISTENCE))
|
||||
if self.protocol == const.HTTP:
|
||||
self.assertEqual(const.SESSION_PERSISTENCE_HTTP_COOKIE,
|
||||
pool[const.SESSION_PERSISTENCE][const.TYPE])
|
||||
self.assertIsNone(
|
||||
|
Loading…
Reference in New Issue
Block a user