mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(appconfig): return no content for cached configurations (#6777)
This commit is contained in:
1 parent
701b04c410
commit
f4ace9ebbe
4 files changed
+93
-3
No files matched your search
+6
-2
@@ -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())
|
||||
|
||||
Reference in new issue
Block a user