rest-api-spec.test.cat.repositories.10_basic.yml Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rest-api-spec Show documentation
Show all versions of rest-api-spec Show documentation
OpenSearch subproject :rest-api-spec
---
"Help":
- do:
cat.repositories:
help: true
- match:
$body: |
/^ id .+ \n
type .+ \n
$/
---
"Test cat repositories output":
- do:
cat.repositories: {}
- match:
$body: |
/^$/
- do:
snapshot.create_repository:
repository: test_cat_repo_1
body:
type: fs
settings:
location: "test_cat_repo_1_loc"
- do:
snapshot.create_repository:
repository: test_cat_repo_2
body:
type: fs
settings:
location: "test_cat_repo_2_loc"
- do:
cat.repositories: {}
- match:
$body: |
/^ test_cat_repo_1\s+ fs\s*\n
test_cat_repo_2\s+ fs\s*\n
$/
---
"Test cat repositories sort":
- do:
snapshot.create_repository:
repository: test_cat_repo_1
body:
type: fs
settings:
location: "test_cat_repo_1_loc"
- do:
snapshot.create_repository:
repository: test_cat_repo_2
body:
type: fs
settings:
location: "test_cat_repo_2_loc"
- do:
cat.repositories:
s: [type, id]
- match:
$body: |
/^ test_cat_repo_1 \s+ fs \n
test_cat_repo_2 \s+ fs \n
$/
- do:
cat.repositories:
s: [type, "id:desc"]
- match:
$body: |
/^ test_cat_repo_2 \s+ fs \n
test_cat_repo_1 \s+ fs \n
$/
© 2015 - 2024 Weber Informatics LLC | Privacy Policy