"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/indices.shard_stores/10_basic.yml" (29 Dec 2021, 1635 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 "no indices test":
    3   - do:
    4       indices.shard_stores:
    5         allow_no_indices: true
    6 
    7   - match:   { indices: {}}
    8 
    9   - do:
   10       catch: missing
   11       indices.shard_stores:
   12         allow_no_indices: false
   13 
   14 ---
   15 "basic index test":
   16 
   17   - do:
   18       indices.create:
   19         index: index1
   20         body:
   21           settings:
   22             number_of_shards: "1"
   23             number_of_replicas: "0"
   24   - do:
   25       index:
   26         index: index1
   27         type: type
   28         body: { foo: bar }
   29         refresh: true
   30 
   31   - do:
   32        cluster.health:
   33          wait_for_status: green
   34 
   35   - do:
   36       indices.shard_stores:
   37           index: index1
   38           status: "green"
   39 
   40   - match:   { indices.index1.shards.0.stores.0.allocation: "primary" }
   41 
   42 ---
   43 "multiple indices test":
   44 
   45   - do:
   46       indices.create:
   47         index: index1
   48         body:
   49           settings:
   50             number_of_shards: "1"
   51             number_of_replicas: "0"
   52   - do:
   53       indices.create:
   54         index: index2
   55         body:
   56           settings:
   57             number_of_shards: "2"
   58             number_of_replicas: "0"
   59   - do:
   60       index:
   61         index: index1
   62         type: type
   63         body: { foo: bar }
   64         refresh: true
   65   - do:
   66       index:
   67         index: index2
   68         type: type
   69         body: { foo: bar }
   70         refresh: true
   71   - do:
   72        cluster.health:
   73          wait_for_status: green
   74 
   75   - do:
   76       indices.shard_stores:
   77           status: "green"
   78 
   79   - match:   { indices.index1.shards.0.stores.0.allocation: "primary" }
   80   - match:   { indices.index2.shards.0.stores.0.allocation: "primary" }
   81   - match:   { indices.index2.shards.1.stores.0.allocation: "primary" }
   82