Skip to content

Commit

Permalink
Add an example rule fixture for rule with unicode name which can be used
Browse files Browse the repository at this point in the history
by end to end tests.
  • Loading branch information
Kami committed Mar 13, 2021
1 parent 3ef58c9 commit db8e85e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions contrib/examples/rules/sample_rule_with_webhook_unicode_name.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: "sample_rule_with_webhook_你好"
pack: "examples"
description: "Sample rule dumping webhook payload to a file. 你好吗"
enabled: true

trigger:
type: "core.st2.webhook"
parameters:
url: "unicode"

criteria:
trigger.body.name:
pattern: "st2"
type: "equals"

action:
ref: "core.local"
parameters:
cmd: "echo \"{{trigger.body}}\" >> ~/st2.webhook_sample.out ; sync"

0 comments on commit db8e85e

Please sign in to comment.