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
5 changes: 5 additions & 0 deletions packs/fixtures/config.schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,8 @@
type: "integer"
default: 19009
required: false
config_item_one:
description: "Item use to test config context."
type: "string"
required: true
default: "Testing"
28 changes: 28 additions & 0 deletions packs/tests/actions/chains/test_render_config_context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---

# Workflow for testing config context rendering

chain:

# Executing inquiry workflow via CLI instead of directly via ref so this workflow doesn't get paused
- name: "run_render_config_context_action"
ref: "fixtures.render_config_context"
on-success: "assert_action_output"
on-failure: "fail"

###########
# ASSERTS #
###########

- name: "assert_action_output"
ref: "asserts.object_equals"
params:
object: "{{ run_render_config_context_action.result }}"
expected:
context_value: Testing
on-failure: "fail"

- name: "fail"
ref: core.local
params:
cmd: exit 1
20 changes: 20 additions & 0 deletions packs/tests/actions/test_render_config_context.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# Action definition metadata
name: "test_render_config_context"
description: "Workflow which tests render_config_context functionality"
runner_type: "action-chain"
enabled: true
entry_point: "chains/test_render_config_context.yaml"
parameters:
token:
type: "string"
description: "st2 auth token"
default: ""
protocol:
type: "string"
description: "http/https"
default: "http"
hostname:
type: "string"
description: "St2 host to run tests against"
default: "127.0.0.1"
6 changes: 0 additions & 6 deletions packs/tests/config.schema.yaml

This file was deleted.