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 ClientYamlTestSuitestatic ClientYamlTestSuiteparse(NamedXContentRegistry xcontentRegistry, String api, Path filePath) static ClientYamlTestSuiteparse(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(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, XContentParser parser) throws IOException - Throws:
IOException
-
parse
public static ClientYamlTestSuite parse(NamedXContentRegistry xcontentRegistry, String api, Path filePath) throws IOException - Throws:
IOException
-
getApi
-
getName
-
getPath
-
getFile
-
getSetupSection
-
getTeardownSection
-
validate
public void validate() -
getTestSections
-