Skip to content

Commit e269055

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 97e9c13 of spec repo
1 parent b97d94b commit e269055

File tree

6 files changed

+22
-19
lines changed

6 files changed

+22
-19
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.5.1.dev2",
7-
"regenerated": "2021-10-20 11:06:03.979077",
8-
"spec_repo_commit": "12a9fda"
7+
"regenerated": "2021-10-20 13:08:45.468463",
8+
"spec_repo_commit": "97e9c13"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2021-10-20 11:06:55.212823",
13-
"spec_repo_commit": "12a9fda"
12+
"regenerated": "2021-10-20 13:09:40.439437",
13+
"spec_repo_commit": "97e9c13"
1414
}
1515
}
1616
}

api_docs/v1/SyntheticsTestConfig.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Configuration object for a Synthetic test.
88

99
Name | Type | Description | Notes
1010
------------ | ------------- | ------------- | -------------
11-
**assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. | [optional]
11+
**assertions** | [**List<SyntheticsAssertion>**](SyntheticsAssertion.md) | Array of assertions used for the test. Required for single API tests. | [optional]
1212
**configVariables** | [**List<SyntheticsConfigVariable>**](SyntheticsConfigVariable.md) | Array of variables used for the test. | [optional]
1313
**request** | [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | | [optional]
1414
**variables** | [**List<SyntheticsBrowserVariable>**](SyntheticsBrowserVariable.md) | Browser tests only - array of variables used for the test steps. | [optional]

src/main/java/com/datadog/api/v1/client/model/SyntheticsCIBatchMetadataGit.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class SyntheticsCIBatchMetadataGit {
3030
public static final String JSON_PROPERTY_BRANCH = "branch";
3131
private String branch;
3232

33-
public static final String JSON_PROPERTY_COMMIT_SHA = "commit_sha";
33+
public static final String JSON_PROPERTY_COMMIT_SHA = "commitSha";
3434
private String commitSha;
3535

3636
public SyntheticsCIBatchMetadataGit branch(String branch) {

src/main/java/com/datadog/api/v1/client/model/SyntheticsTestConfig.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,14 @@ public SyntheticsTestConfig addAssertionsItem(SyntheticsAssertion assertionsItem
6161
}
6262

6363
/**
64-
* Array of assertions used for the test.
64+
* Array of assertions used for the test. Required for single API tests.
6565
*
6666
* @return assertions
6767
*/
6868
@javax.annotation.Nullable
69-
@ApiModelProperty(example = "[]", value = "Array of assertions used for the test.")
69+
@ApiModelProperty(
70+
example = "[]",
71+
value = "Array of assertions used for the test. Required for single API tests.")
7072
@JsonProperty(JSON_PROPERTY_ASSERTIONS)
7173
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
7274
public List<SyntheticsAssertion> getAssertions() {

src/main/java/com/datadog/api/v1/openapi.yaml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22532,7 +22532,7 @@ components:
2253222532
data:
2253322533
metadata:
2253422534
git:
22535-
commit_sha: commit_sha
22535+
commitSha: commitSha
2253622536
branch: branch
2253722537
ci:
2253822538
pipeline: pipeline
@@ -22561,7 +22561,7 @@ components:
2256122561
example:
2256222562
metadata:
2256322563
git:
22564-
commit_sha: commit_sha
22564+
commitSha: commitSha
2256522565
branch: branch
2256622566
ci:
2256722567
pipeline: pipeline
@@ -23293,7 +23293,7 @@ components:
2329323293
description: Metadata for the Synthetics tests run.
2329423294
example:
2329523295
git:
23296-
commit_sha: commit_sha
23296+
commitSha: commitSha
2329723297
branch: branch
2329823298
ci:
2329923299
pipeline: pipeline
@@ -23320,13 +23320,13 @@ components:
2332023320
SyntheticsCIBatchMetadataGit:
2332123321
description: Git information.
2332223322
example:
23323-
commit_sha: commit_sha
23323+
commitSha: commitSha
2332423324
branch: branch
2332523325
properties:
2332623326
branch:
2332723327
description: The branch name.
2332823328
type: string
23329-
commit_sha:
23329+
commitSha:
2333023330
description: The commit SHA.
2333123331
type: string
2333223332
type: object
@@ -23341,7 +23341,7 @@ components:
2334123341
- laptop_large
2334223342
metadata:
2334323343
git:
23344-
commit_sha: commit_sha
23344+
commitSha: commitSha
2334523345
branch: branch
2334623346
ci:
2334723347
pipeline: pipeline
@@ -23431,7 +23431,7 @@ components:
2343123431
- laptop_large
2343223432
metadata:
2343323433
git:
23434-
commit_sha: commit_sha
23434+
commitSha: commitSha
2343523435
branch: branch
2343623436
ci:
2343723437
pipeline: pipeline
@@ -23461,7 +23461,7 @@ components:
2346123461
- laptop_large
2346223462
metadata:
2346323463
git:
23464-
commit_sha: commit_sha
23464+
commitSha: commitSha
2346523465
branch: branch
2346623466
ci:
2346723467
pipeline: pipeline
@@ -24638,7 +24638,8 @@ components:
2463824638
properties:
2463924639
assertions:
2464024640
default: []
24641-
description: Array of assertions used for the test.
24641+
description: Array of assertions used for the test. Required for single
24642+
API tests.
2464224643
example: []
2464324644
items:
2464424645
$ref: '#/components/schemas/SyntheticsAssertion'

src/test/resources/com/datadog/api/v1/client/api/synthetics.feature

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,13 +442,13 @@ Feature: Synthetics
442442
@generated @skip
443443
Scenario: Trigger tests from CI/CD pipelines returns "JSON format is wrong" response
444444
Given new "TriggerCITests" request
445-
And body with value {"tests": [{"allowInsecureCertificates": null, "basicAuth": {"password": "", "username": ""}, "body": null, "bodyType": null, "cookies": null, "deviceIds": ["laptop_large"], "followRedirects": null, "headers": null, "locations": [null], "metadata": {"ci": {"pipeline": null, "provider": null}, "git": {"branch": null, "commit_sha": null}}, "public_id": "aaa-aaa-aaa", "retry": {"count": null, "interval": null}, "startUrl": null, "variables": null}]}
445+
And body with value {"tests": [{"allowInsecureCertificates": null, "basicAuth": {"password": "", "username": ""}, "body": null, "bodyType": null, "cookies": null, "deviceIds": ["laptop_large"], "followRedirects": null, "headers": null, "locations": [null], "metadata": {"ci": {"pipeline": null, "provider": null}, "git": {"branch": null, "commitSha": null}}, "public_id": "aaa-aaa-aaa", "retry": {"count": null, "interval": null}, "startUrl": null, "variables": null}]}
446446
When the request is sent
447447
Then the response status is 400 JSON format is wrong
448448

449449
@generated @skip
450450
Scenario: Trigger tests from CI/CD pipelines returns "OK" response
451451
Given new "TriggerCITests" request
452-
And body with value {"tests": [{"allowInsecureCertificates": null, "basicAuth": {"password": "", "username": ""}, "body": null, "bodyType": null, "cookies": null, "deviceIds": ["laptop_large"], "followRedirects": null, "headers": null, "locations": [null], "metadata": {"ci": {"pipeline": null, "provider": null}, "git": {"branch": null, "commit_sha": null}}, "public_id": "aaa-aaa-aaa", "retry": {"count": null, "interval": null}, "startUrl": null, "variables": null}]}
452+
And body with value {"tests": [{"allowInsecureCertificates": null, "basicAuth": {"password": "", "username": ""}, "body": null, "bodyType": null, "cookies": null, "deviceIds": ["laptop_large"], "followRedirects": null, "headers": null, "locations": [null], "metadata": {"ci": {"pipeline": null, "provider": null}, "git": {"branch": null, "commitSha": null}}, "public_id": "aaa-aaa-aaa", "retry": {"count": null, "interval": null}, "startUrl": null, "variables": null}]}
453453
When the request is sent
454454
Then the response status is 200 OK

0 commit comments

Comments
 (0)