-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add b64 raw encode and decode templating function (#535)
Signed-off-by: florian.cazals <[email protected]>
- Loading branch information
1 parent
ac28dd2
commit 4ad19c6
Showing
4 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: rawb64EncodingDecoding | ||
description: Ensure that b64 encoding and decoding can be used in template | ||
title_format: "[test] correct b64 raw encoding and decoding" | ||
auto_runnable: true | ||
|
||
|
||
|
||
variables: | ||
- name: rawDecoded | ||
expression: |- | ||
"raw message"; | ||
- name: rawEncoded | ||
expression: |- | ||
"cmF3IG1lc3NhZ2U"; | ||
steps: | ||
stepOne: | ||
description: first step | ||
action: | ||
type: echo | ||
configuration: | ||
output: | ||
a: '{{ eval `rawDecoded` | b64RawEnc }}' | ||
b: '{{ eval `rawEncoded` | b64RawDec }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters