[sensibo] Add test for Accept-Encoding header (#17072)

* Add accept-encoding header to reduce chance of rate limiting

Signed-off-by: Arne Seime <arne.seime@gmail.com>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Arne Seime 2024-07-25 09:48:45 +02:00 committed by Ciprian Pascu
parent 0cf877864a
commit 0de1565b65

View File

@ -90,6 +90,7 @@ public class SensiboAccountHandlerTest {
final String getPodsResponse = new String(getClass().getResourceAsStream(podsResponse).readAllBytes(),
StandardCharsets.UTF_8);
stubFor(get(urlEqualTo("/api/v2/users/me/pods?fields=*&apiKey=APIKEY"))
.withHeader("Accept-Encoding", equalTo("gzip"))
.willReturn(aResponse().withStatus(200).withBody(getPodsResponse)));
when(sensiboAccountMock.getConfiguration()).thenReturn(configuration);