Skip to content

Commit 981129e

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 8327a94 of spec repo
1 parent ac03aa1 commit 981129e

File tree

6 files changed

+29
-14
lines changed

6 files changed

+29
-14
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev8",
7-
"regenerated": "2021-06-17 15:07:58.879914",
8-
"spec_repo_commit": "7f25c3e"
7+
"regenerated": "2021-06-21 15:11:55.610953",
8+
"spec_repo_commit": "8327a94"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-06-17 15:08:28.826169",
13-
"spec_repo_commit": "7f25c3e"
12+
"regenerated": "2021-06-21 15:12:23.084029",
13+
"spec_repo_commit": "8327a94"
1414
}
1515
}
1616
}

docs/v1/SyntheticsAssertionJSONPathTargetTarget.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
88
**json_path** | **str** | The JSON path to assert. | [optional]
99
**operator** | **str** | The specific operator to use on the path. | [optional]
10-
**target_value** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | The path target value to compare to. | [optional]
10+
**target_value** | **bool, date, datetime, dict, float, int, list, str, none_type** | The path target value to compare to. | [optional]
1111

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

src/datadog_api_client/v1/model/synthetics_assertion_json_path_target_target.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,17 @@ def openapi_types():
6767
return {
6868
"json_path": (str,), # noqa: E501
6969
"operator": (str,), # noqa: E501
70-
"target_value": ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501
70+
"target_value": (
71+
bool,
72+
date,
73+
datetime,
74+
dict,
75+
float,
76+
int,
77+
list,
78+
str,
79+
none_type,
80+
), # noqa: E501
7181
}
7282

7383
@cached_property
@@ -130,7 +140,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
130140
_visited_composed_classes = (Animal,)
131141
json_path (str): The JSON path to assert.. [optional] # noqa: E501
132142
operator (str): The specific operator to use on the path.. [optional] # noqa: E501
133-
target_value ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The path target value to compare to.. [optional] # noqa: E501
143+
target_value (bool, date, datetime, dict, float, int, list, str, none_type): The path target value to compare to.. [optional] # noqa: E501
134144
"""
135145

136146
_check_type = kwargs.pop("_check_type", True)

src/datadog_api_client/v1/openapi.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8506,7 +8506,6 @@ components:
85068506
type: string
85078507
targetValue:
85088508
description: The path target value to compare to.
8509-
type: object
85108509
type: object
85118510
type:
85128511
$ref: '#/components/schemas/SyntheticsAssertionType'
@@ -19831,8 +19830,10 @@ paths:
1983119830
x-codegen-request-body-name: body
1983219831
x-menu-order: 1
1983319832
x-undo:
19834-
operationId: TODO
19835-
parameters: []
19833+
operationId: DeleteTests
19834+
parameters:
19835+
- name: body
19836+
template: '{"public_ids": ["{{ public_id }}"]}'
1983619837
type: unsafe
1983719838
/api/v1/synthetics/tests/api/{public_id}:
1983819839
get:

tests/v1/features/synthetics.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,9 @@ Feature: Synthetics
7878
When the request is sent
7979
Then the response status is 400 - JSON format is wrong
8080

81-
@generated @skip
8281
Scenario: Create an API test returns "OK - Returns the created test details." response
8382
Given new "CreateSyntheticsAPITest" request
84-
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"}
83+
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"}
8584
When the request is sent
8685
Then the response status is 200 OK - Returns the created test details.
8786

tests/v1/features/undo.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,8 +894,13 @@
894894
"CreateSyntheticsAPITest": {
895895
"tag": "Synthetics",
896896
"undo": {
897-
"operationId": "TODO",
898-
"parameters": [],
897+
"operationId": "DeleteTests",
898+
"parameters": [
899+
{
900+
"name": "body",
901+
"template": "{\"public_ids\": [\"{{ public_id }}\"]}"
902+
}
903+
],
899904
"type": "unsafe"
900905
}
901906
},

0 commit comments

Comments
 (0)