-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add more info when stopping/starting instances (#46)
* Add more info when stopping/starting instances * Print instance tags too * Print only the first 10 tags * Pass ctx to print requestID and service UUID Do not print instance tags as they can be altered by the users and cannot be trusted. * string casting not necessary, already a string * go fmt
- Loading branch information
Showing
7 changed files
with
99 additions
and
17 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 @@ | ||
################################################################################# | ||
# Get an access token using the login token | ||
################################################################################# | ||
|
||
GET http://{{host}}/api/v1/login | ||
Authorization: Bearer {{login_token}} | ||
HTTP 200 | ||
[Captures] | ||
access_token: jsonpath "$.access_token" | ||
[Asserts] | ||
jsonpath "$.access_token" isString | ||
jsonpath "$.access_token_exp" isString | ||
|
||
|
||
################################################################################# | ||
# Stop a placement | ||
################################################################################# | ||
|
||
PUT http://{{host}}/api/v1/placements/{{uuid}}/{{action}} | ||
Authorization: Bearer {{access_token}} | ||
HTTP 202 |
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 @@ | ||
################################################################################# | ||
# Get an access token using the login token | ||
################################################################################# | ||
|
||
GET http://{{host}}/api/v1/login | ||
Authorization: Bearer {{login_token}} | ||
HTTP 200 | ||
[Captures] | ||
access_token: jsonpath "$.access_token" | ||
[Asserts] | ||
jsonpath "$.access_token" isString | ||
jsonpath "$.access_token_exp" isString | ||
|
||
|
||
################################################################################# | ||
# Stop a placement | ||
################################################################################# | ||
|
||
PUT http://{{host}}/api/v1/accounts/{{type}}/{{name}}/{{action}} | ||
Authorization: Bearer {{access_token}} | ||
HTTP 202 |