-
Notifications
You must be signed in to change notification settings - Fork 61
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 <[email protected]> * fix lint and validate ci Signed-off-by: Tokesh <[email protected]> * adding version plain version of request body Signed-off-by: Tokesh <[email protected]> * hotfix lint Signed-off-by: Tokesh <[email protected]> * deleting unnecessary descriptions in sql namespace specs Signed-off-by: Tokesh <[email protected]> * adding anyOf to few parameters in SQL schemas Signed-off-by: Tokesh <[email protected]> * adding changelog changes Signed-off-by: Niyazbek Torekeldi <[email protected]> * fixing types in tests Signed-off-by: Tokesh <[email protected]> --------- Signed-off-by: Tokesh <[email protected]> Signed-off-by: Niyazbek Torekeldi <[email protected]>
- 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 |