Implement transform directive for type = base64-line-delimited
This merge request did the following:
- Implement
transformdirective fortype=base64-line-delimited - A fixture rules file to demonstrate the
transformdirective, it looks like:[ { "match": { "type": "path", "regex_value":"^/-/test-routable-token/(?<payload>.*)$" }, "transform": { "type": "base64-line-delimited", "input": "${payload}", "output": "decoded" }, "action": "classify", "classify": { "type": "SESSION_PREFIX", "value": "cell-${decoded.c}" } } ] - Add an integration test for the above fixture rules file.
- Add unit tests for
Rule#interpolateValueandRule#transformMatchResultwhich are the core fortransformlogic.
Closes #70
Edited by Lin Jen-Shin