Browse Source

[TEST] Changed the possessive matching syntax in cat.recovery
regex to use an independent subexpression. Possessive
modifiers not supported on older Perl

Clinton Gormley 11 years ago
parent
commit
a7362d9ac7
1 changed files with 3 additions and 2 deletions
  1. 3 2
      rest-api-spec/test/cat.recovery/10_basic.yaml

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

@@ -24,7 +24,8 @@
   - match:
   - match:
       $body: |
       $body: |
               /^
               /^
-              ( index1      \s+
+              (?>
+                index1      \s+
                 \d          \s+                                 # shard
                 \d          \s+                                 # shard
                 \d+         \s+                                 # time
                 \d+         \s+                                 # time
                 (gateway|replica|snapshot|relocating)     \s+   # type
                 (gateway|replica|snapshot|relocating)     \s+   # type
@@ -38,5 +39,5 @@
                 \d+         \s+                                 # bytes
                 \d+         \s+                                 # bytes
                 \d+\.\d+%    \s+                                # bytes_percent
                 \d+\.\d+%    \s+                                # bytes_percent
                 \n
                 \n
-              )++
+              )+
               $/
               $/