Rename more tests to match naming conventions

Original commit: elastic/x-pack-elasticsearch@d76c217bd9
This commit is contained in:
Nik Everett 2016-02-25 15:11:47 -05:00
parent 0522127924
commit c7796d5cb7
14 changed files with 17 additions and 17 deletions

View File

@ -34,7 +34,7 @@ import static org.hamcrest.Matchers.notNullValue;
/** /**
*/ */
public class ExecutionVarsIntegrationTests extends AbstractWatcherIntegrationTestCase { public class ExecutionVarsIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected List<Class<? extends Plugin>> pluginTypes() { protected List<Class<? extends Plugin>> pluginTypes() {

View File

@ -47,7 +47,7 @@ import static org.hamcrest.Matchers.lessThan;
* Two groovy-using methods from ManualExecutionTests. * Two groovy-using methods from ManualExecutionTests.
* They appear to be using groovy as a way to sleep. * They appear to be using groovy as a way to sleep.
*/ */
public class GroovyManualExecutionTests extends AbstractWatcherIntegrationTestCase { public class GroovyManualExecutionIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected List<Class<? extends Plugin>> pluginTypes() { protected List<Class<? extends Plugin>> pluginTypes() {

View File

@ -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 * 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 * not analyzed so they can be used in aggregations
*/ */
public class HistoryTemplateTransformMappingsTests extends AbstractWatcherIntegrationTestCase { public class HistoryTemplateTransformMappingsIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected List<Class<? extends Plugin>> pluginTypes() { protected List<Class<? extends Plugin>> pluginTypes() {

View File

@ -42,7 +42,7 @@ import static org.hamcrest.Matchers.is;
/** /**
* *
*/ */
public class IndexActionIntegrationTests extends AbstractWatcherIntegrationTestCase { public class IndexActionIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected List<Class<? extends Plugin>> pluginTypes() { protected List<Class<? extends Plugin>> pluginTypes() {

View File

@ -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 ThreadPool tp = null;
private ScriptServiceProxy scriptService; private ScriptServiceProxy scriptService;

View File

@ -45,7 +45,7 @@ import static org.hamcrest.Matchers.is;
/** /**
*/ */
public class TransformIntegrationTests extends AbstractWatcherIntegrationTestCase { public class TransformIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected List<Class<? extends Plugin>> pluginTypes() { protected List<Class<? extends Plugin>> pluginTypes() {
@ -60,7 +60,7 @@ public class TransformIntegrationTests extends AbstractWatcherIntegrationTestCas
Path scripts = configDir.resolve("scripts"); Path scripts = configDir.resolve("scripts");
try { try {
Files.createDirectories(scripts); 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"))) { OutputStream output = Files.newOutputStream(scripts.resolve("my-script.groovy"))) {
Streams.copy(stream, output); Streams.copy(stream, output);
} }

View File

@ -41,7 +41,7 @@ import static org.hamcrest.Matchers.notNullValue;
*/ */
@Network @Network
@TestLogging("watcher.support.http:TRACE") @TestLogging("watcher.support.http:TRACE")
public class HipChatServiceTests extends AbstractWatcherIntegrationTestCase { public class HipChatServiceIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected boolean timeWarped() { protected boolean timeWarped() {
return true; return true;

View File

@ -63,7 +63,7 @@ import static org.hamcrest.core.Is.is;
@TestLogging("discovery:TRACE,watcher:TRACE") @TestLogging("discovery:TRACE,watcher:TRACE")
@ClusterScope(scope = TEST, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 0) @ClusterScope(scope = TEST, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 0)
@SuppressLocalMode @SuppressLocalMode
public class NoMasterNodeTests extends AbstractWatcherIntegrationTestCase { public class NoMasterNodeIT extends AbstractWatcherIntegrationTestCase {
private ClusterDiscoveryConfiguration.UnicastZen config; private ClusterDiscoveryConfiguration.UnicastZen config;
@Override @Override

View File

@ -42,7 +42,7 @@ import static org.hamcrest.Matchers.notNullValue;
* *
*/ */
@Network @Network
public class PagerDutyServiceTests extends AbstractWatcherIntegrationTestCase { public class PagerDutyServiceIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected boolean timeWarped() { protected boolean timeWarped() {

View File

@ -73,7 +73,7 @@ import static org.joda.time.DateTimeZone.UTC;
/** /**
*/ */
@ClusterScope(scope = SUITE, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 1) @ClusterScope(scope = SUITE, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 1)
public class SearchInputTests extends ESIntegTestCase { public class SearchInputIT extends ESIntegTestCase {
@Override @Override
protected Collection<Class<? extends Plugin>> nodePlugins() { 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"; 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"); "/test_disk_template.mustache");
OutputStream out = Files.newOutputStream(scriptPath.resolve("test_disk_template.mustache"))) { OutputStream out = Files.newOutputStream(scriptPath.resolve("test_disk_template.mustache"))) {
Streams.copy(stream, out); Streams.copy(stream, out);

View File

@ -93,7 +93,7 @@ import static org.joda.time.DateTimeZone.UTC;
* *
*/ */
@ClusterScope(scope = SUITE, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 1) @ClusterScope(scope = SUITE, numClientNodes = 0, transportClientRatio = 0, randomDynamicTemplates = false, numDataNodes = 1)
public class SearchTransformTests extends ESIntegTestCase { public class SearchTransformIT extends ESIntegTestCase {
@Override @Override
protected Collection<Class<? extends Plugin>> nodePlugins() { 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"; 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"))) { OutputStream out = Files.newOutputStream(scriptPath.resolve("test_disk_template.mustache"))) {
Streams.copy(stream, out); Streams.copy(stream, out);
} catch (IOException e) { } catch (IOException e) {

View File

@ -31,7 +31,7 @@ import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.is; import static org.hamcrest.Matchers.is;
@ShieldIntegTestCase.AwaitsFix(bugUrl = "clean up test to not use mustache templates, otherwise needs many resources here") @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"; static final String READ_ONE_IDX_USER = "read_user";
@Override @Override

View File

@ -40,7 +40,7 @@ import static org.hamcrest.Matchers.notNullValue;
* *
*/ */
@Network @Network
public class SlackServiceTests extends AbstractWatcherIntegrationTestCase { public class SlackServiceIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected boolean timeWarped() { protected boolean timeWarped() {
return true; return true;

View File

@ -58,7 +58,7 @@ import static org.hamcrest.core.IsEqual.equalTo;
*/ */
//test is just too slow, please fix it to not be sleep-based //test is just too slow, please fix it to not be sleep-based
@BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007") @BadApple(bugUrl = "https://github.com/elastic/x-plugins/issues/1007")
public class WatchAckTests extends AbstractWatcherIntegrationTestCase { public class WatchAckIT extends AbstractWatcherIntegrationTestCase {
@Override @Override
protected Collection<Class<? extends Plugin>> nodePlugins() { protected Collection<Class<? extends Plugin>> nodePlugins() {