-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add scenario for each error response code that isn't 401 or 403 (#653)
* Add monitor cassette and update scenario to work with path params * Fix index of new context key * fmt * Cleanup based on review * Address review * Remove extra error * Regenerate client from commit 426d7a0 of spec repo Co-authored-by: Nicholas Muesch <nicholas.muesch@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
- Loading branch information
1 parent
4c630bd
commit 4303ec4
Showing
39 changed files
with
2,260 additions
and
14 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
1 change: 1 addition & 0 deletions
1
...nitors/Scenario_Get_a_monitor's_details_returns__Monitor_Not_Found_error__response.freeze
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 @@ | ||
2021-01-08T14:02:50.164567-05:00 |
55 changes: 55 additions & 0 deletions
55
...Monitors/Scenario_Get_a_monitor's_details_returns__Monitor_Not_Found_error__response.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,55 @@ | ||
--- | ||
version: 1 | ||
interactions: | ||
- request: | ||
body: "" | ||
form: {} | ||
headers: | ||
Accept: | ||
- application/json | ||
Dd-Operation-Id: | ||
- GetMonitor | ||
User-Agent: | ||
- datadog-api-client-go/1.0.0-beta.14+dev (go go1.15.4; os darwin; arch amd64) | ||
X-Datadog-Parent-Id: | ||
- "7903827536385416972" | ||
X-Datadog-Sampling-Priority: | ||
- "1" | ||
X-Datadog-Trace-Id: | ||
- "5260392844676116825" | ||
url: https://api.datadoghq.com/api/v1/monitor/12345 | ||
method: GET | ||
response: | ||
body: '{"errors":["Monitor not found"]}' | ||
headers: | ||
Cache-Control: | ||
- no-cache | ||
Connection: | ||
- keep-alive | ||
Content-Type: | ||
- application/json | ||
Date: | ||
- Fri, 08 Jan 2021 18:59:01 GMT | ||
Pragma: | ||
- no-cache | ||
Strict-Transport-Security: | ||
- max-age=15724800; | ||
Vary: | ||
- Accept-Encoding | ||
X-Content-Type-Options: | ||
- nosniff | ||
X-Dd-Version: | ||
- "35.3668062" | ||
X-Frame-Options: | ||
- SAMEORIGIN | ||
X-Ratelimit-Limit: | ||
- "3000" | ||
X-Ratelimit-Period: | ||
- "10" | ||
X-Ratelimit-Remaining: | ||
- "2999" | ||
X-Ratelimit-Reset: | ||
- "9" | ||
status: 404 Not Found | ||
code: 404 | ||
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
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
Oops, something went wrong.