@@ -55,14 +55,14 @@ Feature: Synthetics
55
55
@generated @skip
56
56
Scenario : Create a global variable returns "Invalid request" response
57
57
Given new "CreateGlobalVariable" request
58
- And body with value {"description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
58
+ And body with value {"attributes" : { "restricted_roles" : [null]}, " description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
59
59
When the request is sent
60
60
Then the response status is 400 Invalid request
61
61
62
62
@generated @skip
63
63
Scenario : Create a global variable returns "OK" response
64
64
Given new "CreateGlobalVariable" request
65
- And body with value {"description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
65
+ And body with value {"attributes" : { "restricted_roles" : [null]}, " description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
66
66
When the request is sent
67
67
Then the response status is 200 OK
68
68
@@ -191,15 +191,15 @@ Feature: Synthetics
191
191
Scenario : Edit a global variable returns "Invalid request" response
192
192
Given new "EditGlobalVariable" request
193
193
And request contains "variable_id" parameter from "<PATH>"
194
- And body with value {"description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
194
+ And body with value {"attributes" : { "restricted_roles" : [null]}, " description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
195
195
When the request is sent
196
196
Then the response status is 400 Invalid request
197
197
198
198
@generated @skip
199
199
Scenario : Edit a global variable returns "OK" response
200
200
Given new "EditGlobalVariable" request
201
201
And request contains "variable_id" parameter from "<PATH>"
202
- And body with value {"description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
202
+ And body with value {"attributes" : { "restricted_roles" : [null]}, " description" : "Example description" , "name" : "MY_VARIABLE" , "parse_test_options" : {"field" : "content-type" , "parser" : {"type" : "regex" , "value" : ".*" }, "type" : "http_body" }, "parse_test_public_id" : "abc-def-123" , "tags" : ["team:front" , "test:workflow-1" ], "value" : {"secure" : true, "value" : "value" }}
203
203
When the request is sent
204
204
Then the response status is 200 OK
205
205
0 commit comments