OXIESEC PANEL
- Current Dir:
/
/
var
/
www
/
cream
/
Xpress
/
vendor
/
aws
/
aws-sdk-php
/
tests
/
EndpointV2
/
valid-rules
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
05/19/2025 10:07:17 AM
rwxr-xr-x
📄
aws-region.json
1022 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
default-values.json
986 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
deprecated-param.json
824 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
eventbridge.json
8.62 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
fns.json
2.45 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
get-attr-type-inference.json
918 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
headers.json
978 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
is-virtual-hostable-s3-bucket.json
971 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
local-region-override.json
720 bytes
03/05/2025 10:56:42 AM
rw-r--r--
📄
parse-arn.json
6.39 KB
03/05/2025 10:56:42 AM
rw-r--r--
📄
parse-url.json
2.24 KB
03/05/2025 10:56:43 AM
rw-r--r--
📄
partition-fn.json
2.48 KB
03/05/2025 10:56:43 AM
rw-r--r--
📄
substring.json
1.97 KB
03/05/2025 10:56:43 AM
rw-r--r--
📄
uri-encode.json
948 bytes
03/05/2025 10:56:43 AM
rw-r--r--
📄
valid-hostlabel.json
1.21 KB
03/05/2025 10:56:43 AM
rw-r--r--
Editing: substring.json
Close
{ "parameters": { "TestCaseId": { "type": "string", "required": true, "documentation": "Test case id used to select the test case to use" }, "Input": { "type": "string", "required": true, "documentation": "the input used to test substring" } }, "rules": [ { "documentation": "Substring from beginning of input", "conditions": [ { "fn": "stringEquals", "argv": [ "{TestCaseId}", "1" ] }, { "fn": "substring", "argv": [ "{Input}", 0, 4, false ], "assign": "output" } ], "error": "The value is: `{output}`", "type": "error" }, { "documentation": "Substring from end of input", "conditions": [ { "fn": "stringEquals", "argv": [ "{TestCaseId}", "2" ] }, { "fn": "substring", "argv": [ "{Input}", 0, 4, true ], "assign": "output" } ], "error": "The value is: `{output}`", "type": "error" }, { "documentation": "Substring the middle of the string", "conditions": [ { "fn": "stringEquals", "argv": [ "{TestCaseId}", "3" ] }, { "fn": "substring", "argv": [ "{Input}", 1, 3, false ], "assign": "output" } ], "error": "The value is: `{output}`", "type": "error" }, { "documentation": "fallback when no tests match", "conditions": [], "error": "No tests matched", "type": "error" } ], "version": "1.3" }