Implement transform directive for type = base64-line-delimited
This merge request did the following:
- Implement
transform
directive fortype
=base64-line-delimited
- A fixture rules file to demonstrate the
transform
directive, it looks like:[ { "match": { "type": "path", "regex_value":"^/-/test-routable-token/(?<payload>.*)$" }, "transform": { "type": "base64-line-delimited", "name": "decoded", "value": "${payload}" }, "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#interpolateValue
andRule#transformMatchResult
which are the core fortransform
logic.
Closes #70
Edited by Lin Jen-Shin