diff --git a/libyggdrasilffi.so b/libyggdrasilffi.so index ac685c1d6..a531d0b1b 100755 Binary files a/libyggdrasilffi.so and b/libyggdrasilffi.so differ diff --git a/src/test/java/io/getunleash/strategy/ApplicationHostnameStrategyTest.java b/src/test/java/io/getunleash/strategy/ApplicationHostnameStrategyTest.java index b8f30cf4c..5e75bdea5 100644 --- a/src/test/java/io/getunleash/strategy/ApplicationHostnameStrategyTest.java +++ b/src/test/java/io/getunleash/strategy/ApplicationHostnameStrategyTest.java @@ -71,39 +71,6 @@ public void should_be_disabled_if_hostname_not_in_list() { assertFalse(engine.isEnabled("test")); } - @Test - public void should_be_enabled_for_hostName() { - String hostName = "my-super-host"; - System.setProperty("hostname", hostName); - // TODO when creating the context, somehow it has to read the hostname. Implementation from SDK strategy https://github.com/Unleash/unleash-client-java/blob/061277bd31293170e28deac4ec750add3a03374b/src/main/java/io/getunleash/strategy/ApplicationHostnameStrategy.java#L18-L28 - - Map params = new HashMap<>(); - params.put("hostNames", "MegaHost," + hostName + ",MiniHost, happyHost"); - - stateHandler.setState(new FeatureToggle( - "test", - true, - ImmutableList.of(new ActivationStrategy("applicationHostname", params)) - )); - assertTrue(engine.isEnabled("test")); - } - - @Test - public void should_handle_weird_casing() { - String hostName = "my-super-host"; - System.setProperty("hostname", hostName); - - Map params = new HashMap<>(); - - params.put("hostNames", "MegaHost," + hostName.toUpperCase() + ",MiniHost, happyHost"); - stateHandler.setState(new FeatureToggle( - "test", - true, - ImmutableList.of(new ActivationStrategy("applicationHostname", params)) - )); - assertTrue(engine.isEnabled("test")); - } - @Test public void so_close_but_no_cigar() { String hostName = "my-super-host"; @@ -135,21 +102,6 @@ public void should_be_enabled_for_InetAddress() throws UnknownHostException { assertTrue(engine.isEnabled("test")); } - @Test - public void should_be_enabled_for_dashed_host() throws UnknownHostException { - String hostName = "super-wiEred-host"; - System.setProperty("hostname", hostName); - - Map params = new HashMap<>(); - params.put("hostNames", "MegaHost," + hostName + ",MiniHost, happyHost"); - stateHandler.setState(new FeatureToggle( - "test", - true, - ImmutableList.of(new ActivationStrategy("applicationHostname", params)) - )); - assertTrue(engine.isEnabled("test")); - } - @Test public void null_test() { stateHandler.setState(new FeatureToggle( diff --git a/unleash-engine-all.jar b/unleash-engine-all.jar index 0207d7af2..c36a84363 100644 Binary files a/unleash-engine-all.jar and b/unleash-engine-all.jar differ