Add check for protocol

While update pool session persistence it checks
not only for feature enabling, but for protocol too.
This condition is missed while checking.

Related-Prod: PRODX-7857
Change-Id: I81477f56ff06f0488b33d67d905947a1d7f1a21d
diff --git a/octavia_tempest_plugin/tests/scenario/v2/test_pool.py b/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
index 2311dd0..d181984 100644
--- a/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
+++ b/octavia_tempest_plugin/tests/scenario/v2/test_pool.py
@@ -205,7 +205,8 @@
         if self.lb_feature_enabled.pool_algorithms_enabled:
             self.assertEqual(const.LB_ALGORITHM_LEAST_CONNECTIONS,
                              pool[const.LB_ALGORITHM])
-        if self.lb_feature_enabled.session_persistence_enabled:
+        if self.protocol == const.HTTP and (
+                self.lb_feature_enabled.session_persistence_enabled):
             self.assertIsNotNone(pool.get(const.SESSION_PERSISTENCE))
             self.assertEqual(const.SESSION_PERSISTENCE_HTTP_COOKIE,
                              pool[const.SESSION_PERSISTENCE][const.TYPE])