- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for ReplaceKeyInLength (0.27 seconds)
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/length/ReplaceKeyInLength.java
/** * A transformation to replace the key in a length assertion. * For example, change from "length":{"index._type": 1} to "length":{"index._doc": 1} */ public class ReplaceKeyInLength extends ReplaceByKey { public ReplaceKeyInLength(String replaceKey, String newKeyName, String testName) { super(replaceKey, newKeyName, null, testName); } @Override @Internal public String getKeyToFind() {
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/rest/compat/RestCompatTestTransformTask.java
* @param oldKeyName the key name directly under length to replace. * @param newKeyName the new key name directly under length. * @see ReplaceKeyInLength */ public void replaceKeyInLength(String oldKeyName, String newKeyName) { transformations.add(new ReplaceKeyInLength(oldKeyName, newKeyName, null)); } /** * Replaces all the values of a length assertion for all project REST tests.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")
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)