Class ClientYamlTestSuite
java.lang.Object
org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
public class ClientYamlTestSuite
extends java.lang.Object
Holds a REST test suite loaded from a specific yaml file.
Supports a setup section and multiple test sections.
-
Method Summary
Modifier and Type Method Description java.lang.String
getApi()
java.lang.String
getName()
java.lang.String
getPath()
SetupSection
getSetupSection()
TeardownSection
getTeardownSection()
java.util.List<ClientYamlTestSection>
getTestSections()
static ClientYamlTestSuite
parse(java.lang.String api, java.lang.String suiteName, org.elasticsearch.common.xcontent.XContentParser parser)
static ClientYamlTestSuite
parse(org.elasticsearch.common.xcontent.NamedXContentRegistry executeableSectionRegistry, java.lang.String api, java.nio.file.Path file)
void
validate()
-
Method Details
-
parse
public static ClientYamlTestSuite parse(org.elasticsearch.common.xcontent.NamedXContentRegistry executeableSectionRegistry, java.lang.String api, java.nio.file.Path file) throws java.io.IOException- Throws:
java.io.IOException
-
parse
public static ClientYamlTestSuite parse(java.lang.String api, java.lang.String suiteName, org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
getApi
public java.lang.String getApi() -
getName
public java.lang.String getName() -
getPath
public java.lang.String getPath() -
getSetupSection
-
getTeardownSection
-
validate
public void validate() -
getTestSections
-