-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* adding specs and tests for SQL Settings API Signed-off-by: Tokesh <tokesh789@gmail.com> * fix lint and validate ci Signed-off-by: Tokesh <tokesh789@gmail.com> * adding version plain version of request body Signed-off-by: Tokesh <tokesh789@gmail.com> * hotfix lint Signed-off-by: Tokesh <tokesh789@gmail.com> * deleting unnecessary descriptions in sql namespace specs Signed-off-by: Tokesh <tokesh789@gmail.com> * adding anyOf to few parameters in SQL schemas Signed-off-by: Tokesh <tokesh789@gmail.com> * adding changelog changes Signed-off-by: Niyazbek Torekeldi <78027392+Tokesh@users.noreply.github.com> * fixing types in tests Signed-off-by: Tokesh <tokesh789@gmail.com> --------- Signed-off-by: Tokesh <tokesh789@gmail.com> Signed-off-by: Niyazbek Torekeldi <78027392+Tokesh@users.noreply.github.com>
- Loading branch information
Showing
6 changed files
with
160 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
$schema: ../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test updating SQL settings in OS cluster. | ||
|
||
chapters: | ||
- synopsis: Update SQL settings. | ||
path: /_plugins/_query/settings | ||
method: PUT | ||
request_body: | ||
payload: | ||
transient: | ||
plugins: | ||
sql: | ||
enabled: true | ||
slowlog: '2' | ||
cursor: | ||
keep_alive: 1m | ||
ppl: | ||
enabled: true | ||
query: | ||
memory_limit: '80%' | ||
size_limit: 200 | ||
response: | ||
status: 200 | ||
- synopsis: Update SQL settings with plain request body. | ||
path: /_plugins/_query/settings | ||
method: PUT | ||
request_body: | ||
payload: | ||
transient: | ||
plugins.sql.enabled: true | ||
plugins.ppl.enabled: true | ||
plugins.sql.slowlog: 2 | ||
plugins.sql.cursor.keep_alive: 1m | ||
plugins.query.memory_limit: '80%' | ||
plugins.query.size_limit: 200 | ||
response: | ||
status: 200 |