Skip to content

Commit

Permalink
Regenerate client from commit 5840e10 of spec repo
Browse files Browse the repository at this point in the history
  • Loading branch information
ci.datadog-api-spec committed Jun 18, 2021
1 parent 9cd0c4f commit 1536f75
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 17 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-17 15:08:44.608594",
"spec_repo_commit": "7f25c3e"
"regenerated": "2021-06-18 12:39:31.716614",
"spec_repo_commit": "5840e10"
},
"v2": {
"apigentools_version": "1.4.1.dev8",
"regenerated": "2021-06-17 15:09:20.119232",
"spec_repo_commit": "7f25c3e"
"regenerated": "2021-06-18 12:39:59.107440",
"spec_repo_commit": "5840e10"
}
}
}
7 changes: 4 additions & 3 deletions api/v1/datadog/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6786,8 +6786,10 @@ paths:
x-codegen-request-body-name: body
x-menu-order: 1
x-undo:
operationId: TODO
parameters: []
operationId: DeleteTests
parameters:
- name: body
template: '{"public_ids": ["{{ public_id }}"]}'
type: unsafe
/api/v1/synthetics/tests/api/{public_id}:
get:
Expand Down Expand Up @@ -29338,7 +29340,6 @@ components:
type: string
targetValue:
description: The path target value to compare to.
type: object
type: object
SyntheticsBrowserTestResultFull_check:
description: Object describing the browser test configuration.
Expand Down
10 changes: 10 additions & 0 deletions api/v1/datadog/docs/SyntheticsAssertionJSONPathTargetTarget.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,16 @@ SetTargetValue sets TargetValue field to given value.

HasTargetValue returns a boolean if a field has been set.

### SetTargetValueNil

`func (o *SyntheticsAssertionJSONPathTargetTarget) SetTargetValueNil(b bool)`

SetTargetValueNil sets the value for TargetValue to be an explicit nil

### UnsetTargetValue
`func (o *SyntheticsAssertionJSONPathTargetTarget) UnsetTargetValue()`

UnsetTargetValue ensures that no value is present for TargetValue, not even an explicit nil

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions tests/api/v1/datadog/features/synthetics.feature
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,9 @@ Feature: Synthetics
When the request is sent
Then the response status is 400 - JSON format is wrong

@generated @skip
Scenario: Create an API test returns "OK - Returns the created test details." response
Given new "CreateSyntheticsAPITest" request
And body with value {"config": {"assertions": [], "configVariables": [{"example": null, "id": null, "name": "VARIABLE_NAME", "pattern": null, "type": "global"}], "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "steps": [{"allowFailure": null, "assertions": [], "extractedValues": [{"field": "content-type", "name": null, "parser": {"type": "regex", "value": ".*"}, "type": "http_body"}], "isCritical": null, "name": null, "request": {"basicAuth": {"password": "", "username": ""}, "body": null, "certificate": {"cert": {"content": null, "filename": null, "updatedAt": null}, "key": {"content": null, "filename": null, "updatedAt": null}}, "dnsServer": null, "dnsServerPort": null, "headers": null, "host": null, "method": "GET", "noSavingResponseBody": null, "numberOfPackets": null, "port": null, "query": null, "shouldTrackHops": null, "timeout": null, "url": null}, "subtype": "http"}]}, "locations": [null], "message": null, "name": null, "options": {"accept_self_signed": null, "allow_insecure": null, "device_ids": ["laptop_large"], "disableCors": null, "follow_redirects": null, "min_failure_duration": null, "min_location_failed": null, "monitor_name": null, "monitor_options": {"renotify_interval": null}, "monitor_priority": null, "noScreenshot": null, "retry": {"count": null, "interval": null}, "tick_every": 30}, "status": "live", "subtype": "http", "tags": [null], "type": "api"}
And body with value {"config":{"assertions":[{"operator":"contains","property":"content-type","target":"application/json","type":"header"},{"operator":"is","target":200,"type":"statusCode"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"},{"operator":"validatesJSONPath","target":{"jsonPath":"something","operator":"moreThan","targetValue":5},"type":"body"},{"operator":"isNot","target":200,"type":"statusCode"},{"operator":"matches","target":"20[04]","type":"statusCode"},{"operator":"doesNotMatch","target":"20[04]","type":"statusCode"}],"configVariables":[],"request":{"basicAuth":{"password":"secret","username":"admin"},"body":"this is a body","headers":{"Accept":"application/json"},"method":"GET","query":{"foo":"bar"},"timeout":30,"url":"https://www.datadoghq.com"}},"locations":["aws:eu-central-1"],"message":"Notify @datadog.user","name":"{{ unique }}","options":{"follow_redirects":true,"min_location_failed":1,"monitor_options":{"renotify_interval":100},"tick_every":60},"status":"paused","subtype":"http","tags":["foo:bar","baz"],"type":"api"}
When the request is sent
Then the response status is 200 OK - Returns the created test details.

Expand Down
9 changes: 7 additions & 2 deletions tests/api/v1/datadog/features/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,13 @@
"CreateSyntheticsAPITest": {
"tag": "Synthetics",
"undo": {
"operationId": "TODO",
"parameters": [],
"operationId": "DeleteTests",
"parameters": [
{
"name": "body",
"template": "{\"public_ids\": [\"{{ public_id }}\"]}"
}
],
"type": "unsafe"
}
},
Expand Down

0 comments on commit 1536f75

Please sign in to comment.