Skip to content

Commit 5ec9710

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 42159e33 of spec repo (#933)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4abb28f commit 5ec9710

File tree

7 files changed

+23
-22
lines changed

7 files changed

+23
-22
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.2",
7-
"regenerated": "2022-04-01 13:24:31.665250",
8-
"spec_repo_commit": "b42df806"
7+
"regenerated": "2022-04-04 08:22:32.909165",
8+
"spec_repo_commit": "42159e33"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-04-01 13:24:31.680520",
13-
"spec_repo_commit": "b42df806"
12+
"regenerated": "2022-04-04 08:22:32.923119",
13+
"spec_repo_commit": "42159e33"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10456,18 +10456,17 @@ components:
1045610456
properties:
1045710457
password:
1045810458
description: Password to use for the basic authentication.
10459-
example: ''
10459+
example: PaSSw0RD!
1046010460
type: string
1046110461
type:
1046210462
$ref: '#/components/schemas/SyntheticsBasicAuthWebType'
1046310463
username:
1046410464
description: Username to use for the basic authentication.
10465-
example: ''
10465+
example: my_username
1046610466
type: string
1046710467
required:
1046810468
- password
1046910469
- username
10470-
- type
1047110470
type: object
1047210471
SyntheticsBasicAuthWebType:
1047310472
default: web

examples/v1/synthetics/TriggerCITests.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
body = SyntheticsCITestBody(
2020
tests=[
2121
SyntheticsCITest(
22-
basic_auth=SyntheticsBasicAuthWeb(password="", type=SyntheticsBasicAuthWebType("web"), username=""),
22+
basic_auth=SyntheticsBasicAuthWeb(
23+
password="PaSSw0RD!", type=SyntheticsBasicAuthWebType("web"), username="my_username"
24+
),
2325
device_ids=[SyntheticsDeviceID("laptop_large")],
2426
locations=["aws:eu-west-3"],
2527
metadata=SyntheticsCIBatchMetadata(

examples/v1/synthetics/UpdateBrowserTest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@
3131
assertions=[],
3232
config_variables=[SyntheticsConfigVariable(name="VARIABLE_NAME", type=SyntheticsConfigVariableType("text"))],
3333
request=SyntheticsTestRequest(
34-
basic_auth=SyntheticsBasicAuthWeb(password="", type=SyntheticsBasicAuthWebType("web"), username=""),
34+
basic_auth=SyntheticsBasicAuthWeb(
35+
password="PaSSw0RD!", type=SyntheticsBasicAuthWebType("web"), username="my_username"
36+
),
3537
certificate=SyntheticsTestRequestCertificate(
3638
cert=SyntheticsTestRequestCertificateItem(), key=SyntheticsTestRequestCertificateItem()
3739
),

src/datadog_api_client/v1/model/synthetics_basic_auth.py

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/synthetics_basic_auth_web.py

Lines changed: 3 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/v1/features/synthetics.feature

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Feature: Synthetics
3434
@generated @skip @team:DataDog/synthetics-app
3535
Scenario: Create a browser test returns "- JSON format is wrong" response
3636
Given new "CreateSyntheticsBrowserTest" request
37-
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "", "type": "web", "username": ""}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
37+
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
3838
When the request is sent
3939
Then the response status is 400 - JSON format is wrong
4040

@@ -49,7 +49,7 @@ Feature: Synthetics
4949
@generated @skip @team:DataDog/synthetics-app
5050
Scenario: Create a browser test returns "Test quota is reached" response
5151
Given new "CreateSyntheticsBrowserTest" request
52-
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "", "type": "web", "username": ""}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
52+
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
5353
When the request is sent
5454
Then the response status is 402 Test quota is reached
5555

@@ -213,23 +213,23 @@ Feature: Synthetics
213213
Scenario: Edit a browser test returns "- JSON format is wrong" response
214214
Given new "UpdateBrowserTest" request
215215
And request contains "public_id" parameter from "REPLACE.ME"
216-
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "", "type": "web", "username": ""}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
216+
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
217217
When the request is sent
218218
Then the response status is 400 - JSON format is wrong
219219

220220
@generated @skip @team:DataDog/synthetics-app
221221
Scenario: Edit a browser test returns "- Synthetic Monitoring is not activated for the user" response
222222
Given new "UpdateBrowserTest" request
223223
And request contains "public_id" parameter from "REPLACE.ME"
224-
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "", "type": "web", "username": ""}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
224+
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
225225
When the request is sent
226226
Then the response status is 404 - Synthetic Monitoring is not activated for the user
227227

228228
@generated @skip @team:DataDog/synthetics-app
229229
Scenario: Edit a browser test returns "OK" response
230230
Given new "UpdateBrowserTest" request
231231
And request contains "public_id" parameter from "REPLACE.ME"
232-
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "", "type": "web", "username": ""}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
232+
And body with value {"config": {"assertions": [], "configVariables": [{"name": "VARIABLE_NAME", "type": "text"}], "request": {"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "certificate": {"cert": {}, "key": {}}, "method": "GET", "proxy": {"url": "https://example.com"}, "url": "https://example.com"}, "variables": [{"name": "VARIABLE_NAME", "type": "text"}]}, "locations": ["aws:eu-west-3"], "message": "", "name": "Example test name", "options": {"device_ids": ["laptop_large"], "monitor_options": {}, "retry": {}}, "status": "live", "steps": [{"type": "assertElementContent"}], "tags": ["env:prod"], "type": "browser"}
233233
When the request is sent
234234
Then the response status is 200 OK
235235

@@ -513,13 +513,13 @@ Feature: Synthetics
513513
@generated @skip @team:DataDog/synthetics-app
514514
Scenario: Trigger tests from CI/CD pipelines returns "JSON format is wrong" response
515515
Given new "TriggerCITests" request
516-
And body with value {"tests": [{"basicAuth": {"password": "", "type": "web", "username": ""}, "deviceIds": ["laptop_large"], "locations": ["aws:eu-west-3"], "metadata": {"ci": {"pipeline": {}, "provider": {}}, "git": {}}, "public_id": "aaa-aaa-aaa", "retry": {}}]}
516+
And body with value {"tests": [{"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "deviceIds": ["laptop_large"], "locations": ["aws:eu-west-3"], "metadata": {"ci": {"pipeline": {}, "provider": {}}, "git": {}}, "public_id": "aaa-aaa-aaa", "retry": {}}]}
517517
When the request is sent
518518
Then the response status is 400 JSON format is wrong
519519

520520
@generated @skip @team:DataDog/synthetics-app
521521
Scenario: Trigger tests from CI/CD pipelines returns "OK" response
522522
Given new "TriggerCITests" request
523-
And body with value {"tests": [{"basicAuth": {"password": "", "type": "web", "username": ""}, "deviceIds": ["laptop_large"], "locations": ["aws:eu-west-3"], "metadata": {"ci": {"pipeline": {}, "provider": {}}, "git": {}}, "public_id": "aaa-aaa-aaa", "retry": {}}]}
523+
And body with value {"tests": [{"basicAuth": {"password": "PaSSw0RD!", "type": "web", "username": "my_username"}, "deviceIds": ["laptop_large"], "locations": ["aws:eu-west-3"], "metadata": {"ci": {"pipeline": {}, "provider": {}}, "git": {}}, "public_id": "aaa-aaa-aaa", "retry": {}}]}
524524
When the request is sent
525525
Then the response status is 200 OK

0 commit comments

Comments
 (0)