From 7b8db15f7f22a3328838d54749f3425657c7754d Mon Sep 17 00:00:00 2001 From: kwasniew Date: Tue, 21 Jan 2025 15:42:02 +0100 Subject: [PATCH] fix: revert previous version scheme --- src/main/java/io/getunleash/util/UnleashConfig.java | 2 +- src/test/java/io/getunleash/util/UnleashConfigTest.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/getunleash/util/UnleashConfig.java b/src/main/java/io/getunleash/util/UnleashConfig.java index 485fdb8e..24443a39 100644 --- a/src/main/java/io/getunleash/util/UnleashConfig.java +++ b/src/main/java/io/getunleash/util/UnleashConfig.java @@ -736,7 +736,7 @@ public String getDefaultSdkVersion() { String version = Optional.ofNullable(getClass().getPackage().getImplementationVersion()) .orElse("development"); - return "unleash-java@" + version; + return "unleash-client-java:" + version; } } } diff --git a/src/test/java/io/getunleash/util/UnleashConfigTest.java b/src/test/java/io/getunleash/util/UnleashConfigTest.java index 63fe6e2b..dd2054b7 100644 --- a/src/test/java/io/getunleash/util/UnleashConfigTest.java +++ b/src/test/java/io/getunleash/util/UnleashConfigTest.java @@ -113,7 +113,7 @@ public void should_set_sdk_version() { UnleashConfig config = UnleashConfig.builder().appName("my-app").unleashAPI("http://unleash.org").build(); - assertThat(config.getSdkVersion()).isEqualTo("unleash-java@development"); + assertThat(config.getSdkVersion()).isEqualTo("unleash-client-java:development"); } @Test @@ -160,7 +160,7 @@ public void should_add_client_identification_headers_to_connection() throws IOEx assertThat(connection.getRequestProperty(UNLEASH_INSTANCE_ID_HEADER)).isEqualTo(instanceId); assertThat(connection.getRequestProperty(UNLEASH_CONNECTION_ID_HEADER)).hasSize(36); assertThat(connection.getRequestProperty(UNLEASH_SDK_HEADER)) - .isEqualTo("unleash-java@development"); + .isEqualTo("unleash-client-java:development"); assertThat(connection.getRequestProperty("User-Agent")).isEqualTo(appName); }