Class ClientYamlTestSuite
java.lang.Object
org.elasticsearch.test.rest.yaml.section.ClientYamlTestSuite
Holds a REST test suite loaded from a specific yaml file.
Supports a setup section and multiple test sections.
-
Constructor Summary
ConstructorsConstructorDescriptionClientYamlTestSuite(String api, String name, Optional<Path> file, SetupSection setupSection, TeardownSection teardownSection, List<ClientYamlTestSection> testSections) -
Method Summary
Modifier and TypeMethodDescriptiongetApi()getFile()getName()getPath()static ClientYamlTestSuiteparse(String api, String suiteName, Optional<Path> file, org.elasticsearch.xcontent.XContentParser parser) static ClientYamlTestSuitestatic ClientYamlTestSuiteparse(org.elasticsearch.xcontent.NamedXContentRegistry executeableSectionRegistry, String api, Path file, Map<String, ?> params) voidvalidate()
-
Constructor Details
-
ClientYamlTestSuite
public ClientYamlTestSuite(String api, String name, Optional<Path> file, SetupSection setupSection, TeardownSection teardownSection, List<ClientYamlTestSection> testSections)
-
-
Method Details
-
parse
public static ClientYamlTestSuite parse(org.elasticsearch.xcontent.NamedXContentRegistry executeableSectionRegistry, String api, Path file, Map<String, ?> params) throws IOException- Throws:
IOException
-
parse
public static ClientYamlTestSuite parse(String api, String suiteName, Optional<Path> file, org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
parse
public static ClientYamlTestSuite parse(org.elasticsearch.xcontent.NamedXContentRegistry xcontentRegistry, String api, Path filePath) throws IOException - Throws:
IOException
-
getApi
-
getName
-
getPath
-
getFile
-
getSetupSection
-
getTeardownSection
-
validate
public void validate() -
getTestSections
-