diff --git a/apps/cic-ussd/.config/test/integration.ini b/apps/cic-ussd/.config/test/integration.ini new file mode 100644 index 00000000..4fc189e9 --- /dev/null +++ b/apps/cic-ussd/.config/test/integration.ini @@ -0,0 +1,4 @@ +[test] +gift_value = 50.00 +server_url = http://localhost:63315/ +token_symbol = GFT diff --git a/apps/cic-ussd/tests/integration/common.yaml b/apps/cic-ussd/tests/integration/common.yaml deleted file mode 100644 index f958c7f6..00000000 --- a/apps/cic-ussd/tests/integration/common.yaml +++ /dev/null @@ -1,6 +0,0 @@ -name: values to be included/reused in tests. -description: used for describing utils used across the entire test suite. -variables: - test_token_symbol: "{tavern.env_vars.TEST_TOKEN_SYMBOL}" - test_gift_value: "{tavern.env_vars.TEST_GIFT_VALUE}" - test_server_url: "{tavern.env_vars.TEST_SERVER_URL}" diff --git a/apps/cic-ussd/tests/integration/run.sh b/apps/cic-ussd/tests/integration/run.sh index 0004f17f..031c9cbd 100644 --- a/apps/cic-ussd/tests/integration/run.sh +++ b/apps/cic-ussd/tests/integration/run.sh @@ -1,21 +1,2 @@ #!/bin/bash - -if [ -z "$TEST_SERVER_URL" ]; -then - echo "The test server url is not set !" - exit 1 -fi - -if [ -z "$TEST_GIFT_VALUE" ]; -then - echo "The test gift value is not set !" - exit 1 -fi - -if [ -z "$TEST_TOKEN_SYMBOL" ]; -then - echo "The test token symbol is not set !" - exit 1 -fi - PYTHONPATH=. tavern-ci test_accounts.tavern.yaml --debug -vv --log-level debug -s --log-cli-level debug