- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 16 for transformTest (0.49 seconds)
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/length/ReplaceKeyInLength.java
super(replaceKey, newKeyName, null, testName); } @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) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/AddMatch.java
} @Override public boolean shouldApply(RestTestContext testContext) { 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);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) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/text/ReplaceTextual.java
} @Override public boolean shouldApply(RestTestContext testContext) { return testName == null || testContext.getTestName().equals(testName); } @Override public void transformTest(ObjectNode matchParent) { matchParent.set(getKeyToFind(), replacementNode); } @Input public String getValueToBeReplaced() { return valueToBeReplaced; } @InputCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jul 27 10:37:15 GMT 2021 - 2.6K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/ReplaceValueInMatch.java
super(replaceKey, replaceKey, replacementNode, testName); } @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) -
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) {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) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransform.java
* Implementations are expected to mutate the parent to satisfy the transformation. * * @param parent The parent of the node to transform. */ void transformTest(T parent); /** * @return true if the transformation should be applied, false otherwise. */ default boolean shouldApply(RestTestContext testContext) { return true; }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 1.2K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/ReplaceByKey.java
* This class can be subclass to transform the * "getKeyToFind": {"requiredChildKey": "foo"} * into * "getKeyToFind": {"newChildKey": "getReplacementNode"} * a getKeyToFind and transformTest would have to be implemented in a subclass */ public abstract class ReplaceByKey implements RestTestTransformByParentObject { private final String requiredChildKey; private final String newChildKey;
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2.2K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/ReplaceKeyInMatch.java
super(replaceKey, newKeyName, null, testName); } @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) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/do_/ReplaceKeyInDo.java
super(replaceKey, newKeyName, null, testName); } @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());
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) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/RemoveMatch.java
} @Override 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() {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 2K bytes - Click Count (0)