Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 21 for ObjectNode (0.43 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/warnings/InjectAllowedWarnings.java

            this.isRegex = isRegex;
            this.allowedWarnings = allowedWarnings;
            this.testName = testName;
        }
    
        @Override
        public void transformTest(ObjectNode doNodeParent) {
            ObjectNode doNodeValue = (ObjectNode) doNodeParent.get(getKeyToFind());
            ArrayNode arrayWarnings = (ArrayNode) doNodeValue.get(getSkipFeatureName());
            if (arrayWarnings == null) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jul 15 08:50:42 GMT 2021
    - 3.3K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/warnings/RemoveWarnings.java

        public RemoveWarnings(Set<String> warnings, String testName) {
            this.warnings = warnings;
            this.testName = testName;
        }
    
        @Override
        public void transformTest(ObjectNode doNodeParent) {
            ObjectNode doNodeValue = (ObjectNode) doNodeParent.get(getKeyToFind());
            ArrayNode arrayWarnings = (ArrayNode) doNodeValue.get("warnings");
            if (arrayWarnings == null) {
                return;
            }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Jul 15 08:50:42 GMT 2021
    - 2.9K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransformGlobalSetup.java

    import com.fasterxml.jackson.databind.node.ObjectNode;
    
    import javax.annotation.Nullable;
    
    /**
     * A type of {@link RestTestTransform} that transformations or adds a global "setup" section.
     */
    public interface RestTestTransformGlobalSetup {
    
        /**
         * @param setupNodeParent The parent of an existing "setup" ObjectNode, null otherwise. If null implementations may create choose to
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 935 bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/ReplaceKeyInMatch.java

        }
    
        @Override
        @Internal
        public String getKeyToFind() {
            return "match";
        }
    
        @Override
        public void transformTest(ObjectNode matchParent) {
            ObjectNode matchNode = (ObjectNode) matchParent.get(getKeyToFind());
            JsonNode previousValue = matchNode.get(requiredChildKey());
            matchNode.remove(requiredChildKey());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.4K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/do_/ReplaceKeyInDo.java

        }
    
        @Override
        @Internal
        public String getKeyToFind() {
            return "do";
        }
    
        @Override
        public void transformTest(ObjectNode doParent) {
            ObjectNode doNode = (ObjectNode) doParent.get(getKeyToFind());
            JsonNode previousValue = doNode.get(requiredChildKey());
            doNode.remove(requiredChildKey());
            doNode.set(getNewChildKey(), previousValue);
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.4K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/length/ReplaceKeyInLength.java

        }
    
        @Override
        @Internal
        public String getKeyToFind() {
            return "length";
        }
    
        @Override
        public void transformTest(ObjectNode lengthParent) {
            ObjectNode lengthNode = (ObjectNode) lengthParent.get(getKeyToFind());
            JsonNode previousValue = lengthNode.get(requiredChildKey());
            lengthNode.remove(requiredChildKey());
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.4K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/length/ReplaceValueInLength.java

        }
    
        @Override
        @Internal
        public String getKeyToFind() {
            return "length";
        }
    
        @Override
        public void transformTest(ObjectNode matchParent) {
            ObjectNode matchNode = (ObjectNode) matchParent.get(getKeyToFind());
            matchNode.remove(requiredChildKey());
            matchNode.set(getNewChildKey(), getReplacementNode());
        }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 14:44:05 GMT 2021
    - 1.5K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateJsonNoKeywordsTask.java

                            errors.put(file, Set.of("Expected an object, but found: " + jsonNode.getNodeType()));
                            return;
                        }
    
                        final ObjectNode rootNode = (ObjectNode) jsonNode;
    
                        if (rootNode.size() != 1) {
                            errors.put(file, Set.of("Expected an object with exactly 1 key, but found " + rootNode.size() + " keys"));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.6K bytes
    - Click Count (0)
  9. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy

        def transformTask  = ":yamlRestTestV${compatibleVersion}CompatTransform"
        def YAML_FACTORY = new YAMLFactory()
        def MAPPER = new ObjectMapper(YAML_FACTORY)
        def READER = MAPPER.readerFor(ObjectNode.class)
        def WRITER = MAPPER.writerFor(ObjectNode.class)
    
        def "yamlRestTestVxCompatTest does nothing when there are no tests"() {
            given:
            addSubProject(":distribution:bwc:minor") << """
            configurations { checkout }
    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)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/RestCompatTestTransformTask.java

            for (File file : getTestFiles().getFiles()) {
                YAMLParser yamlParser = YAML_FACTORY.createParser(file);
                List<ObjectNode> tests = READER.<ObjectNode>readValues(yamlParser).readAll();
                List<ObjectNode> transformRestTests;
                if (skippedFilesWithReason.containsKey(file)) {
                    //skip all the tests in the file
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 22.3K bytes
    - Click Count (0)
Back to Top