Skip to content

Commit 93eaa20

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 31575af2 of spec repo
1 parent a3a85dc commit 93eaa20

9 files changed

+25
-5
lines changed

.apigentools-info

+4-4
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:37.520043",
8-
"spec_repo_commit": "970515f9"
7+
"regenerated": "2024-12-09 10:46:53.987913",
8+
"spec_repo_commit": "31575af2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-05 20:22:37.539873",
13-
"spec_repo_commit": "970515f9"
12+
"regenerated": "2024-12-09 10:46:54.007170",
13+
"spec_repo_commit": "31575af2"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

+3
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.ts

+1
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const params: v1.SyntheticsApiCreateSyntheticsAPITestRequest = {
2828
target: 200,
2929
},
3030
],
31+
exitIfSucceed: true,
3132
extractedValues: [
3233
{
3334
field: "server",

examples/v1/synthetics/CreateSyntheticsBrowserTest.ts

+2
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ const params: v1.SyntheticsApiCreateSyntheticsBrowserTestRequest = {
6060
steps: [
6161
{
6262
allowFailure: false,
63+
alwaysExecute: true,
64+
exitIfSucceed: true,
6365
isCritical: true,
6466
name: "Refresh page",
6567
params: {},

features/v1/given.json

+1-1
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

+3
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

+1
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

+2
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": {},

packages/datadog-api-client-v1/models/SyntheticsAPITestStep.ts

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ export class SyntheticsAPITestStep {
2323
* Array of assertions used for the test.
2424
*/
2525
"assertions": Array<SyntheticsAssertion>;
26+
/**
27+
* Determines whether or not to exit the test if the step succeeds.
28+
*/
29+
"exitIfSucceed"?: boolean;
2630
/**
2731
* Array of values to parse and save as variables from the response.
2832
*/
@@ -74,6 +78,10 @@ export class SyntheticsAPITestStep {
7478
type: "Array<SyntheticsAssertion>",
7579
required: true,
7680
},
81+
exitIfSucceed: {
82+
baseName: "exitIfSucceed",
83+
type: "boolean",
84+
},
7785
extractedValues: {
7886
baseName: "extractedValues",
7987
type: "Array<SyntheticsParsingOptions>",

0 commit comments

Comments
 (0)