forked from fabric8io/elasticsearch-cloud-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move tests to elasticsearch test framework
Closes fabric8io#16.
- Loading branch information
Showing
22 changed files
with
610 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,3 +9,4 @@ | |
/.project | ||
/.classpath | ||
*.vmoptions | ||
.local-execution-hints.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/test/java/org/elasticsearch/cloud/gce/AbstractGceTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* | ||
* Licensed to Elasticsearch under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
package org.elasticsearch.cloud.gce; | ||
|
||
import com.carrotsearch.randomizedtesting.annotations.TestGroup; | ||
import org.elasticsearch.test.ElasticsearchIntegrationTest; | ||
|
||
import java.lang.annotation.Documented; | ||
import java.lang.annotation.Inherited; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
|
||
/** | ||
* | ||
*/ | ||
public abstract class AbstractGceTest extends ElasticsearchIntegrationTest { | ||
|
||
/** | ||
* Annotation for tests that require GCE to run. GCE tests are disabled by default. | ||
* <p/> | ||
* To enable test add -Dtests.gce=true -Des.config=/path/to/elasticsearch.yml | ||
* <p/> | ||
* The elasticsearch.yml file should contain the following keys | ||
* <pre> | ||
cloud: | ||
gce: | ||
project_id: es-cloud | ||
zone: europe-west1-a | ||
discovery: | ||
type: gce | ||
* </pre> | ||
*/ | ||
@Documented | ||
@Inherited | ||
@Retention(RetentionPolicy.RUNTIME) | ||
@TestGroup(enabled = false, sysProperty = SYSPROP_GCE) | ||
public @interface GceTest { | ||
} | ||
|
||
/** | ||
*/ | ||
public static final String SYSPROP_GCE = "tests.gce"; | ||
|
||
} |
56 changes: 0 additions & 56 deletions
56
src/test/java/org/elasticsearch/cloud/gce/tests/GceAbstractTest.java
This file was deleted.
Oops, something went wrong.
65 changes: 0 additions & 65 deletions
65
src/test/java/org/elasticsearch/cloud/gce/tests/GceDifferentTagsTest.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.