Skip to content

Commit a5a92f8

Browse files
committed
disabled test
1 parent 4a86a3d commit a5a92f8

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

client/src/test/java/io/split/client/SplitFactoryImplTest.java

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,16 @@ public void testFactoryInstantiationWithProxyCredentials() throws Exception {
151151

152152
splitFactory.destroy();
153153
}
154-
/*
154+
155155
@Test
156156
public void testFactoryInstantiationWithProxyToken() throws Exception {
157+
class MyProxyRuntimeStorage implements ProxyRuntimeStorage {
158+
@Override
159+
public String getJwtToken() {
160+
return "123456789";
161+
}
162+
};
163+
157164
SplitClientConfig splitClientConfig = SplitClientConfig.builder()
158165
.enableDebug()
159166
.impressionsMode(ImpressionsManager.Mode.DEBUG)
@@ -163,7 +170,7 @@ public void testFactoryInstantiationWithProxyToken() throws Exception {
163170
.authServiceURL(AUTH_SERVICE)
164171
.setBlockUntilReadyTimeout(1000)
165172
.proxyPort(6060)
166-
// .proxyToken("123456789")
173+
.proxyRuntimeStorage(new MyProxyRuntimeStorage())
167174
.proxyHost(ENDPOINT)
168175
.build();
169176
SplitFactoryImpl splitFactory2 = new SplitFactoryImpl(API_KEY, splitClientConfig);
@@ -190,7 +197,7 @@ public void testFactoryInstantiationWithProxyToken() throws Exception {
190197

191198
splitFactory2.destroy();
192199
}
193-
*/
200+
194201
@Test
195202
public void testFactoryInstantiationWithProxyMtls() throws Exception {
196203
SplitClientConfig splitClientConfig = SplitClientConfig.builder()

0 commit comments

Comments
 (0)