@@ -16,21 +16,21 @@ Feature: Application Security
1616 @generated @skip @team:DataDog/asm-backend
1717 Scenario : Create a WAF custom rule returns "Bad Request" response
1818 Given new "CreateApplicationSecurityWafCustomRule" request
19- And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from a bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
19+ And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "type" : "string" , " value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from a bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
2020 When the request is sent
2121 Then the response status is 400 Bad Request
2222
2323 @generated @skip @team:DataDog/asm-backend
2424 Scenario : Create a WAF custom rule returns "Concurrent Modification" response
2525 Given new "CreateApplicationSecurityWafCustomRule" request
26- And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from a bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
26+ And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "type" : "string" , " value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from a bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
2727 When the request is sent
2828 Then the response status is 409 Concurrent Modification
2929
3030 @generated @skip @team:DataDog/asm-backend
3131 Scenario : Create a WAF custom rule returns "Created" response
3232 Given new "CreateApplicationSecurityWafCustomRule" request
33- And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from a bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
33+ And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "type" : "string" , " value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from a bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
3434 When the request is sent
3535 Then the response status is 201 Created
3636
@@ -153,15 +153,15 @@ Feature: Application Security
153153 Scenario : Update a WAF Custom Rule returns "Concurrent Modification" response
154154 Given new "UpdateApplicationSecurityWafCustomRule" request
155155 And request contains "custom_rule_id" parameter from "REPLACE.ME"
156- And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
156+ And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "type" : "string" , " value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
157157 When the request is sent
158158 Then the response status is 409 Concurrent Modification
159159
160160 @generated @skip @team:DataDog/asm-backend
161161 Scenario : Update a WAF Custom Rule returns "Not Found" response
162162 Given new "UpdateApplicationSecurityWafCustomRule" request
163163 And request contains "custom_rule_id" parameter from "REPLACE.ME"
164- And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
164+ And body with value {"data" : {"attributes" : {"action" : {"action" : "block_request" , "parameters" : {"location" : "/blocking" , "status_code" : 403}}, "blocking" : false, "conditions" : [{"operator" : "match_regex" , "parameters" : {"data" : "blocked_users" , "inputs" : [{"address" : "server.db.statement" , "key_path" : []}], "list" : [], "options" : {"case_sensitive" : false, "min_length" : 0}, "regex" : "path.*" , "type" : "string" , " value" : "custom_tag" }}], "enabled" : false, "name" : "Block request from bad useragent" , "path_glob" : "/api/search/*" , "scope" : [{"env" : "prod" , "service" : "billing-service" }], "tags" : {"category" : "business_logic" , "type" : "users.login.success" }}, "type" : "custom_rule" }}
165165 When the request is sent
166166 Then the response status is 404 Not Found
167167
0 commit comments