Class ClientYamlTestSuite
- java.lang.Object
-
- org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
-
public class ClientYamlTestSuite extends java.lang.ObjectHolds 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.StringgetApi()java.lang.StringgetName()java.lang.StringgetPath()SetupSectiongetSetupSection()TeardownSectiongetTeardownSection()java.util.List<ClientYamlTestSection>getTestSections()static ClientYamlTestSuiteparse(java.lang.String api, java.lang.String suiteName, XContentParser parser)static ClientYamlTestSuiteparse(NamedXContentRegistry executeableSectionRegistry, java.lang.String api, java.nio.file.Path file)voidvalidate()
-
-
-
Method Detail
-
parse
public static ClientYamlTestSuite parse(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, 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
public SetupSection getSetupSection()
-
getTeardownSection
public TeardownSection getTeardownSection()
-
validate
public void validate()
-
getTestSections
public java.util.List<ClientYamlTestSection> getTestSections()
-
-