Enable REST tests
Enable REST tests again after core support for 3rd party REST tests was added back. Closes elastic/elasticsearch#599 Original commit: elastic/x-pack-elasticsearch@a5fffbca6e
This commit is contained in:
parent
483fc360f4
commit
e96eab8ba0
2
pom.xml
2
pom.xml
|
@ -26,7 +26,7 @@
|
|||
<license.plugin.version>2.0.0-SNAPSHOT</license.plugin.version>
|
||||
<shield.plugin.version>2.0.0-SNAPSHOT</shield.plugin.version>
|
||||
<tests.security.manager>false</tests.security.manager> <!-- some tests fail since they need setFactory permission -->
|
||||
<tests.rest>false</tests.rest> <!-- watcher can't run REST tests at this point -->
|
||||
<tests.rest.load_packaged>false</tests.rest.load_packaged>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
package org.elasticsearch.watcher.test.rest;
|
||||
|
||||
import com.carrotsearch.randomizedtesting.annotations.Name;
|
||||
import org.elasticsearch.common.Strings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.license.plugin.core.LicenseExpiredException;
|
||||
|
@ -47,13 +48,8 @@ public class WatcherDisabledLicenseRestTests extends WatcherRestTests {
|
|||
//This was a test testing the "hijacked" methods
|
||||
return;
|
||||
}
|
||||
if (shieldEnabled) {
|
||||
assertThat(ae.getMessage(), containsString("returned [403 Forbidden]"));
|
||||
assertThat(ae.getMessage(), containsString("is unauthorized for user [admin]"));
|
||||
} else {
|
||||
assertThat(ae.getMessage(), containsString("unauthorized"));
|
||||
assertThat(ae.getMessage(), containsString(LicenseExpiredException.class.getSimpleName()));
|
||||
}
|
||||
assertThat(ae.getMessage(), containsString("license expired for feature [watcher]"));
|
||||
assertThat(ae.getMessage(), containsString(Strings.toUnderscoreCase(LicenseExpiredException.class.getSimpleName())));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue