Merge pull request #11152 from rmuir/party_time
Add test group for third-party tests
This commit is contained in:
commit
3ee9ae6f9c
2
pom.xml
2
pom.xml
|
@ -616,6 +616,8 @@
|
||||||
<tests.timeoutSuite>${tests.timeoutSuite}</tests.timeoutSuite>
|
<tests.timeoutSuite>${tests.timeoutSuite}</tests.timeoutSuite>
|
||||||
<tests.showSuccess>${tests.showSuccess}</tests.showSuccess>
|
<tests.showSuccess>${tests.showSuccess}</tests.showSuccess>
|
||||||
<tests.integration>${tests.integration}</tests.integration>
|
<tests.integration>${tests.integration}</tests.integration>
|
||||||
|
<tests.thirdparty>${tests.thirdparty}</tests.thirdparty>
|
||||||
|
<tests.config>${tests.config}</tests.config>
|
||||||
<tests.client.ratio>${tests.client.ratio}</tests.client.ratio>
|
<tests.client.ratio>${tests.client.ratio}</tests.client.ratio>
|
||||||
<tests.enable_mock_modules>${tests.enable_mock_modules}</tests.enable_mock_modules>
|
<tests.enable_mock_modules>${tests.enable_mock_modules}</tests.enable_mock_modules>
|
||||||
<tests.assertion.disabled>${tests.assertion.disabled}</tests.assertion.disabled>
|
<tests.assertion.disabled>${tests.assertion.disabled}</tests.assertion.disabled>
|
||||||
|
|
|
@ -243,6 +243,26 @@ public abstract class ElasticsearchIntegrationTest extends ElasticsearchTestCase
|
||||||
public @interface Integration {
|
public @interface Integration {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Property that controls whether ThirdParty Integration tests are run (not the default).
|
||||||
|
*/
|
||||||
|
public static final String SYSPROP_THIRDPARTY = "tests.thirdparty";
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Annotation for third-party integration tests.
|
||||||
|
* <p>
|
||||||
|
* These are tests the require a third-party service in order to run. They
|
||||||
|
* may require the user to manually configure an external process (such as rabbitmq),
|
||||||
|
* or may additionally require some external configuration (e.g. AWS credentials)
|
||||||
|
* via the {@code tests.config} system property.
|
||||||
|
*/
|
||||||
|
@Inherited
|
||||||
|
@Retention(RetentionPolicy.RUNTIME)
|
||||||
|
@Target(ElementType.TYPE)
|
||||||
|
@TestGroup(enabled = false, sysProperty = ElasticsearchIntegrationTest.SYSPROP_THIRDPARTY)
|
||||||
|
public @interface ThirdParty {
|
||||||
|
}
|
||||||
|
|
||||||
/** node names of the corresponding clusters will start with these prefixes */
|
/** node names of the corresponding clusters will start with these prefixes */
|
||||||
public static final String SUITE_CLUSTER_NODE_PREFIX = "node_s";
|
public static final String SUITE_CLUSTER_NODE_PREFIX = "node_s";
|
||||||
public static final String TEST_CLUSTER_NODE_PREFIX = "node_t";
|
public static final String TEST_CLUSTER_NODE_PREFIX = "node_t";
|
||||||
|
|
Loading…
Reference in New Issue