[Rename] test framework remaining tests (#375)
This commit refactors the remaining tests in the test/framework module. All other references throughout the codebase are also refactored. Signed-off-by: Nicholas Walter Knize <nknize@apache.org>
This commit is contained in:
parent
5b46a05702
commit
2df59c4a4b
|
@ -18,7 +18,7 @@
|
|||
*/
|
||||
|
||||
/**
|
||||
* Infrastructure for testing REST. See {@link OpenSearchRestTestCase} for running tests against an OpenSearch cluster using the REST tests and
|
||||
* the rest of the package for mocking utilities.
|
||||
* Infrastructure for testing REST. See {@link OpenSearchRestTestCase} for running tests against an OpenSearch cluster using the
|
||||
* REST tests and the rest of the package for mocking utilities.
|
||||
*/
|
||||
package org.opensearch.test.rest;
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.ingest;
|
||||
package org.opensearch.ingest;
|
||||
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test;
|
||||
package org.opensearch.test;
|
||||
|
||||
import org.opensearch.common.collect.Tuple;
|
||||
import org.opensearch.common.util.set.Sets;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test;
|
||||
package org.opensearch.test;
|
||||
|
||||
import com.carrotsearch.randomizedtesting.RandomizedContext;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test;
|
||||
package org.opensearch.test;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.Booleans;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test;
|
||||
package org.opensearch.test;
|
||||
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.xcontent.DeprecationHandler;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.disruption;
|
||||
package org.opensearch.test.disruption;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.action.support.PlainActionFuture;
|
||||
|
@ -29,7 +29,6 @@ import org.opensearch.common.settings.Settings;
|
|||
import org.opensearch.common.transport.TransportAddress;
|
||||
import org.opensearch.node.Node;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
import org.opensearch.test.disruption.DisruptableMockTransport;
|
||||
import org.opensearch.test.disruption.DisruptableMockTransport.ConnectionStatus;
|
||||
import org.opensearch.threadpool.ThreadPool;
|
||||
import org.opensearch.transport.ConnectTransportException;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.disruption;
|
||||
package org.opensearch.test.disruption;
|
||||
|
||||
import org.opensearch.common.Nullable;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.disruption;
|
||||
package org.opensearch.test.disruption;
|
||||
|
||||
import org.opensearch.action.admin.cluster.health.ClusterHealthAction;
|
||||
import org.opensearch.action.admin.cluster.health.ClusterHealthRequest;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.disruption;
|
||||
package org.opensearch.test.disruption;
|
||||
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
import org.opensearch.test.disruption.NetworkDisruption;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.hamcrest;
|
||||
package org.opensearch.test.hamcrest;
|
||||
|
||||
import org.opensearch.action.support.DefaultShardOperationFailedException;
|
||||
import org.opensearch.action.support.broadcast.BroadcastResponse;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest;
|
||||
package org.opensearch.test.rest;
|
||||
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
import org.opensearch.test.rest.OpenSearchRestTestCase;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest;
|
||||
package org.opensearch.test.rest;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.client.WarningsHandler;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml;
|
||||
package org.opensearch.test.rest.yaml;
|
||||
|
||||
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml;
|
||||
package org.opensearch.test.rest.yaml;
|
||||
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.opensearch.Version;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml;
|
||||
package org.opensearch.test.rest.yaml;
|
||||
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.opensearch.common.xcontent.XContentBuilder;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml;
|
||||
package org.opensearch.test.rest.yaml;
|
||||
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml;
|
||||
package org.opensearch.test.rest.yaml;
|
||||
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
import org.opensearch.test.rest.yaml.Stash;
|
|
@ -16,13 +16,12 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml.restspec;
|
||||
package org.opensearch.test.rest.yaml.restspec;
|
||||
|
||||
import org.opensearch.common.ParsingException;
|
||||
import org.opensearch.common.xcontent.XContentParser;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
||||
import org.opensearch.test.rest.yaml.restspec.ClientYamlSuiteRestApiParser;
|
||||
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
|
|
@ -16,12 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml.restspec;
|
||||
package org.opensearch.test.rest.yaml.restspec;
|
||||
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.elasticsearch.test.rest.yaml.section.AbstractClientYamlTestFragmentParserTestCase;
|
||||
import org.opensearch.test.rest.yaml.restspec.ClientYamlSuiteRestApi;
|
||||
import org.opensearch.test.rest.yaml.restspec.ClientYamlSuiteRestApiParser;
|
||||
import org.opensearch.test.rest.yaml.section.AbstractClientYamlTestFragmentParserTestCase;
|
||||
|
||||
import java.util.Iterator;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml.restspec;
|
||||
package org.opensearch.test.rest.yaml.restspec;
|
||||
|
||||
import org.opensearch.common.util.set.Sets;
|
||||
import org.opensearch.common.xcontent.XContentParser;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.common.xcontent.NamedXContentRegistry;
|
||||
import org.opensearch.common.xcontent.XContentParser;
|
|
@ -16,16 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.rest.yaml.section.ContainsAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.GreaterThanAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.IsFalseAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.IsTrueAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.LengthAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.LessThanAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.MatchAssertion;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
|
@ -17,22 +17,12 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.ParsingException;
|
||||
import org.opensearch.common.xcontent.XContentParser;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.rest.yaml.section.ClientYamlTestSection;
|
||||
import org.opensearch.test.rest.yaml.section.DoSection;
|
||||
import org.opensearch.test.rest.yaml.section.GreaterThanAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.IsFalseAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.IsTrueAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.LengthAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.LessThanAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.MatchAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.SetSection;
|
||||
import org.opensearch.test.rest.yaml.section.SkipSection;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Map;
|
|
@ -17,24 +17,13 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.client.NodeSelector;
|
||||
import org.opensearch.common.ParsingException;
|
||||
import org.opensearch.common.xcontent.XContentLocation;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.rest.yaml.section.ApiCallSection;
|
||||
import org.opensearch.test.rest.yaml.section.ClientYamlTestSection;
|
||||
import org.opensearch.test.rest.yaml.section.ClientYamlTestSuite;
|
||||
import org.opensearch.test.rest.yaml.section.ContainsAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.DoSection;
|
||||
import org.opensearch.test.rest.yaml.section.ExecutableSection;
|
||||
import org.opensearch.test.rest.yaml.section.IsTrueAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.MatchAssertion;
|
||||
import org.opensearch.test.rest.yaml.section.SetupSection;
|
||||
import org.opensearch.test.rest.yaml.section.SkipSection;
|
||||
import org.opensearch.test.rest.yaml.section.TeardownSection;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.apache.http.HttpHost;
|
||||
import org.opensearch.Version;
|
||||
|
@ -31,8 +31,6 @@ import org.opensearch.common.xcontent.yaml.YamlXContent;
|
|||
import org.opensearch.test.rest.yaml.ClientYamlTestExecutionContext;
|
||||
import org.opensearch.test.rest.yaml.ClientYamlTestResponse;
|
||||
import org.hamcrest.MatcherAssert;
|
||||
import org.opensearch.test.rest.yaml.section.ApiCallSection;
|
||||
import org.opensearch.test.rest.yaml.section.DoSection;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.common.xcontent.XContentLocation;
|
||||
import org.opensearch.test.OpenSearchTestCase;
|
|
@ -16,11 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.common.ParsingException;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.rest.yaml.section.SetSection;
|
||||
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.is;
|
|
@ -16,13 +16,10 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.rest.yaml.section.DoSection;
|
||||
import org.opensearch.test.rest.yaml.section.SetSection;
|
||||
import org.opensearch.test.rest.yaml.section.SetupSection;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -17,13 +17,12 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.ParsingException;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.VersionUtils;
|
||||
import org.opensearch.test.rest.yaml.section.SkipSection;
|
||||
|
||||
import java.util.Collections;
|
||||
|
|
@ -17,12 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.Version;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.rest.yaml.section.DoSection;
|
||||
import org.opensearch.test.rest.yaml.section.TeardownSection;
|
||||
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.notNullValue;
|
|
@ -17,13 +17,12 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.rest.yaml.section;
|
||||
package org.opensearch.test.rest.yaml.section;
|
||||
|
||||
import org.opensearch.common.ParsingException;
|
||||
import org.opensearch.common.xcontent.yaml.YamlXContent;
|
||||
import org.opensearch.test.rest.yaml.ClientYamlTestExecutionContext;
|
||||
import org.opensearch.test.rest.yaml.Stash;
|
||||
import org.opensearch.test.rest.yaml.section.TransformAndSetSection;
|
||||
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Base64;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.test;
|
||||
package org.opensearch.test.test;
|
||||
|
||||
import org.opensearch.client.node.NodeClient;
|
||||
import org.opensearch.common.settings.Settings;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.test;
|
||||
package org.opensearch.test.test;
|
||||
|
||||
import org.apache.lucene.util.LuceneTestCase;
|
||||
import org.opensearch.client.Client;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.test;
|
||||
package org.opensearch.test.test;
|
||||
|
||||
import org.apache.logging.log4j.Level;
|
||||
import org.apache.logging.log4j.LogManager;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.test.test;
|
||||
package org.opensearch.test.test;
|
||||
|
||||
import junit.framework.AssertionFailedError;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.test;
|
||||
package org.opensearch.test.test;
|
||||
|
||||
import com.carrotsearch.randomizedtesting.annotations.Repeat;
|
||||
import org.opensearch.common.SuppressForbidden;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.test.test;
|
||||
package org.opensearch.test.test;
|
||||
|
||||
import org.opensearch.test.OpenSearchIntegTestCase;
|
||||
import org.opensearch.test.TestCluster;
|
Loading…
Reference in New Issue