@@ -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" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
37
+ And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "secure" : false, " type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "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
@@ -55,11 +55,12 @@ Feature: Synthetics
55
55
When the request is sent
56
56
Then the response status is 200 OK - Returns the created test details.
57
57
And the response "name" is equal to "{{ unique }}"
58
+ And the response "config.configVariables[0].secure" is equal to true
58
59
59
60
@generated @skip @team:DataDog/synthetics-app
60
61
Scenario : Create a browser test returns "Test quota is reached" response
61
62
Given new "CreateSyntheticsBrowserTest" request
62
- And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
63
+ And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "secure" : false, " type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
63
64
When the request is sent
64
65
Then the response status is 402 Test quota is reached
65
66
@@ -249,23 +250,23 @@ Feature: Synthetics
249
250
Scenario : Edit a browser test returns "- JSON format is wrong" response
250
251
Given new "UpdateBrowserTest" request
251
252
And request contains "public_id" parameter from "REPLACE.ME"
252
- And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
253
+ And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "secure" : false, " type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
253
254
When the request is sent
254
255
Then the response status is 400 - JSON format is wrong
255
256
256
257
@generated @skip @team:DataDog/synthetics-app
257
258
Scenario : Edit a browser test returns "- Synthetic Monitoring is not activated for the user" response
258
259
Given new "UpdateBrowserTest" request
259
260
And request contains "public_id" parameter from "REPLACE.ME"
260
- And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
261
+ And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "secure" : false, " type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
261
262
When the request is sent
262
263
Then the response status is 404 - Synthetic Monitoring is not activated for the user
263
264
264
265
@generated @skip @team:DataDog/synthetics-app
265
266
Scenario : Edit a browser test returns "OK" response
266
267
Given new "UpdateBrowserTest" request
267
268
And request contains "public_id" parameter from "REPLACE.ME"
268
- And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
269
+ And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "secure" : false, " type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , "callType" : "unary" , "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "proxy" : {"url" : "https://example.com" }, "service" : "Greeter" , "url" : "https://example.com" }, "variables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }]}, "locations" : ["aws:eu-west-3" ], "message" : "" , "name" : "Example test name" , "options" : {"ci" : {"executionRule" : "blocking" }, "device_ids" : ["laptop_large" ], "monitor_options" : {}, "restricted_roles" : ["xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" ], "retry" : {}, "rumSettings" : {"applicationId" : "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx" , "clientTokenId" : 12345, "isEnabled" : true}}, "status" : "live" , "steps" : [{"type" : "assertElementContent" }], "tags" : ["env:prod" ], "type" : "browser" }
269
270
When the request is sent
270
271
Then the response status is 200 OK
271
272
0 commit comments