Class ClientYamlTestSuite
java.lang.Object
org.opensearch.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.
-
Constructor Summary
Constructors Constructor Description ClientYamlTestSuite(java.lang.String api, java.lang.String name, SetupSection setupSection, TeardownSection teardownSection, java.util.List<ClientYamlTestSection> testSections) -
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, org.opensearch.common.xcontent.XContentParser parser)static ClientYamlTestSuiteparse(org.opensearch.common.xcontent.NamedXContentRegistry executeableSectionRegistry, java.lang.String api, java.nio.file.Path file)voidvalidate()
-
Constructor Details
-
ClientYamlTestSuite
public ClientYamlTestSuite(java.lang.String api, java.lang.String name, SetupSection setupSection, TeardownSection teardownSection, java.util.List<ClientYamlTestSection> testSections)
-
-
Method Details
-
parse
public static ClientYamlTestSuite parse(org.opensearch.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.opensearch.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
-