Skip to content

Commit

Permalink
Added missing wlm tests.
Browse files Browse the repository at this point in the history
Signed-off-by: dblock <[email protected]>
  • Loading branch information
dblock committed Dec 17, 2024
1 parent 5149b66 commit 494b6fa
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 67 deletions.
67 changes: 0 additions & 67 deletions tests/plugins/workload-management/query_group.yaml

This file was deleted.

41 changes: 41 additions & 0 deletions tests/plugins/workload-management/wlm/query_group.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
$schema: ../../../../json_schemas/test_story.schema.yaml

description: This story tests all endpoints relevant to QueryGroups, from creation to deletion.
version: '>= 2.17'

chapters:
- synopsis: Create a QueryGroup.
path: /_wlm/query_group
method: PUT
request:
payload:
name: analytics
resource_limits:
memory: 0.1
resiliency_mode: monitor
- synopsis: Get the QueryGroup by name.
path: /_wlm/query_group/{name}
method: GET
parameters:
name: analytics
response:
status: 200
payload:
query_groups:
- name: analytics
resource_limits:
memory: 0.1
resiliency_mode: monitor
- synopsis: Get all QueryGroups.
path: /_wlm/query_group
method: GET
- synopsis: Delete a QueryGroup.
path: /_wlm/query_group/{name}
parameters:
name: analytics
method: DELETE

epilogues:
- path: /_wlm/query_group/analytics
method: DELETE
status: [200, 404]

0 comments on commit 494b6fa

Please sign in to comment.