Skip to content

Commit 99dc540

Browse files
committed
chore: try to fix flipt provider tests
Signed-off-by: Mark Phelps <[email protected]>
1 parent d7da809 commit 99dc540

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

Diff for: providers/flipt/pom.xml

+21-1
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,32 @@
3636
<scope>test</scope>
3737
</dependency>
3838

39+
<dependency>
40+
<groupId>com.fasterxml.jackson.core</groupId>
41+
<artifactId>jackson-core</artifactId>
42+
<version>2.16.1</version>
43+
<scope>test</scope>
44+
</dependency>
45+
46+
<dependency>
47+
<groupId>com.fasterxml.jackson.core</groupId>
48+
<artifactId>jackson-databind</artifactId>
49+
<version>2.16.1</version>
50+
<scope>test</scope>
51+
</dependency>
52+
53+
<dependency>
54+
<groupId>com.fasterxml.jackson.core</groupId>
55+
<artifactId>jackson-annotations</artifactId>
56+
<version>2.16.1</version>
57+
<scope>test</scope>
58+
</dependency>
59+
3960
<dependency>
4061
<groupId>org.apache.logging.log4j</groupId>
4162
<artifactId>log4j-slf4j2-impl</artifactId>
4263
<version>2.22.1</version>
4364
<scope>test</scope>
4465
</dependency>
45-
4666
</dependencies>
4767
</project>

Diff for: providers/flipt/src/test/java/dev/openfeature/contrib/providers/flipt/FliptProviderTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@ public void shutdown() {
7171
private void mockFliptAPI(String url, String resourceName, String flagKey) {
7272
stubFor(
7373
post(urlEqualTo(url))
74-
.withHeader("Content-Type", equalTo("application/json"))
74+
.withHeader("Content-Type", equalTo("application/json; charset=UTF-8"))
7575
.withRequestBody(WireMock.containing(flagKey))
7676
.willReturn(
7777
aResponse()
7878
.withStatus(200)
79-
.withHeader("Content-Type", "application/json")
79+
.withHeader("Content-Type", "application/json; charset=UTF-8")
8080
.withBody(readResourceFileContent(resourceName))));
8181
}
8282

0 commit comments

Comments
 (0)