Skip to content

Commit d6f2dfc

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 31575af2 of spec repo
1 parent 9081a5d commit d6f2dfc

File tree

9 files changed

+28
-6
lines changed

9 files changed

+28
-6
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.6.6",
7-
"regenerated": "2024-12-05 20:22:40.127056",
8-
"spec_repo_commit": "970515f9"
7+
"regenerated": "2024-12-09 10:47:01.065588",
8+
"spec_repo_commit": "31575af2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-05 20:22:40.155280",
13-
"spec_repo_commit": "970515f9"
12+
"regenerated": "2024-12-09 10:47:01.084806",
13+
"spec_repo_commit": "31575af2"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13741,6 +13741,9 @@ components:
1374113741
items:
1374213742
$ref: '#/components/schemas/SyntheticsAssertion'
1374313743
type: array
13744+
exitIfSucceed:
13745+
description: Determines whether or not to exit the test if the step succeeds.
13746+
type: boolean
1374413747
extractedValues:
1374513748
description: Array of values to parse and save as variables from the response.
1374613749
items:

examples/v1/synthetics/CreateSyntheticsAPITest_1279271422.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
target: 200,
2424
}),
2525
],
26+
exit_if_succeed: true,
2627
extracted_values: [
2728
DatadogAPIClient::V1::SyntheticsParsingOptions.new({
2829
field: "server",

examples/v1/synthetics/CreateSyntheticsBrowserTest.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
steps: [
6262
DatadogAPIClient::V1::SyntheticsStep.new({
6363
allow_failure: false,
64+
always_execute: true,
65+
exit_if_succeed: true,
6466
is_critical: true,
6567
name: "Refresh page",
6668
params: {},

features/v1/given.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@
250250
"parameters": [
251251
{
252252
"name": "body",
253-
"value": "{\n \"config\": {\n \"configVariables\": [\n {\n \"example\": \"content-type\",\n \"name\": \"PROPERTY\",\n \"pattern\": \"content-type\",\n \"type\": \"text\"\n }\n ],\n \"steps\": [\n {\n \"allowFailure\": true,\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"type\": \"statusCode\",\n \"target\": 200\n }\n ],\n \"extractedValues\": [\n {\n \"field\": \"server\",\n \"name\": \"EXTRACTED_VALUE\",\n \"parser\": {\n \"type\": \"raw\"\n },\n \"type\": \"http_header\",\n \"secure\": true\n }\n ],\n \"isCritical\": true,\n \"name\": \"request is sent\",\n \"request\": {\n \"method\": \"GET\",\n \"timeout\": 10,\n \"url\": \"https://datadoghq.com\",\n \"httpVersion\": \"http2\"\n },\n \"retry\": {\n \"count\": 5,\n \"interval\": 1000\n },\n \"subtype\": \"http\"\n },\n {\n \"name\": \"Wait\",\n \"subtype\": \"wait\",\n \"value\": 1\n },\n {\n \"name\": \"GRPC CALL\",\n \"subtype\": \"grpc\",\n \"extractedValues\": [],\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"grpcbin.test.k6.io\",\n \"port\": 9000,\n \"service\": \"grpcbin.GRPCBin\",\n \"method\": \"Index\",\n \"message\": \"{}\",\n \"compressedJsonDescriptor\": \"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==\",\n \"metadata\": {},\n \"callType\": \"unary\"\n }\n }\n ]\n },\n \"locations\": [\"aws:us-east-2\"],\n \"message\": \"BDD test payload: synthetics_api_test_multi_step_payload.json\",\n \"name\": \"{{ unique }}\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": true,\n \"follow_redirects\": true,\n \"min_failure_duration\": 10,\n \"min_location_failed\": 1,\n \"monitor_name\": \"{{ unique }}\",\n \"monitor_priority\": 5,\n \"retry\": { \"count\": 3, \"interval\": 1000 },\n \"tick_every\": 60\n },\n \"subtype\": \"multi\",\n \"tags\": [\"testing:api\"],\n \"type\": \"api\"\n}\n"
253+
"value": "{\n \"config\": {\n \"configVariables\": [\n {\n \"example\": \"content-type\",\n \"name\": \"PROPERTY\",\n \"pattern\": \"content-type\",\n \"type\": \"text\"\n }\n ],\n \"steps\": [\n {\n \"allowFailure\": true,\n \"assertions\": [\n {\n \"operator\": \"is\",\n \"type\": \"statusCode\",\n \"target\": 200\n }\n ],\n \"exitIfSucceed\": true,\n \"extractedValues\": [\n {\n \"field\": \"server\",\n \"name\": \"EXTRACTED_VALUE\",\n \"parser\": {\n \"type\": \"raw\"\n },\n \"type\": \"http_header\",\n \"secure\": true\n }\n ],\n \"isCritical\": true,\n \"name\": \"request is sent\",\n \"request\": {\n \"method\": \"GET\",\n \"timeout\": 10,\n \"url\": \"https://datadoghq.com\",\n \"httpVersion\": \"http2\"\n },\n \"retry\": {\n \"count\": 5,\n \"interval\": 1000\n },\n \"subtype\": \"http\"\n },\n {\n \"name\": \"Wait\",\n \"subtype\": \"wait\",\n \"value\": 1\n },\n {\n \"name\": \"GRPC CALL\",\n \"subtype\": \"grpc\",\n \"extractedValues\": [],\n \"allowFailure\": false,\n \"isCritical\": true,\n \"retry\": {\n \"count\": 0,\n \"interval\": 300\n },\n \"assertions\": [\n {\n \"operator\": \"lessThan\",\n \"type\": \"responseTime\",\n \"target\": 1000\n }\n ],\n \"request\": {\n \"host\": \"grpcbin.test.k6.io\",\n \"port\": 9000,\n \"service\": \"grpcbin.GRPCBin\",\n \"method\": \"Index\",\n \"message\": \"{}\",\n \"compressedJsonDescriptor\": \"eJy1lU1z2yAQhv+Lzj74I3ETH506bQ7OZOSm1w4Wa4epBARQppqM/3v5koCJJdvtxCdW77vPssCO3zMKUgHOFu/ZXvBiS6hZho/f8qe7pftYgXphWJrlA8XwxywEvNba+6PhkC2yVcVVswYp0R6ykRYlZ1SCV21SDrxsssPIeS9FJKqGfK2rqnmmSBwhWa2XlKgtaQPiDcRGCUDVfwGD2sKUqKEtc1cSoOrsMlaMOec1sySYCCgUYRSVLv2zSva2u+FQkB0pVkIw8bFuIudOOn3pOaKYVT3Iy97Pd0AYhOx5QcMsnxvRHlnuLf8ETDd3CNtrv2nejkDpRnANCmGkkFn/hsYzpBKE7jVbufgnKnV9HRM9zRPDDKPttYT61n0TdWkAAjggk9AhuxIeaXd69CYTcsGw7cBTakLVbNpRzGEgyWjkSOpMbZXkhGL6oX30R49qt3GoHrap7i0XdD41WQ+2icCNm5p1hmFqnHNlcla0riKmDZ183crDxChjbnurtxHPRE784sVhWvDfGP+SsTKibU3o5NtWHuZFGZOxP6P5VXqIOvaOSec4eYohyd7NslHuJbd1bewds85xYrNxkr2d+5IhFWF3NvaO684xjE2S5ulY+tu64Pna0fCPJgzw6vF5/WucLcYjt5xoq19O3UDptOg/OamJQRaCcPPnMTQ2QDFn+uhPvUfnCrMc99upyQY4Ui9Dlc/YoG3R/v4Cs9YE+g==\",\n \"metadata\": {},\n \"callType\": \"unary\"\n }\n }\n ]\n },\n \"locations\": [\"aws:us-east-2\"],\n \"message\": \"BDD test payload: synthetics_api_test_multi_step_payload.json\",\n \"name\": \"{{ unique }}\",\n \"options\": {\n \"accept_self_signed\": false,\n \"allow_insecure\": true,\n \"follow_redirects\": true,\n \"min_failure_duration\": 10,\n \"min_location_failed\": 1,\n \"monitor_name\": \"{{ unique }}\",\n \"monitor_priority\": 5,\n \"retry\": { \"count\": 3, \"interval\": 1000 },\n \"tick_every\": 60\n },\n \"subtype\": \"multi\",\n \"tags\": [\"testing:api\"],\n \"type\": \"api\"\n}\n"
254254
}
255255
],
256256
"step": "there is a valid \"synthetics_api_test_multi_step\" in the system",

features/v1/synthetics.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ Feature: Synthetics
7575
And the response "name" is equal to "{{ unique }}"
7676
And the response "config.configVariables" has item with field "secure" with value true
7777
And the response "config.variables" has item with field "secure" with value true
78+
And the response "steps[0].alwaysExecute" is equal to true
79+
And the response "steps[0].exitIfSucceed" is equal to true
7880

7981
@generated @skip @team:DataDog/synthetics-ct
8082
Scenario: Create a browser test returns "Test quota is reached" response
@@ -293,6 +295,7 @@ Feature: Synthetics
293295
And the response "config.steps[0].retry.count" is equal to 5
294296
And the response "config.steps[0].retry.interval" is equal to 1000
295297
And the response "config.steps[0].request.httpVersion" is equal to "http2"
298+
And the response "config.steps[0].exitIfSucceed" is equal to true
296299
And the response "config.steps[0].extractedValues[0].secure" is equal to true
297300
And the response "config.steps[1].subtype" is equal to "wait"
298301
And the response "config.steps[1].value" is equal to 1

features/v1/synthetics_api_test_multi_step_payload.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"target": 200
1919
}
2020
],
21+
"exitIfSucceed": true,
2122
"extractedValues": [
2223
{
2324
"field": "server",

features/v1/synthetics_browser_test_payload.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
"steps": [
4545
{
4646
"allowFailure": false,
47+
"alwaysExecute": true,
48+
"exitIfSucceed": true,
4749
"isCritical": true,
4850
"name": "Refresh page",
4951
"params": {},

lib/datadog_api_client/v1/models/synthetics_api_test_step.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ class SyntheticsAPITestStep
2727
# Array of assertions used for the test.
2828
attr_reader :assertions
2929

30+
# Determines whether or not to exit the test if the step succeeds.
31+
attr_accessor :exit_if_succeed
32+
3033
# Array of values to parse and save as variables from the response.
3134
attr_accessor :extracted_values
3235

@@ -54,6 +57,7 @@ def self.attribute_map
5457
{
5558
:'allow_failure' => :'allowFailure',
5659
:'assertions' => :'assertions',
60+
:'exit_if_succeed' => :'exitIfSucceed',
5761
:'extracted_values' => :'extractedValues',
5862
:'is_critical' => :'isCritical',
5963
:'name' => :'name',
@@ -69,6 +73,7 @@ def self.openapi_types
6973
{
7074
:'allow_failure' => :'Boolean',
7175
:'assertions' => :'Array<SyntheticsAssertion>',
76+
:'exit_if_succeed' => :'Boolean',
7277
:'extracted_values' => :'Array<SyntheticsParsingOptions>',
7378
:'is_critical' => :'Boolean',
7479
:'name' => :'String',
@@ -106,6 +111,10 @@ def initialize(attributes = {})
106111
end
107112
end
108113

114+
if attributes.key?(:'exit_if_succeed')
115+
self.exit_if_succeed = attributes[:'exit_if_succeed']
116+
end
117+
109118
if attributes.key?(:'extracted_values')
110119
if (value = attributes[:'extracted_values']).is_a?(Array)
111120
self.extracted_values = value
@@ -212,6 +221,7 @@ def ==(o)
212221
self.class == o.class &&
213222
allow_failure == o.allow_failure &&
214223
assertions == o.assertions &&
224+
exit_if_succeed == o.exit_if_succeed &&
215225
extracted_values == o.extracted_values &&
216226
is_critical == o.is_critical &&
217227
name == o.name &&
@@ -225,7 +235,7 @@ def ==(o)
225235
# @return [Integer] Hash code
226236
# @!visibility private
227237
def hash
228-
[allow_failure, assertions, extracted_values, is_critical, name, request, _retry, subtype].hash
238+
[allow_failure, assertions, exit_if_succeed, extracted_values, is_critical, name, request, _retry, subtype].hash
229239
end
230240
end
231241
end

0 commit comments

Comments
 (0)