"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/indices.open/10_basic.yml" (29 Dec 2021, 1148 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 "Basic test for index open/close":
    3   - skip:
    4       version: " - 5.99.99"
    5       reason:  status code  on closed indices changed in 6.0.0 from 403 to 400
    6 
    7   - do:
    8       indices.create:
    9         index: test_index
   10         body:
   11           settings:
   12             number_of_replicas: 0
   13 
   14   - do:
   15       cluster.health:
   16         wait_for_status: green
   17 
   18   - do:
   19       indices.close:
   20         index: test_index
   21 
   22   - do:
   23       catch: bad_request
   24       search:
   25         index: test_index
   26 
   27   - do:
   28       indices.open:
   29         index: test_index
   30 
   31   - do:
   32       cluster.health:
   33         wait_for_status: green
   34 
   35   - do:
   36       search:
   37         index: test_index
   38 
   39 ---
   40 "Open index with wait_for_active_shards set to all":
   41   - skip:
   42       version: " - 6.0.99"
   43       reason: wait_for_active_shards parameter was added in 6.1.0
   44 
   45   - do:
   46       indices.create:
   47         index: test_index
   48         body:
   49           settings:
   50             number_of_replicas: 0
   51 
   52   - do:
   53       indices.close:
   54         index: test_index
   55 
   56   - do:
   57       indices.open:
   58         index: test_index
   59         wait_for_active_shards: all
   60 
   61   - match: { acknowledged: true }
   62   - match: { shards_acknowledged: true }