Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 9 of 9 for yamlRestTest (0.16 seconds)

  1. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/InternalYamlRestTestPluginFuncTest.groovy

            file("/build/classes/java/yamlRestTest/MockIT.class").exists()
    
            // check that our copied specs and tests are on the yamlRestTest classpath
            result.output.contains("./build/restResources/yamlSpecs")
            result.output.contains("./build/restResources/yamlTests")
    
            when:
            result = gradleRunner("yamlRestTest").build()
    
            then:
            result.task(':yamlRestTest').outcome == TaskOutcome.SKIPPED
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 10:22:28 GMT 2021
    - 3.1K bytes
    - Click Count (0)
  2. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/fixtures/AbstractRestResourcesFuncTest.groovy

              restTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test"))
            }
            """
    
            addSubProject(":x-pack:plugin") << """
            configurations { restXpackSpecs\nrestXpackTests }
            artifacts {
              restXpackTests(new File(projectDir, "src/yamlRestTest/resources/rest-api-spec/test"))
            }
            """
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 07:24:59 GMT 2021
    - 2.1K bytes
    - Click Count (0)
  3. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy

            addRestTestsToProject([additionalTest], "yamlRestCompatTest")
            //intentionally adding to yamlRestTest source set since the .classes are copied from there
            file("src/yamlRestTest/java/MockIT.java") << "import org.junit.Test;class MockIT { @Test public void doNothing() { }}"
    
            String api = "foo.json"
            String test = "10_basic.yml"
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 16.4K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/InternalYamlRestTestPlugin.java

    /**
     * Apply this plugin to run the YAML based REST tests.
     */
    public class InternalYamlRestTestPlugin implements Plugin<Project> {
    
        public static final String SOURCE_SET_NAME = "yamlRestTest";
    
        @Override
        public void apply(Project project) {
            project.getPluginManager().apply(RestTestBasePlugin.class);
            project.getPluginManager().apply(RestResourcesPlugin.class);
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 16:04:42 GMT 2021
    - 2.8K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/RestResourcesPlugin.java

     * Rest API specification.
     * <p>
     * Additionally you can specify which sourceSetName resources should be copied to. The default is the yamlRestTest source set.
     *
     * @see CopyRestApiTask
     * @see CopyRestTestsTask
     */
    public class RestResourcesPlugin implements Plugin<Project> {
    
        public static final String COPY_YAML_TESTS_TASK = "copyYamlTestsTask";
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Jun 23 09:36:58 GMT 2021
    - 6.4K bytes
    - Click Count (0)
  6. build-tools-internal/build.gradle

        }
        yamlRestCompatTest {
          id = 'elasticsearch.yaml-rest-compat-test'
          implementationClass = 'org.elasticsearch.gradle.internal.rest.compat.YamlRestCompatTestPlugin'
        }
        yamlRestTest {
          id = 'elasticsearch.internal-yaml-rest-test'
          implementationClass = 'org.elasticsearch.gradle.internal.test.rest.InternalYamlRestTestPlugin'
        }
      }
    }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 13 18:10:22 GMT 2021
    - 11.3K bytes
    - Click Count (0)
  7. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/RestResourcesPluginFuncTest.groovy

            setupRestResources([apiCore1, apiCore2, apiXpack], [coreTest], [xpackTest])
    
            // drop a value to replace from expansions above into a test file
            file("rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/" + coreTest) << "@replacedValue@"
    
            // intentionally not adding tests to project, they will be copied over via the plugin
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jul 20 21:05:16 GMT 2021
    - 7K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/YamlRestCompatTestPlugin.java

        private static final Path RELATIVE_REST_XPACK_RESOURCES = Path.of("x-pack/plugin/src/test/resources");
        private static final Path RELATIVE_REST_PROJECT_RESOURCES = Path.of("src/yamlRestTest/resources");
        public static final String BWC_MINOR_CONFIG_NAME = "bwcMinor";
    
        @Override
        public void apply(Project project) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Fri Sep 03 16:26:11 GMT 2021
    - 11.7K bytes
    - Click Count (0)
  9. TESTING.asciidoc

    the elasticsearch official clients. The YAML based tests describe the
    operations to be executed and the obtained results that need to be tested.
    
    The YAML tests support various operators defined in the link:/rest-api-spec/src/yamlRestTest/resources/rest-api-spec/test/README.asciidoc[rest-api-spec] and adhere to the link:/rest-api-spec/README.markdown[Elasticsearch REST API JSON specification]
    In order to run the YAML tests, the relevant API specification needs
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jun 07 13:55:20 GMT 2021
    - 32.5K bytes
    - Click Count (0)
Back to Top