Rename more tests to match naming conventions
Original commit: elastic/x-pack-elasticsearch@d76c217bd9
This commit is contained in:
parent
0522127924
commit
c7796d5cb7
|
@ -34,7 +34,7 @@ import static org.hamcrest.Matchers.notNullValue;
|
|||
|
||||
/**
|
||||
*/
|
||||
public class ExecutionVarsIntegrationTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class ExecutionVarsIT extends AbstractWatcherIntegrationTestCase {
|
||||
|
||||
@Override
|
||||
protected List<Class<? extends Plugin>> pluginTypes() {
|
|
@ -47,7 +47,7 @@ import static org.hamcrest.Matchers.lessThan;
|
|||
* Two groovy-using methods from ManualExecutionTests.
|
||||
* They appear to be using groovy as a way to sleep.
|
||||
*/
|
||||
public class GroovyManualExecutionTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class GroovyManualExecutionIT extends AbstractWatcherIntegrationTestCase {
|
||||
|
||||
@Override
|
||||
protected List<Class<? extends Plugin>> pluginTypes() {
|
|
@ -34,7 +34,7 @@ import static org.hamcrest.Matchers.notNullValue;
|
|||
* This test makes sure that the http host and path fields in the watch_record action result are
|
||||
* not analyzed so they can be used in aggregations
|
||||
*/
|
||||
public class HistoryTemplateTransformMappingsTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class HistoryTemplateTransformMappingsIT extends AbstractWatcherIntegrationTestCase {
|
||||
|
||||
@Override
|
||||
protected List<Class<? extends Plugin>> pluginTypes() {
|
|
@ -42,7 +42,7 @@ import static org.hamcrest.Matchers.is;
|
|||
/**
|
||||
*
|
||||
*/
|
||||
public class IndexActionIntegrationTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class IndexActionIT extends AbstractWatcherIntegrationTestCase {
|
||||
|
||||
@Override
|
||||
protected List<Class<? extends Plugin>> pluginTypes() {
|
|
@ -37,7 +37,7 @@ import static org.mockito.Mockito.when;
|
|||
|
||||
/**
|
||||
*/
|
||||
public class ScriptConditionSearchTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class ScriptConditionSearchIT extends AbstractWatcherIntegrationTestCase {
|
||||
private ThreadPool tp = null;
|
||||
private ScriptServiceProxy scriptService;
|
||||
|
|
@ -45,7 +45,7 @@ import static org.hamcrest.Matchers.is;
|
|||
|
||||
/**
|
||||
*/
|
||||
public class TransformIntegrationTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class TransformIT extends AbstractWatcherIntegrationTestCase {
|
||||
|
||||
@Override
|
||||
protected List<Class<? extends Plugin>> pluginTypes() {
|
||||
|
@ -60,7 +60,7 @@ public class TransformIntegrationTests extends AbstractWatcherIntegrationTestCas
|
|||
Path scripts = configDir.resolve("scripts");
|
||||
try {
|
||||
Files.createDirectories(scripts);
|
||||
try (InputStream stream = TransformIntegrationTests.class.getResourceAsStream("/config/scripts/my-script.groovy");
|
||||
try (InputStream stream = TransformIT.class.getResourceAsStream("/config/scripts/my-script.groovy");
|
||||
OutputStream output = Files.newOutputStream(scripts.resolve("my-script.groovy"))) {
|
||||
Streams.copy(stream, output);
|
||||
}
|
|
@ -41,7 +41,7 @@ import static org.hamcrest.Matchers.notNullValue;
|
|||
*/
|
||||
@Network
|
||||
@TestLogging("watcher.support.http:TRACE")
|
||||
public class HipChatServiceTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class HipChatServiceIT extends AbstractWatcherIntegrationTestCase {
|
||||
@Override
|
||||
protected boolean timeWarped() {
|
||||
return true;
|
|
@ -63,7 +63,7 @@ import static org.hamcrest.core.Is.is;
|
|||
@TestLogging("discovery:TRACE,watcher:TRACE")
|
||||
@ClusterScope(scope = TEST, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 0)
|
||||
@SuppressLocalMode
|
||||
public class NoMasterNodeTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class NoMasterNodeIT extends AbstractWatcherIntegrationTestCase {
|
||||
private ClusterDiscoveryConfiguration.UnicastZen config;
|
||||
|
||||
@Override
|
|
@ -42,7 +42,7 @@ import static org.hamcrest.Matchers.notNullValue;
|
|||
*
|
||||
*/
|
||||
@Network
|
||||
public class PagerDutyServiceTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class PagerDutyServiceIT extends AbstractWatcherIntegrationTestCase {
|
||||
|
||||
@Override
|
||||
protected boolean timeWarped() {
|
|
@ -73,7 +73,7 @@ import static org.joda.time.DateTimeZone.UTC;
|
|||
/**
|
||||
*/
|
||||
@ClusterScope(scope = SUITE, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 1)
|
||||
public class SearchInputTests extends ESIntegTestCase {
|
||||
public class SearchInputIT extends ESIntegTestCase {
|
||||
|
||||
@Override
|
||||
protected Collection<Class<? extends Plugin>> nodePlugins() {
|
||||
|
@ -100,7 +100,7 @@ public class SearchInputTests extends ESIntegTestCase {
|
|||
|
||||
}
|
||||
String path = "/org/elasticsearch/watcher/input/search/config/scripts/test_disk_template.mustache";
|
||||
try (InputStream stream = SearchInputTests.class.getResourceAsStream("/org/elasticsearch/watcher/input/search/config/scripts" +
|
||||
try (InputStream stream = SearchInputIT.class.getResourceAsStream("/org/elasticsearch/watcher/input/search/config/scripts" +
|
||||
"/test_disk_template.mustache");
|
||||
OutputStream out = Files.newOutputStream(scriptPath.resolve("test_disk_template.mustache"))) {
|
||||
Streams.copy(stream, out);
|
|
@ -93,7 +93,7 @@ import static org.joda.time.DateTimeZone.UTC;
|
|||
*
|
||||
*/
|
||||
@ClusterScope(scope = SUITE, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 1)
|
||||
public class SearchTransformTests extends ESIntegTestCase {
|
||||
public class SearchTransformIT extends ESIntegTestCase {
|
||||
|
||||
@Override
|
||||
protected Collection<Class<? extends Plugin>> nodePlugins() {
|
||||
|
@ -115,7 +115,7 @@ public class SearchTransformTests extends ESIntegTestCase {
|
|||
|
||||
}
|
||||
String path = "/org/elasticsearch/watcher/transform/search/config/scripts/test_disk_template.mustache";
|
||||
try (InputStream stream = SearchTransformTests.class.getResourceAsStream(path);
|
||||
try (InputStream stream = SearchTransformIT.class.getResourceAsStream(path);
|
||||
OutputStream out = Files.newOutputStream(scriptPath.resolve("test_disk_template.mustache"))) {
|
||||
Streams.copy(stream, out);
|
||||
} catch (IOException e) {
|
|
@ -31,7 +31,7 @@ import static org.hamcrest.Matchers.containsString;
|
|||
import static org.hamcrest.Matchers.is;
|
||||
|
||||
@ShieldIntegTestCase.AwaitsFix(bugUrl = "clean up test to not use mustache templates, otherwise needs many resources here")
|
||||
public class ShieldCachePermissionTests extends ShieldIntegTestCase {
|
||||
public class ShieldCachePermissionIT extends ShieldIntegTestCase {
|
||||
static final String READ_ONE_IDX_USER = "read_user";
|
||||
|
||||
@Override
|
|
@ -40,7 +40,7 @@ import static org.hamcrest.Matchers.notNullValue;
|
|||
*
|
||||
*/
|
||||
@Network
|
||||
public class SlackServiceTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class SlackServiceIT extends AbstractWatcherIntegrationTestCase {
|
||||
@Override
|
||||
protected boolean timeWarped() {
|
||||
return true;
|
|
@ -58,7 +58,7 @@ import static org.hamcrest.core.IsEqual.equalTo;
|
|||
*/
|
||||
//test is just too slow, please fix it to not be sleep-based
|
||||
@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007")
|
||||
public class WatchAckTests extends AbstractWatcherIntegrationTestCase {
|
||||
public class WatchAckIT extends AbstractWatcherIntegrationTestCase {
|
||||
|
||||
@Override
|
||||
protected Collection<Class<? extends Plugin>> nodePlugins() {
|
Loading…
Reference in New Issue