mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
[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>
This commit is contained in:
parent
1fedd7ad42
commit
2179cd9646
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user