- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for replaceValueInLength (0.08 seconds)
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/length/ReplaceValueInLength.java
* For example, change from "length":{"index._doc": 1} to "length":{"index._doc": 2} */ public class ReplaceValueInLength extends ReplaceByKey { public ReplaceValueInLength(String replaceKey, NumericNode replacementNode) { this(replaceKey, replacementNode, null); } public ReplaceValueInLength(String replaceKey, NumericNode replacementNode, String testName) {
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) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/rest/compat/RestCompatTestTransformTask.java
* @param subKey the key name directly under match to replace. For example "x" * @param value the value used in the replacement. For example 99 */ public void replaceValueInLength(String subKey, int value) { transformations.add(new ReplaceValueInLength(subKey, MAPPER.convertValue(value, NumericNode.class))); } /** * Replaces all the values of a length assertion for the given REST test.
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) -
build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy
task.replaceKeyInMatch("match_.some.key_to_replace", "match_.some.key_that_was_replaced") task.replaceKeyInLength("key.in_length_to_replace", "key.in_length_that_was_replaced") task.replaceValueInLength("value_to_replace", 99, "one") task.replaceValueTextByKeyValue("keyvalue", "toreplace", "replacedkeyvalue") task.replaceValueTextByKeyValue("index", "test", "test2", "two") })
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)