-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Theo N. Truong <theotr@amazon.com>
- Loading branch information
Showing
17 changed files
with
441 additions
and
22 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,21 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Schemas of Decommission Awareness. | ||
description: Schemas of decommission awareness category. | ||
version: 1.0.0 | ||
paths: {} | ||
components: | ||
schemas: | ||
DecommissionStatusResponse: | ||
oneOf: | ||
- $ref: '#/components/schemas/ZoneDecommissionStatusResponse' | ||
ZoneDecommissionStatusResponse: | ||
type: object | ||
additionalProperties: | ||
type: string | ||
enum: | ||
- DRAINING | ||
- FAILED | ||
- INIT | ||
- IN_PROGRESS | ||
- SUCCESSFUL |
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,27 @@ | ||
openapi: 3.1.0 | ||
info: | ||
title: Schemas of Weighted Routing Category | ||
description: Schemas of weighted routing category. | ||
version: 1.0.0 | ||
paths: {} | ||
components: | ||
schemas: | ||
WeightsBase: | ||
type: object | ||
properties: | ||
_version: | ||
$ref: '_common.yaml#/components/schemas/VersionNumber' | ||
Weights: | ||
allOf: | ||
- $ref: '#/components/schemas/WeightsBase' | ||
- type: object | ||
properties: | ||
weights: | ||
type: object | ||
WeightsResponse: | ||
allOf: | ||
- $ref: '#/components/schemas/Weights' | ||
- type: object | ||
properties: | ||
discovered_cluster_manager: | ||
type: boolean |
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 |
---|---|---|
|
@@ -35,6 +35,3 @@ chapters: | |
method: GET | ||
response: | ||
status: 200 | ||
payload: | ||
tasks: | ||
- executing: true |
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,49 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test cluster routing settings. | ||
version: '>= 2.16' | ||
prologues: | ||
- id: weights | ||
path: /_cluster/routing/awareness/zone/weights | ||
method: GET | ||
output: | ||
version: | ||
path: payload._version | ||
default: -1 | ||
- path: /_cluster/routing/awareness/zone/weights | ||
method: PUT | ||
request: | ||
payload: | ||
weights: | ||
zoneA: '1' | ||
zoneB: '0' | ||
_version: ${weights.version} | ||
epilogues: | ||
- path: /_cluster/decommission/awareness | ||
method: DELETE | ||
- id: epilogue_weights | ||
path: /_cluster/routing/awareness/zone/weights | ||
method: GET | ||
output: | ||
version: | ||
path: payload._version | ||
default: -1 | ||
- path: /_cluster/routing/awareness/weights | ||
method: DELETE | ||
request: | ||
payload: | ||
_version: ${epilogue_weights.version} | ||
chapters: | ||
- synopsis: Decommission zoneB. | ||
path: /_cluster/decommission/awareness/{awareness_attribute_name}/{awareness_attribute_value} | ||
method: PUT | ||
parameters: | ||
awareness_attribute_name: zone | ||
awareness_attribute_value: zoneB | ||
response: | ||
status: 200 | ||
- synopsis: Recommission the decommissioned zoneB. | ||
path: /_cluster/decommission/awareness | ||
method: DELETE | ||
response: | ||
status: 200 |
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,45 @@ | ||
$schema: ../../../../json_schemas/test_story.schema.yaml | ||
|
||
description: Test cluster routing settings. | ||
version: '>= 2.16' | ||
prologues: | ||
- id: weights | ||
path: /_cluster/routing/awareness/zone/weights | ||
method: GET | ||
output: | ||
version: | ||
path: payload._version | ||
default: -1 | ||
- path: /_cluster/routing/awareness/zone/weights | ||
method: PUT | ||
request: | ||
payload: | ||
weights: | ||
zoneA: '1' | ||
zoneB: '0' | ||
_version: ${weights.version} | ||
- path: /_cluster/decommission/awareness/zone/zoneB | ||
method: PUT | ||
epilogues: | ||
- path: /_cluster/decommission/awareness | ||
method: DELETE | ||
- id: epilogue_weights | ||
path: /_cluster/routing/awareness/zone/weights | ||
method: GET | ||
output: | ||
version: | ||
path: payload._version | ||
default: -1 | ||
- path: /_cluster/routing/awareness/weights | ||
method: DELETE | ||
request: | ||
payload: | ||
_version: ${epilogue_weights.version} | ||
chapters: | ||
- synopsis: Get the decommissioned zoneB status. | ||
path: /_cluster/decommission/awareness/{awareness_attribute_name}/_status | ||
method: GET | ||
parameters: | ||
awareness_attribute_name: zone | ||
response: | ||
status: 200 |
Oops, something went wrong.