Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for removeMatch (0.07 seconds)

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

     * if/when the only key/value is removed.
     */
    public class RemoveMatch implements RestTestTransformByParentObject {
        private final String removeKey;
        private final String testName;
    
        public RemoveMatch(String removeKey) {
            this.removeKey = removeKey;
            this.testName = null;
        }
    
        public RemoveMatch(String removeKey, String testName) {
            this.removeKey = removeKey;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2K bytes
    - Click Count (0)
  2. 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 "_type"
         */
        public void removeMatch(String subKey) {
            transformations.add(new RemoveMatch(subKey));
        }
    
        /**
         * Removes the key/value of a match assertion for the given REST tests for the matching subkey.
         * For example "match":{"_type": "foo"} to "match":{}
    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)
  3. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/test/rest/YamlRestCompatTestPluginFuncTest.groovy

                  task.replaceValueInMatch("_type", "_doc")
                  task.replaceValueInMatch("_source.values", ["z", "x", "y"], "one")
                  task.removeMatch("_source.blah")
                  task.removeMatch("_source.junk", "two")
                  task.addMatch("_source.added", [name: 'jake', likes: 'cheese'], "one")
                  task.addWarning("one", "warning1", "warning2")
    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)
Back to Top