Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 21 for ObjectNode (0.06 seconds)

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

                JsonNode arrayEntry = skipParentIt.next();
                if (arrayEntry.isObject()) {
                    ObjectNode skipCandidate = (ObjectNode) arrayEntry;
                    if (skipCandidate.get("skip") != null) {
                        ObjectNode skipNode = (ObjectNode) skipCandidate.get("skip");
                        foundSkipNode = true;
                        JsonNode featuresNode = skipNode.get("features");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5.8K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/headers/InjectHeaders.java

        }
    
        @Override
        public void transformTest(ObjectNode doNodeParent) {
            ObjectNode doNodeValue = (ObjectNode) doNodeParent.get(getKeyToFind());
    
            if (shouldApplyHeaders(doNodeValue)) {
                ObjectNode headersNode = (ObjectNode) doNodeValue.get("headers");
                if (headersNode == null) {
                    headersNode = new ObjectNode(jsonNodeFactory);
                }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Wed Jul 07 15:48:06 GMT 2021
    - 3K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransformer.java

         * @param transformations The set of transformations to perform against the test
         * @return the transformed tests
         */
        public List<ObjectNode> transformRestTests(LinkedList<ObjectNode> tests, List<RestTestTransform<?>> transformations) {
            ObjectNode setupSection = null;
            ObjectNode teardownSection = null;
    
            // Collect any global setup transformations
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 12 17:42:01 GMT 2021
    - 8.1K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/skip/Skip.java

            while (skipParentIt.hasNext()) {
                JsonNode arrayEntry = skipParentIt.next();
                if (arrayEntry.isObject()) {
                    ObjectNode skipCandidate = (ObjectNode) arrayEntry;
                    if (skipCandidate.get("skip") != null) {
                        ObjectNode skipNode = (ObjectNode) skipCandidate.get("skip");
                        skipNode.replace("version", TextNode.valueOf("all"));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 4K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/ReplaceValueInMatch.java

        }
    
        @Override
        @Internal
        public String getKeyToFind() {
            return "match";
        }
    
        @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: Tue Jun 01 09:19:30 GMT 2021
    - 1.5K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/AddMatch.java

            return testContext.getTestName().equals(testName);
        }
    
        @Override
        public void transformTest(ArrayNode matchParent) {
            ObjectNode matchObject = new ObjectNode(jsonNodeFactory);
            ObjectNode matchContent = new ObjectNode(jsonNodeFactory);
            matchContent.set(matchKey, matchValue);
            matchObject.set("match", matchContent);
            matchParent.add(matchObject);
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.5K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransformGlobalTeardown.java

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

        public boolean shouldApply(RestTestContext testContext) {
            return testName == null || testContext.getTestName().equals(testName);
        }
    
        @Override
        public void transformTest(ObjectNode matchParent) {
            ObjectNode matchObject = (ObjectNode) matchParent.get(getKeyToFind());
            matchObject.remove(removeKey);
        }
    
        @Input
        public String getRemoveKey() {
            return removeKey;
        }
    
        @Input
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransformByParentObject.java

    import com.fasterxml.jackson.databind.JsonNode;
    import com.fasterxml.jackson.databind.node.ObjectNode;
    
    /**
     * A type of {@link RestTestTransform} that finds the transformation by a given key in to an {@link ObjectNode}.
     */
    public interface RestTestTransformByParentObject extends RestTestTransform<ObjectNode> {
    
        /**
         * @return The name of key to find in the REST test
         */
        String getKeyToFind();
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.3K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/warnings/InjectWarnings.java

            this.testName = Objects.requireNonNull(testName, "inject warnings is only supported for named tests");
        }
    
        @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: Tue Jun 01 09:19:30 GMT 2021
    - 3K bytes
    - Click Count (0)
Back to Top