"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/cat.repositories/10_basic.yml" (29 Dec 2021, 1655 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 "Help":
    3   - do:
    4       cat.repositories:
    5         help: true
    6 
    7   - match:
    8       $body: |
    9                /^  id   .+ \n
   10                    type .+ \n
   11                $/
   12 ---
   13 "Test cat repositories output":
   14 
   15   - do:
   16       cat.repositories: {}
   17 
   18   - match:
   19       $body: |
   20                /^$/
   21 
   22   - do:
   23       snapshot.create_repository:
   24         repository: test_cat_repo_1
   25         body:
   26           type: fs
   27           settings:
   28             location: "test_cat_repo_1_loc"
   29 
   30   - do:
   31       snapshot.create_repository:
   32         repository: test_cat_repo_2
   33         body:
   34           type: fs
   35           settings:
   36             location: "test_cat_repo_2_loc"
   37 
   38   - do:
   39       cat.repositories: {}
   40 
   41   - match:
   42       $body: |
   43                /^   test_cat_repo_1\s+ fs\s*\n
   44                     test_cat_repo_2\s+ fs\s*\n
   45                $/
   46 
   47 ---
   48 "Test cat repositories sort":
   49   - skip:
   50       version: " - 5.0.99"
   51       reason:  sorting was introduced in 5.1.0
   52   - do:
   53       snapshot.create_repository:
   54         repository: test_cat_repo_1
   55         body:
   56           type: fs
   57           settings:
   58             location: "test_cat_repo_1_loc"
   59 
   60   - do:
   61       snapshot.create_repository:
   62         repository: test_cat_repo_2
   63         body:
   64           type: fs
   65           settings:
   66             location: "test_cat_repo_2_loc"
   67 
   68   - do:
   69       cat.repositories:
   70         s: [type, id]
   71 
   72   - match:
   73       $body: |
   74              /^ test_cat_repo_1 \s+ fs \n
   75                 test_cat_repo_2 \s+ fs \n
   76              $/
   77 
   78   - do:
   79       cat.repositories:
   80         s: [type, "id:desc"]
   81 
   82   - match:
   83       $body: |
   84              /^ test_cat_repo_2 \s+ fs \n
   85                 test_cat_repo_1 \s+ fs \n
   86              $/