"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/cat.count/10_basic.yml" (29 Dec 2021, 1405 Bytes) of package /linux/www/elasticsearch-6.8.23-src.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ansible YAML source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 ---
    2 "Test cat count help":
    3   - do:
    4       cat.count:
    5         help: true
    6 
    7   - match:
    8       $body: |
    9                /^  epoch      .+   \n
   10                    timestamp  .+   \n
   11                    count      .+   \n  $/
   12 
   13 ---
   14 "Test cat count output":
   15 
   16   - do:
   17       cat.count: {}
   18 
   19   - match:
   20       $body: |
   21                /# epoch     timestamp              count
   22                ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  0  \n$/
   23 
   24   - do:
   25       index:
   26         index:  index1
   27         type:   type1
   28         id:     1
   29         body:   { foo: bar }
   30         refresh: true
   31 
   32   - do:
   33       cat.count: {}
   34 
   35   - match:
   36       $body: |
   37                /# epoch     timestamp              count
   38                ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  1  \n  $/
   39 
   40   - do:
   41       index:
   42         index:  index2
   43         type:   type2
   44         id:     1
   45         body:   { foo: bar }
   46         refresh: true
   47 
   48   - do:
   49       cat.count:
   50         h: count
   51 
   52   - match:
   53       $body: |
   54                /# count
   55                ^  2     \n  $/
   56 
   57 
   58   - do:
   59       cat.count:
   60         index: index1
   61 
   62   - match:
   63       $body: |
   64                /# epoch     timestamp              count
   65                ^  \d+   \s  \d{2}:\d{2}:\d{2}  \s  1  \n  $/
   66 
   67   - do:
   68       cat.count:
   69         index: index2
   70         v: true
   71 
   72   - match:
   73       $body: |
   74                /^  epoch  \s+  timestamp          \s+  count  \n
   75                    \d+    \s+  \d{2}:\d{2}:\d{2}  \s+  \d+ \n  $/