"Fossies" - the Fresh Open Source Software Archive

Member "elasticsearch-6.8.23/rest-api-spec/src/main/resources/rest-api-spec/test/snapshot.get_repository/10_basic.yml" (29 Dec 2021, 1194 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 
    4   - do:
    5       snapshot.create_repository:
    6         repository: test_repo_get_1
    7         body:
    8           type: fs
    9           settings:
   10             location: "test_repo_get_1_loc"
   11 
   12   - do:
   13       snapshot.create_repository:
   14         repository: test_repo_get_2
   15         body:
   16           type: fs
   17           settings:
   18             readonly: true
   19             location: "test_repo_get_1_loc"
   20 
   21 ---
   22 "Get all repositories":
   23   - do:
   24       snapshot.get_repository: {}
   25 
   26   - is_true: test_repo_get_1
   27   - is_true: test_repo_get_2
   28 
   29 ---
   30 "Get repository by name":
   31   - do:
   32       snapshot.get_repository:
   33         repository: test_repo_get_1
   34 
   35   - is_true: test_repo_get_1
   36   - is_false: test_repo_get_2
   37 
   38 ---
   39 "Get missing repository by name":
   40   - do:
   41       snapshot.get_repository:
   42         repository: test_repo_get_2
   43 
   44 ---
   45 "Get all repositories with local flag":
   46   - do:
   47       snapshot.get_repository:
   48         local: true
   49 
   50   - is_true: test_repo_get_1
   51   - is_true: test_repo_get_2
   52 
   53 ---
   54 "Verify created repository":
   55   - do:
   56       snapshot.verify_repository:
   57         repository: test_repo_get_1
   58 
   59   - is_true: nodes
   60 
   61   - do:
   62       snapshot.verify_repository:
   63         repository: test_repo_get_2
   64 
   65   - is_true: nodes