Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions packs/tests/actions/render_config_context.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
from st2common.runners.base_action import Action


class PrintPythonVersionAction(Action):

def run(self, value1):
return {"context_value": value1}
12 changes: 12 additions & 0 deletions packs/tests/actions/render_config_context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
name: render_config_context
runner_type: python-script
description: Action that uses config context
enabled: true
entry_point: render_config_context.py
parameters:
value1:
description: Input for render_config_context. Defaults to config_context value.
required: false
type: "string"
default: "{{ config_context.config_item_one }}"
6 changes: 6 additions & 0 deletions packs/tests/config.schema.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
config_item_one:
description: "Item use to test config context."
type: "string"
required: true
default: "Testing"