Browse Source

[TEST] Fix cat.recovery/10_basic.yaml to allow '-' in the hostname

Simon Willnauer 11 years ago
parent
commit
bea0dd7c75
1 changed files with 10 additions and 2 deletions
  1. 10 2
      rest-api-spec/test/cat.recovery/10_basic.yaml

+ 10 - 2
rest-api-spec/test/cat.recovery/10_basic.yaml

@@ -1,7 +1,7 @@
 ---
 setup:
   - skip:
-      features: disabled
+      features: regex 
 
 ---
 "Test cat recovery output":
@@ -27,5 +27,13 @@ setup:
       cat.recovery: {}
   - match:
       $body: >
-              /^(index1\s+\d+\s+\d+\s+(gateway|replica|snapshot|relocating)\s+(init|index|start|translog|finalize|done)\s+([a-zA-Z_0-9/.])+\s+([a-zA-Z_0-9/.])+\s+([a-zA-Z_0-9/.])+\s+([a-zA-Z_0-9/.])+\s+\d+\s+\d+\.\d+\%\s+\d+\s+\d+\.\d+\%\s+\n?){1,}$/
+              /^(index1 \s+ \d+ \s+ \d+ \s+
+                 (gateway|replica|snapshot|relocating) \s+
+                 (init|index|start|translog|finalize|done) \s+
+                 ([\w/.-])+ \s+ 
+                 ([\w/.-])+ \s+ 
+                 ([\w/.-])+ \s+
+                 ([\w/.-])+ \s+
+                 \d+ \s+ \d+\.\d+\% \s+ \d+ \s+ \d+\.\d+\% \s+ \n?)
+               {1,}$/