From 01489001e61c6e064cc571c34815841901c4ca8c Mon Sep 17 00:00:00 2001 From: Ruirui Zhang Date: Wed, 30 Oct 2024 13:48:27 -0700 Subject: [PATCH] address comments Signed-off-by: Ruirui Zhang --- .../namespaces/{query_group.yaml => wlm.yaml} | 68 +++++++++---------- ...ry_group._common.yaml => wlm._common.yaml} | 0 .../wlm/{query_group => }/query_group.yaml | 2 +- 3 files changed, 35 insertions(+), 35 deletions(-) rename spec/namespaces/{query_group.yaml => wlm.yaml} (53%) rename spec/schemas/{query_group._common.yaml => wlm._common.yaml} (100%) rename tests/plugins/wlm/{query_group => }/query_group.yaml (96%) diff --git a/spec/namespaces/query_group.yaml b/spec/namespaces/wlm.yaml similarity index 53% rename from spec/namespaces/query_group.yaml rename to spec/namespaces/wlm.yaml index a55d47a33..336fd5546 100644 --- a/spec/namespaces/query_group.yaml +++ b/spec/namespaces/wlm.yaml @@ -6,84 +6,84 @@ info: paths: /_wlm/query_group: get: - operationId: query_group.get.0 - x-operation-group: query_group.get + operationId: wlm.get_query_group.0 + x-operation-group: wlm.get_query_group x-version-added: '2.17' description: Gets the specified QueryGroup or get all if no name is provided. responses: '200': - $ref: '#/components/responses/query_group.get@200' + $ref: '#/components/responses/wlm.get_query_group@200' put: - operationId: query_group.create.0 - x-operation-group: query_group.create + operationId: wlm.create_query_group.0 + x-operation-group: wlm.create_query_group x-version-added: '2.17' description: Creates a specified query group. requestBody: - $ref: '#/components/requestBodies/query_group.create' + $ref: '#/components/requestBodies/wlm.create_query_group' responses: '200': - $ref: '#/components/responses/query_group.create@200' + $ref: '#/components/responses/wlm.create_query_group@200' /_wlm/query_group/{name}: get: - operationId: query_group.get.1 - x-operation-group: query_group.get + operationId: wlm.get_query_group.1 + x-operation-group: wlm.get_query_group x-version-added: '2.17' description: Gets the specified QueryGroup or get all if no name is provided. parameters: - - $ref: '#/components/parameters/query_group.get::path.name' + - $ref: '#/components/parameters/wlm.get_query_group::path.name' responses: '200': - $ref: '#/components/responses/query_group.get@200' + $ref: '#/components/responses/wlm.get_query_group@200' put: - operationId: query_group.update.0 - x-operation-group: query_group.update + operationId: wlm.update_query_group.0 + x-operation-group: wlm.update_query_group x-version-added: '2.17' description: Updates a specified query group. parameters: - - $ref: '#/components/parameters/query_group.update::path.name' + - $ref: '#/components/parameters/wlm.update_query_group::path.name' requestBody: - $ref: '#/components/requestBodies/query_group.update' + $ref: '#/components/requestBodies/wlm.update_query_group' responses: '200': - $ref: '#/components/responses/query_group.update@200' + $ref: '#/components/responses/wlm.update_query_group@200' delete: - operationId: query_group.delete.1 - x-operation-group: query_group.delete + operationId: wlm.delete_query_group.1 + x-operation-group: wlm.delete_query_group x-version-added: '2.17' description: Deletes the specified QueryGroups or delete all if no name is provided. parameters: - - $ref: '#/components/parameters/query_group.delete::path.name' + - $ref: '#/components/parameters/wlm.delete_query_group::path.name' responses: '200': - $ref: '#/components/responses/query_group.delete@200' + $ref: '#/components/responses/wlm.delete_query_group@200' components: requestBodies: - query_group.create: + wlm.create_query_group: content: application/json: schema: - $ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupCreate' + $ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupCreate' required: true - query_group.update: + wlm.update_query_group: content: application/json: schema: - $ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupUpdate' + $ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupUpdate' required: true responses: - query_group.create@200: + wlm.create_query_group@200: description: '' content: application/json: schema: - $ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse' - query_group.update@200: + $ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse' + wlm.update_query_group@200: description: '' content: application/json: schema: - $ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse' - query_group.delete@200: + $ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse' + wlm.delete_query_group@200: description: '' content: application/json: @@ -92,7 +92,7 @@ components: properties: acknowledged: type: boolean - query_group.get@200: + wlm.get_query_group@200: description: '' content: application/json: @@ -102,23 +102,23 @@ components: query_groups: type: array items: - $ref: '../schemas/query_group._common.yaml#/components/schemas/QueryGroupResponse' + $ref: '../schemas/wlm._common.yaml#/components/schemas/QueryGroupResponse' parameters: - query_group.update::path.name: + wlm.update_query_group::path.name: name: name in: path description: QueryGroup name. schema: type: string required: true - query_group.delete::path.name: + wlm.delete_query_group::path.name: name: name in: path description: QueryGroup name. schema: type: string required: true - query_group.get::path.name: + wlm.get_query_group::path.name: name: name in: path description: QueryGroup name. diff --git a/spec/schemas/query_group._common.yaml b/spec/schemas/wlm._common.yaml similarity index 100% rename from spec/schemas/query_group._common.yaml rename to spec/schemas/wlm._common.yaml diff --git a/tests/plugins/wlm/query_group/query_group.yaml b/tests/plugins/wlm/query_group.yaml similarity index 96% rename from tests/plugins/wlm/query_group/query_group.yaml rename to tests/plugins/wlm/query_group.yaml index 517f05fc7..6f2b86367 100644 --- a/tests/plugins/wlm/query_group/query_group.yaml +++ b/tests/plugins/wlm/query_group.yaml @@ -1,4 +1,4 @@ -$schema: ../../../../json_schemas/test_story.schema.yaml +$schema: ../../../json_schemas/test_story.schema.yaml description: This story tests all endpoints relevant to QueryGroups, from creation to deletion.