private String maxConcurrentPathParam = "c/max.concurrent.req.per.apikey";
private String maxActivePathParam = "c/max.active.req.per.apikey";
@Test(timeout = ZanataTestCase.MAX_SHORT_TEST_DURATION)
public void canConfigureRateLimitByWebUI() {
ServerConfigurationPage serverConfigPage = new LoginWorkFlow()
.signIn("admin", "admin")
.goToAdministration()
.goToServerConfigPage();
assertThat(serverConfigPage.getMaxConcurrentRequestsPerApiKey())
.isEqualTo("default is 6");
assertThat(serverConfigPage.getMaxActiveRequestsPerApiKey())
.isEqualTo("default is 2");
AdministrationPage administrationPage =
serverConfigPage.inputMaxConcurrent(5).inputMaxActive(3).save();
//RHBZ1160651
//assertThat(administrationPage.getNotificationMessage())
// .isEqualTo("Configuration was successfully updated.");
serverConfigPage = administrationPage.goToServerConfigPage();
assertThat(serverConfigPage.getMaxActiveRequestsPerApiKey())
.isEqualTo("3");
assertThat(serverConfigPage.getMaxConcurrentRequestsPerApiKey())
.isEqualTo("5");
}