@@ -34,7 +34,7 @@ Feature: Synthetics
34
34
@generated @skip @team:DataDog/synthetics-app
35
35
Scenario : Create a browser test returns "- JSON format is wrong" response
36
36
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" }
38
38
When the request is sent
39
39
Then the response status is 400 - JSON format is wrong
40
40
@@ -49,7 +49,7 @@ Feature: Synthetics
49
49
@generated @skip @team:DataDog/synthetics-app
50
50
Scenario : Create a browser test returns "Test quota is reached" response
51
51
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" }
53
53
When the request is sent
54
54
Then the response status is 402 Test quota is reached
55
55
@@ -213,23 +213,23 @@ Feature: Synthetics
213
213
Scenario : Edit a browser test returns "- JSON format is wrong" response
214
214
Given new "UpdateBrowserTest" request
215
215
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" }
217
217
When the request is sent
218
218
Then the response status is 400 - JSON format is wrong
219
219
220
220
@generated @skip @team:DataDog/synthetics-app
221
221
Scenario : Edit a browser test returns "- Synthetic Monitoring is not activated for the user" response
222
222
Given new "UpdateBrowserTest" request
223
223
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" }
225
225
When the request is sent
226
226
Then the response status is 404 - Synthetic Monitoring is not activated for the user
227
227
228
228
@generated @skip @team:DataDog/synthetics-app
229
229
Scenario : Edit a browser test returns "OK" response
230
230
Given new "UpdateBrowserTest" request
231
231
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" }
233
233
When the request is sent
234
234
Then the response status is 200 OK
235
235
@@ -513,13 +513,13 @@ Feature: Synthetics
513
513
@generated @skip @team:DataDog/synthetics-app
514
514
Scenario : Trigger tests from CI/CD pipelines returns "JSON format is wrong" response
515
515
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" : {}}]}
517
517
When the request is sent
518
518
Then the response status is 400 JSON format is wrong
519
519
520
520
@generated @skip @team:DataDog/synthetics-app
521
521
Scenario : Trigger tests from CI/CD pipelines returns "OK" response
522
522
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" : {}}]}
524
524
When the request is sent
525
525
Then the response status is 200 OK
0 commit comments