Răsfoiți Sursa

Wraps values containing : in runtime_fields test in quotes (#63660)

Fernando Briano 5 ani în urmă
părinte
comite
ca71ee3589

+ 3 - 3
x-pack/plugin/src/test/resources/rest-api-spec/test/runtime_fields/10_keyword.yml

@@ -166,7 +166,7 @@ setup:
             term:
               day_of_week: Monday
   - match: {hits.hits.0._explanation.value: 1.0}
-  - match: {hits.hits.0._explanation.description: day_of_week:Monday}
+  - match: {hits.hits.0._explanation.description: "day_of_week:Monday"}
   - match: {hits.hits.0._explanation.details.0.value: 1.0}
   - match: {hits.hits.0._explanation.details.0.description: 'boost * runtime_field_score'}
   - match: {hits.hits.0._explanation.details.0.details.0.value: 1.0}
@@ -187,7 +187,7 @@ setup:
                 value: Monday
                 boost: 7
   - match: {hits.hits.0._explanation.value: 7.0}
-  - match: {hits.hits.0._explanation.description: day_of_week:Monday^7.0}
+  - match: {hits.hits.0._explanation.description: "day_of_week:Monday^7.0"}
   - match: {hits.hits.0._explanation.details.0.value: 7.0}
   - match: {hits.hits.0._explanation.details.0.description: 'boost * runtime_field_score'}
   - match: {hits.hits.0._explanation.details.0.details.0.value: 7.0}
@@ -216,7 +216,7 @@ setup:
   - match: {hits.hits.0._explanation.details.0.value: 7.0}
   - match: {hits.hits.0._explanation.details.0.description: '_score: '}
   - match: {hits.hits.0._explanation.details.0.details.0.value: 7.0}
-  - match: {hits.hits.0._explanation.details.0.details.0.description: day_of_week:Monday^7.0}
+  - match: {hits.hits.0._explanation.details.0.details.0.description: "day_of_week:Monday^7.0"}
   - match: {hits.hits.0._explanation.details.0.details.0.details.0.value: 7.0}
   - match: {hits.hits.0._explanation.details.0.details.0.details.0.description: 'boost * runtime_field_score'}
   - match: {hits.hits.0._explanation.details.0.details.0.details.0.details.0.value: 7.0}

+ 1 - 1
x-pack/plugin/src/test/resources/rest-api-spec/test/runtime_fields/30_double.yml

@@ -206,7 +206,7 @@ setup:
             term:
               voltage_percent: 1.0
   - match: {hits.hits.0._explanation.value: 1.0}
-  - match: {hits.hits.0._explanation.description: voltage_percent:1.0}
+  - match: {hits.hits.0._explanation.description: "voltage_percent:1.0"}
   - match: {hits.hits.0._explanation.details.0.value: 1.0}
   - match: {hits.hits.0._explanation.details.0.description: 'boost * runtime_field_score'}
   - match: {hits.hits.0._explanation.details.0.details.0.value: 1.0}

+ 1 - 1
x-pack/plugin/src/test/resources/rest-api-spec/test/runtime_fields/40_date.yml

@@ -195,7 +195,7 @@ setup:
             term:
               tomorrow: 2018-01-19T17:41:34Z
   - match: {hits.hits.0._explanation.value: 1.0}
-  - match: {hits.hits.0._explanation.description: tomorrow:1516383694000}
+  - match: {hits.hits.0._explanation.description: "tomorrow:1516383694000"}
   - match: {hits.hits.0._explanation.details.0.value: 1.0}
   - match: {hits.hits.0._explanation.details.0.description: 'boost * runtime_field_score'}
   - match: {hits.hits.0._explanation.details.0.details.0.value: 1.0}

+ 1 - 1
x-pack/plugin/src/test/resources/rest-api-spec/test/runtime_fields/50_ip.yml

@@ -171,7 +171,7 @@ setup:
             term:
               ip: 252.0.0.0
   - match: {hits.hits.0._explanation.value: 1.0}
-  - match: {hits.hits.0._explanation.description: ip:252.0.0.0}
+  - match: {hits.hits.0._explanation.description: "ip:252.0.0.0"}
   - match: {hits.hits.0._explanation.details.0.value: 1.0}
   - match: {hits.hits.0._explanation.details.0.description: 'boost * runtime_field_score'}
   - match: {hits.hits.0._explanation.details.0.details.0.value: 1.0}

+ 1 - 1
x-pack/plugin/src/test/resources/rest-api-spec/test/runtime_fields/60_boolean.yml

@@ -147,7 +147,7 @@ setup:
             term:
               over_v: true
   - match: {hits.hits.0._explanation.value: 1.0}
-  - match: {hits.hits.0._explanation.description: over_v:true}
+  - match: {hits.hits.0._explanation.description: "over_v:true"}
   - match: {hits.hits.0._explanation.details.0.value: 1.0}
   - match: {hits.hits.0._explanation.details.0.description: 'boost * runtime_field_score'}
   - match: {hits.hits.0._explanation.details.0.details.0.value: 1.0}