-
-
Notifications
You must be signed in to change notification settings - Fork 776
config_context renders against incorrect pack #4570
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e2cca81
a97fd8e
5c64ca0
62a51fb
0e780ad
0c41155
f76e6dd
82ce3c5
c81f042
6f62b3c
eaa3858
c1f0724
82fcc34
3a8598e
c81e6d1
30bd1a0
2cbe564
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,12 +1,12 @@ | ||
| --- | ||
| name: render | ||
| name: render_config_context | ||
| runner_type: python-script | ||
| description: Action that uses config context | ||
| enabled: true | ||
| entry_point: render.py | ||
| entry_point: render_config_context.py | ||
| parameters: | ||
| value1: | ||
| description: Input for action1. Defaults to config_context value. | ||
| description: Input for render_config_context. Defaults to config_context value. | ||
| required: false | ||
| type: "string" | ||
| default: "{{ config_context.config_item_one }}" |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -9,7 +9,7 @@ runner_count=1 | |
| scheduler_count=1 | ||
| workflow_engine_count=1 | ||
| use_gunicorn=true | ||
| copy_examples=false | ||
| copy_test_packs=false | ||
| load_content=true | ||
| use_ipv6=false | ||
| include_mistral=false | ||
|
|
@@ -29,7 +29,7 @@ while getopts ":r:s:w:gxcu6m" o; do | |
| use_gunicorn=false | ||
| ;; | ||
| x) | ||
| copy_examples=true | ||
| copy_test_packs=true | ||
| ;; | ||
| c) | ||
| load_content=false | ||
|
|
@@ -209,11 +209,10 @@ function st2start(){ | |
| cp -Rp ./contrib/core/ $PACKS_BASE_DIR | ||
| cp -Rp ./contrib/packs/ $PACKS_BASE_DIR | ||
|
|
||
| if [ "$copy_examples" = true ]; then | ||
| echo "Copying examples from ./contrib/examples to $PACKS_BASE_DIR" | ||
| if [ "$copy_test_packs" = true ]; then | ||
| echo "Copying test packs examples and tests to $PACKS_BASE_DIR" | ||
| cp -Rp ./contrib/examples $PACKS_BASE_DIR | ||
| cp -Rp ./st2tests/tests $PACKS_BASE_DIR | ||
| cp -p ./st2tests/tests/configs/tests.yaml $CONFIG_BASE_DIR | ||
| cp -Rp ./st2tests/packs/tests $PACKS_BASE_DIR | ||
| fi | ||
|
|
||
| # activate virtualenv to set PYTHONPATH | ||
|
|
@@ -415,8 +414,24 @@ function st2start(){ | |
| --config-file $ST2_CONF --register-all | ||
| fi | ||
|
|
||
| if [ "$copy_examples" = true ]; then | ||
| st2 run packs.setup_virtualenv packs=tests | ||
| if [ "$copy_test_packs" = true ]; then | ||
| # Check if authentication is enabled | ||
| while read -r line; do | ||
| if [ "$line" == "[auth]" ]; then | ||
| found_auth=true | ||
| fi | ||
|
|
||
| if [ "$found_auth" = true ]; then | ||
| typeset -l line | ||
| if [ "$line" = "enable = true" ]; then | ||
| echo "Warning: Please setup virtualenv for pack \"tests\" before run integration test" | ||
| break | ||
| elif [ "$line" = "enable = false" ]; then | ||
| st2 run packs.setup_virtualenv packs=tests | ||
| break | ||
| fi | ||
| fi | ||
| done < "$ST2_CONF" | ||
|
||
| fi | ||
|
|
||
| # List screen sessions | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if this is the right path
./st2tests/packs/testsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
testspack is in a completely different repo https://github.com/StackStorm/st2tests/. You have to git clone https://github.com/StackStorm/st2tests.git to a temporary location and then copy the directory./st2tests/packs/tests/from the temporary location to /opt/stackstorm/packs.