Skip to content
Snippets Groups Projects
Commit c701ebd5 authored by Sherman Yang's avatar Sherman Yang
Browse files

remove mapping integration tests as mapping apis are not supported

parent d0d99814
No related branches found
No related tags found
1 merge request!6Trusted ibm
package org.opengroup.osdu.step_definitions.index.mapping;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;
import org.junit.runner.RunWith;
@RunWith(Cucumber.class)
@CucumberOptions(
features = "src/test/resources/features/updateindex/UpdateIndexMapping.feature",
glue = {"classpath:org.opengroup.osdu.step_definitions/index/mapping"},
format = {"pretty", "junit:target/cucumber-reports/TEST-updateindexmapping.xml"})
public class RunTest {
}
\ No newline at end of file
package org.opengroup.osdu.step_definitions.index.mapping;
import lombok.extern.java.Log;
import org.opengroup.osdu.common.MappingSteps;
import org.opengroup.osdu.util.GCPHTTPClient;
import cucumber.api.Scenario;
import cucumber.api.java.Before;
import cucumber.api.DataTable;
import cucumber.api.java.en.Given;
import cucumber.api.java.en.Then;
import cucumber.api.java.en.When;
import java.util.stream.StreamSupport;
@Log
public class Steps extends MappingSteps {
public Steps() {
super(new GCPHTTPClient());
}
@Before
public void before(Scenario scenario) {
this.scenario = scenario;
this.httpClient = new GCPHTTPClient();
}
@Given("^the elastic search is initialized with the following data$")
public void the_elastic_search_is_initialized_with_the_following_data(DataTable dataTable) {
super.the_elastic_search_is_initialized_with_the_following_data(dataTable);
}
@When("^I update \"([^\"]*)\" in \"([^\"]*)\" ,\"([^\"]*)\" to enable multifield indexing$")
public void i_update_in_to_enable_multifield_indexing(String fieldNameVal, String index1, String index2) throws Throwable {
super.i_update_in_to_enable_multifield_indexing(fieldNameVal, index1, index2);
}
@When("^I send request to tenant \"(.*?)\"$")
public void i_send_request_to_tenant(String tenant) {
super.i_send_request_to_tenant(tenant);
}
@Then("^I should get (\\d+) response$")
public void i_should_get_response(int responseCode) throws Throwable {
super.i_should_get_response(responseCode);
}
@When("^I send \"(.*?)\" with \"(.*?)\"$")
public void i_send_with(String query, String kind) {
super.i_send_with(query, kind);
}
@When("^I send None with \"(.*?)\"$")
public void i_send_None_with(String kind) {
super.i_send_None_with(kind);
}
@When("^I want to aggregate by \"(.*?)\"$")
public void i_aggregate_by(String aggField) throws Throwable {
super.i_aggregate_by(aggField);
}
@Then("^I should get in response (\\d+) records$")
public void i_should_get_in_response_records(int resultCount) {
super.i_should_get_in_response_records(resultCount);
}
@Then("^I want to validate mapping by \"([^\"]*)\" ,\"([^\"]*)\" and \"([^\"]*)\" and \"([^\"]*)\"$")
public void i_want_to_validate_mapping(String indexOne, String indexTwo,String fieldName,String type) throws Throwable {
super.i_want_to_validate_mapping(indexOne, indexTwo, fieldName, type);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment