You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by sm...@apache.org on 2022/05/17 17:40:28 UTC

[knox] branch master updated: KNOX-2346 - Eliminated the accidentally re-introduced configs in one of the tests (#577)

This is an automated email from the ASF dual-hosted git repository.

smolnar pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new b15685c95 KNOX-2346 - Eliminated the accidentally re-introduced configs in one of the tests (#577)
b15685c95 is described below

commit b15685c953f8e7763cd4770b8457d263951eca66
Author: Sandor Molnar <sm...@apache.org>
AuthorDate: Tue May 17 19:40:24 2022 +0200

    KNOX-2346 - Eliminated the accidentally re-introduced configs in one of the tests (#577)
---
 .../apache/knox/gateway/ha/provider/impl/HaDescriptorFactoryTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gateway-provider-ha/src/test/java/org/apache/knox/gateway/ha/provider/impl/HaDescriptorFactoryTest.java b/gateway-provider-ha/src/test/java/org/apache/knox/gateway/ha/provider/impl/HaDescriptorFactoryTest.java
index 6a957116f..18a1f329b 100644
--- a/gateway-provider-ha/src/test/java/org/apache/knox/gateway/ha/provider/impl/HaDescriptorFactoryTest.java
+++ b/gateway-provider-ha/src/test/java/org/apache/knox/gateway/ha/provider/impl/HaDescriptorFactoryTest.java
@@ -51,7 +51,7 @@ public class HaDescriptorFactoryTest {
 
   @Test
   public void testCreateServiceConfigActive() {
-    HaServiceConfig serviceConfig = HaDescriptorFactory.createServiceConfig("foo", "enableStickySession=true;enabled=true;maxFailoverAttempts=42;failoverSleep=50;maxRetryAttempts=1;retrySleep=1000");
+    HaServiceConfig serviceConfig = HaDescriptorFactory.createServiceConfig("foo", "enableStickySession=true;enabled=true;maxFailoverAttempts=42;failoverSleep=50");
     assertNotNull(serviceConfig);
     assertTrue(serviceConfig.isEnabled());
     assertEquals("foo", serviceConfig.getServiceName());
@@ -60,7 +60,7 @@ public class HaDescriptorFactoryTest {
     assertTrue(serviceConfig.isStickySessionEnabled());
     assertEquals(HaServiceConfigConstants.DEFAULT_STICKY_SESSION_COOKIE_NAME, serviceConfig.getStickySessionCookieName());
 
-    serviceConfig = HaDescriptorFactory.createServiceConfig("foo", "enableStickySession=true;enabled=true;maxFailoverAttempts=42;failoverSleep=50;maxRetryAttempts=1;retrySleep=1000;stickySessionCookieName=abc");
+    serviceConfig = HaDescriptorFactory.createServiceConfig("foo", "enableStickySession=true;enabled=true;maxFailoverAttempts=42;failoverSleep=50;stickySessionCookieName=abc");
     assertNotNull(serviceConfig);
     assertTrue(serviceConfig.isEnabled());
     assertEquals("foo", serviceConfig.getServiceName());