-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Secret Store is currently part of a beta release. https://developer.fastly.com/reference/api/secret-store/
- Loading branch information
1 parent
70079f1
commit fe76cf1
Showing
41 changed files
with
2,266 additions
and
7 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: | | ||
{"name":"TestClient_CreateSecret","secret":"c2VjcmV0dW0gc2VydmFyZQ=="} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- FastlyGo/6.5.2 (+github.com/fastly/go-fastly; go1.19.1) | ||
url: https://api.fastly.com/resources/stores/secret/YsFsqmjSDvg52GhvBeIbqw/secrets | ||
method: POST | ||
response: | ||
body: | | ||
{ | ||
"name": "TestClient_CreateSecret", | ||
"digest": "NLdzRaW6NfFy6RS3yPUVk7ZtK2oiIeCRQVN0sXR2564=" | ||
} | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type, Fastly-Key | ||
Access-Control-Allow-Methods: | ||
- PUT, POST, GET, OPTIONS, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Content-Length: | ||
- "100" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 23 Sep 2022 16:09:02 GMT | ||
Fastly-Trace-Id: | ||
- 73bYYj5weXQGItmRssm4Qm | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
40 changes: 40 additions & 0 deletions
40
fastly/fixtures/secret_store/TestClient_CreateSecret/create_store_00.yaml
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,40 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: | | ||
{"name":"TestClient_CreateSecret-00"} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- FastlyGo/6.5.2 (+github.com/fastly/go-fastly; go1.19.1) | ||
url: https://api.fastly.com/resources/stores/secret | ||
method: POST | ||
response: | ||
body: | | ||
{ | ||
"id": "YsFsqmjSDvg52GhvBeIbqw", | ||
"name": "TestClient_CreateSecret-00" | ||
} | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type, Fastly-Key | ||
Access-Control-Allow-Methods: | ||
- PUT, POST, GET, OPTIONS, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Content-Length: | ||
- "77" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 23 Sep 2022 16:09:02 GMT | ||
Fastly-Trace-Id: | ||
- lubT76EDRYTxymsIx3TJGg | ||
status: 201 Created | ||
code: 201 | ||
duration: "" |
31 changes: 31 additions & 0 deletions
31
fastly/fixtures/secret_store/TestClient_CreateSecret/delete_store_00.yaml
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,31 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- FastlyGo/6.5.2 (+github.com/fastly/go-fastly; go1.19.1) | ||
url: https://api.fastly.com/resources/stores/secret/YsFsqmjSDvg52GhvBeIbqw | ||
method: DELETE | ||
response: | ||
body: "" | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type, Fastly-Key | ||
Access-Control-Allow-Methods: | ||
- PUT, POST, GET, OPTIONS, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Date: | ||
- Fri, 23 Sep 2022 16:09:02 GMT | ||
Fastly-Trace-Id: | ||
- eProXX1wiDOdHLjqcvCxSq | ||
status: 204 No Content | ||
code: 204 | ||
duration: "" |
40 changes: 40 additions & 0 deletions
40
fastly/fixtures/secret_store/TestClient_CreateSecretStore.yaml
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,40 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: | | ||
{"name":"TestClient_CreateSecretStore"} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- FastlyGo/6.5.2 (+github.com/fastly/go-fastly; go1.19.1) | ||
url: https://api.fastly.com/resources/stores/secret | ||
method: POST | ||
response: | ||
body: | | ||
{ | ||
"id": "qIbYRt3b3mzvSTFVONM2uo", | ||
"name": "TestClient_CreateSecretStore" | ||
} | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type, Fastly-Key | ||
Access-Control-Allow-Methods: | ||
- PUT, POST, GET, OPTIONS, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Content-Length: | ||
- "79" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 23 Sep 2022 16:09:02 GMT | ||
Fastly-Trace-Id: | ||
- AFNpFkYCDNQu7cj4AJCEzL | ||
status: 201 Created | ||
code: 201 | ||
duration: "" |
31 changes: 31 additions & 0 deletions
31
fastly/fixtures/secret_store/TestClient_CreateSecretStore/delete_store.yaml
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,31 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- FastlyGo/6.5.2 (+github.com/fastly/go-fastly; go1.19.1) | ||
url: https://api.fastly.com/resources/stores/secret/qIbYRt3b3mzvSTFVONM2uo | ||
method: DELETE | ||
response: | ||
body: "" | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type, Fastly-Key | ||
Access-Control-Allow-Methods: | ||
- PUT, POST, GET, OPTIONS, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Date: | ||
- Fri, 23 Sep 2022 16:09:02 GMT | ||
Fastly-Trace-Id: | ||
- ZbnCNVaCnA5VNvYp49wS5y | ||
status: 204 No Content | ||
code: 204 | ||
duration: "" |
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,31 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- FastlyGo/6.5.2 (+github.com/fastly/go-fastly; go1.19.1) | ||
url: https://api.fastly.com/resources/stores/secret/DwDUfumJxzsKYVBhXNUT4m/secrets/TestClient_DeleteSecret | ||
method: DELETE | ||
response: | ||
body: "" | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type, Fastly-Key | ||
Access-Control-Allow-Methods: | ||
- PUT, POST, GET, OPTIONS, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Date: | ||
- Fri, 23 Sep 2022 16:09:02 GMT | ||
Fastly-Trace-Id: | ||
- IGREzUCNGXsWnFKbh38kCk | ||
status: 204 No Content | ||
code: 204 | ||
duration: "" |
40 changes: 40 additions & 0 deletions
40
fastly/fixtures/secret_store/TestClient_DeleteSecret/create_secret.yaml
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,40 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: | | ||
{"name":"TestClient_DeleteSecret","secret":"c2VjcmV0dW0gc2VydmFyZQ=="} | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Content-Type: | ||
- application/json | ||
User-Agent: | ||
- FastlyGo/6.5.2 (+github.com/fastly/go-fastly; go1.19.1) | ||
url: https://api.fastly.com/resources/stores/secret/DwDUfumJxzsKYVBhXNUT4m/secrets | ||
method: POST | ||
response: | ||
body: | | ||
{ | ||
"name": "TestClient_DeleteSecret", | ||
"digest": "EjvFk6TSfhAMXrLFzCLsAJYqLs8BwBM5PSMa7rJCNBk=" | ||
} | ||
headers: | ||
Access-Control-Allow-Headers: | ||
- Content-Type, Fastly-Key | ||
Access-Control-Allow-Methods: | ||
- PUT, POST, GET, OPTIONS, DELETE | ||
Access-Control-Allow-Origin: | ||
- '*' | ||
Content-Length: | ||
- "100" | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 23 Sep 2022 16:09:02 GMT | ||
Fastly-Trace-Id: | ||
- diMVjRZ4rKGIheD64pCLd2 | ||
status: 200 OK | ||
code: 200 | ||
duration: "" |
Oops, something went wrong.