"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/indices.refresh/10_basic.yml" (29 Dec 2021, 1021 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 setup:
    3   - do:
    4       indices.create:
    5         index:  test_1
    6         body:
    7           settings:
    8             index:
    9               number_of_replicas: 0
   10               number_of_shards: 5
   11 
   12   - do:
   13       indices.create:
   14         index:  test_2
   15         body:
   16           settings:
   17             index:
   18               number_of_replicas: 0
   19               number_of_shards: 5
   20 
   21   - do:
   22       cluster.health:
   23         wait_for_status: green
   24 
   25 ---
   26 "Indices refresh test _all":
   27 
   28   - do:
   29       indices.refresh:
   30         index: [_all]
   31 
   32   - match: { _shards.total: 10 }
   33   - match: { _shards.successful: 10 }
   34   - match: { _shards.failed: 0 }
   35 
   36 ---
   37 "Indices refresh test empty array":
   38 
   39 
   40   - do:
   41       indices.refresh:
   42         index: []
   43 
   44   - match: { _shards.total: 10 }
   45   - match: { _shards.successful: 10 }
   46   - match: { _shards.failed: 0 }
   47 
   48 ---
   49 "Indices refresh test no-match wildcard":
   50 
   51   - do:
   52       indices.refresh:
   53         index: [bla*]
   54 
   55   - match: { _shards.total: 0 }
   56   - match: { _shards.successful: 0 }
   57   - match: { _shards.failed: 0 }
   58