Jelajahi Sumber

[TEST] Rest API: cat.count regexp matchers now explicitely test for newline

Spencer Alger 11 tahun lalu
induk
melakukan
a848b658e8
1 mengubah file dengan 4 tambahan dan 4 penghapusan
  1. 4 4
      rest-api-spec/test/cat.count/10_basic.yaml

+ 4 - 4
rest-api-spec/test/cat.count/10_basic.yaml

@@ -19,7 +19,7 @@
   - match:
       $body: |
                /# epoch     timestamp              count
-               ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  0     \s  $/
+               ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  0     \s+  \n  $/
 
   - do:
       index:
@@ -35,7 +35,7 @@
   - match:
       $body: |
                /# epoch     timestamp              count
-               ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  1     \s  $/
+               ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  1     \s+  \n  $/
 
   - do:
       index:
@@ -52,7 +52,7 @@
   - match:
       $body: |
                /# count
-               ^  2     \s  $/
+               ^  2     \s+  \n  $/
 
 
   - do:
@@ -62,7 +62,7 @@
   - match:
       $body: |
                /# epoch     timestamp              count
-               ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  1  \s  $/
+               ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  1  \s+  \n  $/
 
   - do:
       cat.count: