fix(appconfig): return no content for cached configurations (#6777)

This commit is contained in:
Andre Kurait authored and GitHub committed 2026-10-27 22:00:37 -04:00
1 parent 701b04c410
commit f4ace9ebbe
4 files changed
+93 -3

No files matched your search

@@ -127,9 +127,13 @@ class AppConfigLegacyIntegrationTest {
}
@Test
void matchingClientVersionReturnsAnEmptyBody() {
void matchingClientVersionReturnsNoContentWithoutEntityHeaders() {
given().queryParam("client_id", "reader").queryParam("client_configuration_version", "1")
.get(path()).then().statusCode(200).header("Configuration-Version", "1").body(equalTo(""));
.get(path()).then().statusCode(204)
.header("Configuration-Version", "1")
.header("Content-Type", nullValue())
.header("Content-Length", nullValue())
.body(equalTo(""));
given().queryParam("client_id", "reader").queryParam("client_configuration_version", "0")
.get(path()).then().statusCode(200).body("enabled", equalTo(true));
given().queryParam("client_id", "another-reader").get(path())