@@ -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" }, "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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" , "type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , " certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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
@@ -59,7 +59,7 @@ Feature: Synthetics
59
59
@generated @skip @team:DataDog/synthetics-app
60
60
Scenario : Create a browser test returns "Test quota is reached" response
61
61
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" }, "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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" }
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" , " certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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
63
When the request is sent
64
64
Then the response status is 402 Test quota is reached
65
65
@@ -241,23 +241,23 @@ Feature: Synthetics
241
241
Scenario : Edit a browser test returns "- JSON format is wrong" response
242
242
Given new "UpdateBrowserTest" request
243
243
And request contains "public_id" parameter from "REPLACE.ME"
244
- And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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" }
244
+ And body with value {"config" : {"assertions" : [], "configVariables" : [{"name" : "VARIABLE_NAME" , "type" : "text" }], "request" : {"basicAuth" : {"password" : "PaSSw0RD!" , "type" : "web" , "username" : "my_username" }, "bodyType" : "text/plain" , " certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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" }
245
245
When the request is sent
246
246
Then the response status is 400 - JSON format is wrong
247
247
248
248
@generated @skip @team:DataDog/synthetics-app
249
249
Scenario : Edit a browser test returns "- Synthetic Monitoring is not activated for the user" response
250
250
Given new "UpdateBrowserTest" request
251
251
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" }, "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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" }
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" , " certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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
253
When the request is sent
254
254
Then the response status is 404 - Synthetic Monitoring is not activated for the user
255
255
256
256
@generated @skip @team:DataDog/synthetics-app
257
257
Scenario : Edit a browser test returns "OK" response
258
258
Given new "UpdateBrowserTest" request
259
259
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" }, "certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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" }
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" , " certificate" : {"cert" : {}, "key" : {}}, "certificateDomains" : [], "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" : {"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
261
When the request is sent
262
262
Then the response status is 200 OK
263
263
0 commit comments