Browse Source

Rename update-by-query REST tests to update_by_query

Clinton Gormley 9 years ago
parent
commit
b87beeb05f

+ 2 - 2
modules/reindex/src/test/resources/rest-api-spec/test/update-by-query/60_with_ingest.yaml → modules/reindex/src/test/resources/rest-api-spec/test/update_by_query/60_with_ingest.yaml

@@ -1,5 +1,5 @@
 ---
-"Update a document using update-by-query":
+"Update a document using update_by_query":
   - do:
       ingest.put_pipeline:
         id: "test_ingest"
@@ -25,7 +25,7 @@
       indices.refresh: {}
 
   - do:
-      update-by-query:
+      update_by_query:
         index:   twitter
         refresh: true
         pipeline: test_ingest

+ 1 - 1
modules/reindex/src/test/resources/rest-api-spec/test/update-by-query/70_throttle.yaml → modules/reindex/src/test/resources/rest-api-spec/test/update_by_query/70_throttle.yaml

@@ -29,7 +29,7 @@
       indices.refresh: {}
 
   - do:
-      update-by-query:
+      update_by_query:
         index: test
         scroll_size: 1
         requests_per_second: 1

+ 6 - 6
qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update-by-query/10_script.yaml → qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update_by_query/10_script.yaml

@@ -1,5 +1,5 @@
 ---
-"Update a document using update-by-query":
+"Update a document using update_by_query":
   - do:
       index:
         index:  twitter
@@ -10,7 +10,7 @@
       indices.refresh: {}
 
   - do:
-      update-by-query:
+      update_by_query:
         index:   twitter
         refresh: true
         body:
@@ -46,7 +46,7 @@
       indices.refresh: {}
 
   - do:
-      update-by-query:
+      update_by_query:
         refresh: true
         index:   twitter
         body:
@@ -91,7 +91,7 @@
       indices.refresh: {}
 
   - do:
-      update-by-query:
+      update_by_query:
         refresh: true
         index:   twitter
         body:
@@ -114,7 +114,7 @@
 
   - do:
       catch: /Invalid fields added to ctx \[junk\]/
-      update-by-query:
+      update_by_query:
         index: twitter
         body:
           script:
@@ -133,7 +133,7 @@
 
   - do:
       catch: /Modifying \[_id\] not allowed/
-      update-by-query:
+      update_by_query:
         index: twitter
         body:
           script:

+ 1 - 1
qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update-by-query/20_broken.yaml → qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update_by_query/20_broken.yaml

@@ -11,7 +11,7 @@
 
   - do:
       catch: request
-      update-by-query:
+      update_by_query:
         index:   twitter
         refresh: true
         body:

+ 1 - 1
qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update-by-query/30_timeout.yaml → qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update_by_query/30_timeout.yaml

@@ -11,7 +11,7 @@
 
   - do:
       catch: request_timeout
-      update-by-query:
+      update_by_query:
         index:   twitter
         refresh: true
         search_timeout: 10ms

+ 1 - 1
qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update-by-query/40_search_failure.yaml → qa/smoke-test-reindex-with-groovy/src/test/resources/rest-api-spec/test/update_by_query/40_search_failure.yaml

@@ -11,7 +11,7 @@
 
   - do:
       catch: request
-      update-by-query:
+      update_by_query:
         index:   source
         body:
           query:

+ 1 - 1
rest-api-spec/src/main/resources/rest-api-spec/api/update_by_query.json

@@ -192,7 +192,7 @@
         "scroll_size": {
           "type": "integer",
           "defaut_value": 100,
-          "description": "Size on the scroll request powering the update-by-query"
+          "description": "Size on the scroll request powering the update_by_query"
         },
         "wait_for_completion": {
            "type" : "boolean",