Skip to content

Commit bbcb9ae

Browse files
committed
Merge branch 'main' into feat/gherkin-rework
Signed-off-by: Simon Schrottner <[email protected]>
2 parents 2b81d5b + 514004f commit bbcb9ae

File tree

4 files changed

+8
-17
lines changed

4 files changed

+8
-17
lines changed

providers/flagd/pom.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
<dependency>
9191
<groupId>com.networknt</groupId>
9292
<artifactId>json-schema-validator</artifactId>
93-
<version>1.5.4</version>
93+
<version>1.5.5</version>
9494
<exclusions>
9595
<exclusion>
9696
<groupId>org.apache.commons</groupId>
@@ -155,12 +155,15 @@
155155
<version>1.20.4</version>
156156
<scope>test</scope>
157157
</dependency>
158+
<!-- uncomment for logoutput during test runs -->
159+
<!--
158160
<dependency>
159161
<groupId>org.slf4j</groupId>
160162
<artifactId>slf4j-simple</artifactId>
161163
<version>2.0.16</version>
162164
<scope>test</scope>
163165
</dependency>
166+
-->
164167
</dependencies>
165168

166169
<dependencyManagement>

providers/flagd/src/test/java/dev/openfeature/contrib/providers/flagd/e2e/RunRpcTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
@ConfigurationParameter(key = GLUE_PROPERTY_NAME, value = "dev.openfeature.contrib.providers.flagd.e2e.steps")
2828
@ConfigurationParameter(key = OBJECT_FACTORY_PROPERTY_NAME, value = "io.cucumber.picocontainer.PicoFactory")
2929
@IncludeTags({"rpc"})
30-
@ExcludeTags({"targetURI"})
30+
@ExcludeTags({"targetURI", "unixsocket"})
3131
@Testcontainers
3232
public class RunRpcTest {
3333

providers/flagd/src/test/java/dev/openfeature/contrib/providers/flagd/e2e/steps/ProviderSteps.java

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,13 @@ public class ProviderSteps extends AbstractSteps {
3838

3939
public static final int UNAVAILABLE_PORT = 9999;
4040
static Map<ProviderType, FlagdContainer> containers = new HashMap<>();
41-
static Map<ProviderType, Map<Config.Resolver, String>> proxyports = new HashMap<>();
4241
public static Network network = Network.newNetwork();
4342
public static ToxiproxyContainer toxiproxy =
4443
new ToxiproxyContainer("ghcr.io/shopify/toxiproxy:2.5.0").withNetwork(network);
4544
public static ToxiproxyClient toxiproxyClient;
4645

4746
static Path sharedTempDir;
4847

49-
static {
50-
try {
51-
sharedTempDir = Files.createDirectories(
52-
Paths.get("tmp/" + RandomStringUtils.randomAlphanumeric(8).toLowerCase() + "/"));
53-
} catch (IOException e) {
54-
throw new RuntimeException(e);
55-
}
56-
}
57-
58-
private Timer restartTimer;
59-
6048
public ProviderSteps(State state) {
6149
super(state);
6250
}
@@ -83,6 +71,8 @@ public static void beforeAll() throws IOException {
8371
ProviderType.DEFAULT, new FlagdContainer().withNetwork(network).withNetworkAliases("default"));
8472
containers.put(
8573
ProviderType.SSL, new FlagdContainer("ssl").withNetwork(network).withNetworkAliases("ssl"));
74+
sharedTempDir = Files.createDirectories(
75+
Paths.get("tmp/" + RandomStringUtils.randomAlphanumeric(8).toLowerCase() + "/"));
8676
containers.put(
8777
ProviderType.SOCKET,
8878
new FlagdContainer("socket")
@@ -209,7 +199,7 @@ public void run() {
209199
}
210200
}
211201
};
212-
restartTimer = new Timer("Timer" + randomizer);
202+
Timer restartTimer = new Timer("Timer" + randomizer);
213203

214204
restartTimer.schedule(task, seconds * 1000L);
215205
}

providers/flagd/src/test/resources/simplelogger.properties

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)