@@ -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" : "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" }
3838 When the request is sent
3939 Then the response status is 400 - JSON format is wrong
4040
@@ -59,7 +59,7 @@ Feature: Synthetics
5959 @generated @skip @team:DataDog/synthetics-app
6060 Scenario : Create a browser test returns "Test quota is reached" response
6161 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" }
6363 When the request is sent
6464 Then the response status is 402 Test quota is reached
6565
@@ -241,23 +241,23 @@ Feature: Synthetics
241241 Scenario : Edit a browser test returns "- JSON format is wrong" response
242242 Given new "UpdateBrowserTest" request
243243 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" }
245245 When the request is sent
246246 Then the response status is 400 - JSON format is wrong
247247
248248 @generated @skip @team:DataDog/synthetics-app
249249 Scenario : Edit a browser test returns "- Synthetic Monitoring is not activated for the user" response
250250 Given new "UpdateBrowserTest" request
251251 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" }
253253 When the request is sent
254254 Then the response status is 404 - Synthetic Monitoring is not activated for the user
255255
256256 @generated @skip @team:DataDog/synthetics-app
257257 Scenario : Edit a browser test returns "OK" response
258258 Given new "UpdateBrowserTest" request
259259 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" }
261261 When the request is sent
262262 Then the response status is 200 OK
263263
0 commit comments