use of com.couchbase.client.core.endpoint.http.CoreHttpClient in project couchbase-jvm-clients by couchbase.
the class RateLimitingIntegrationTest method enforceRateLimits.
/**
* Makes sure that the rate limits are enforced on the server.
*/
static void enforceRateLimits() throws Exception {
CoreHttpClient client = adminCluster.core().httpClient(RequestTarget.manager());
CoreHttpResponse result = client.post(path("/internalSettings"), CoreCommonOptions.DEFAULT).form(UrlQueryStringBuilder.create().add("enforceLimits", true)).exec(adminCluster.core()).get();
assertEquals(ResponseStatus.SUCCESS, result.status());
}
Aggregations