Skip to content

Commit 5b63d9c

Browse files
authored
fix: rollback api in baseUrl fix for rerelease (#69)
1 parent 95d0cda commit 5b63d9c

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = 'cloud.eppo'
9-
version = '3.5.3'
9+
version = '3.5.4'
1010
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
1111

1212
java {

src/main/java/cloud/eppo/Constants.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/** Constants Class */
44
public class Constants {
55
/** Base URL */
6-
public static final String DEFAULT_BASE_URL = "https://fscdn.eppo.cloud/api";
6+
public static final String DEFAULT_BASE_URL = "https://fscdn.eppo.cloud";
77

88
public static final int REQUEST_TIMEOUT_MILLIS = 1000;
99

@@ -20,8 +20,8 @@ public class Constants {
2020
/** RAC settings */
2121
public static final String RAC_ENDPOINT = "/randomized_assignment/v3/config";
2222

23-
public static final String BANDIT_ENDPOINT = "/flag-config/v1/bandits";
24-
public static final String FLAG_CONFIG_ENDPOINT = "/flag-config/v1/config";
23+
public static final String BANDIT_ENDPOINT = "/api/flag-config/v1/bandits";
24+
public static final String FLAG_CONFIG_ENDPOINT = "/api/flag-config/v1/config";
2525

2626
/** Caching Settings */
2727
public static final String EXPERIMENT_CONFIGURATION_CACHE_KEY = "experiment-configuration";

src/test/java/cloud/eppo/ConfigurationRequestorTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void testInitialConfigurationDoesntClobberFetch() throws IOException {
5858
String fetchedFlagConfig =
5959
FileUtils.readFileToString(differentFlagConfigFile, StandardCharsets.UTF_8);
6060

61-
when(mockHttpClient.getAsync("/flag-config/v1/config")).thenReturn(configFetchFuture);
61+
when(mockHttpClient.getAsync("/api/flag-config/v1/config")).thenReturn(configFetchFuture);
6262

6363
// Set initial config and verify that no config has been set yet.
6464
requestor.setInitialConfiguration(initialConfigFuture);
@@ -98,7 +98,7 @@ public void testBrokenFetchDoesntClobberCache() throws IOException {
9898
String flagConfig = FileUtils.readFileToString(initialFlagConfigFile, StandardCharsets.UTF_8);
9999
CompletableFuture<byte[]> configFetchFuture = new CompletableFuture<>();
100100

101-
when(mockHttpClient.getAsync("/flag-config/v1/config")).thenReturn(configFetchFuture);
101+
when(mockHttpClient.getAsync("/api/flag-config/v1/config")).thenReturn(configFetchFuture);
102102

103103
// Set initial config and verify that no config has been set yet.
104104
requestor.setInitialConfiguration(initialConfigFuture);
@@ -135,7 +135,7 @@ public void testCacheWritesAfterBrokenFetch() throws IOException {
135135
String flagConfig = FileUtils.readFileToString(initialFlagConfigFile, StandardCharsets.UTF_8);
136136
CompletableFuture<byte[]> configFetchFuture = new CompletableFuture<>();
137137

138-
when(mockHttpClient.getAsync("/flag-config/v1/config")).thenReturn(configFetchFuture);
138+
when(mockHttpClient.getAsync("/api/flag-config/v1/config")).thenReturn(configFetchFuture);
139139

140140
// Set initial config and verify that no config has been set yet.
141141
requestor.setInitialConfiguration(initialConfigFuture);

0 commit comments

Comments
 (0)