Skip to content

Commit eabc4a9

Browse files
committed
Update error message and add test case
This commit updates the error message shown to the user and also adds unit testcase to check for exception when decrypt_kv filter is specified for field marked as `secret: True`
1 parent 5634bfb commit eabc4a9

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
api_key: "{{st2kv.user.api_key | decrypt_kv}}"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
api_key:
3+
type: "string"
4+
secret: true
5+
required: true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
name : dummy_pack_11
3+
description : dummy pack
4+
version : 0.1.0
5+
author : st2-dev
6+
email : info@stackstorm.com

0 commit comments

Comments
 (0)