Moves test configurations to config file.
This commit is contained in:
parent
1bd281f2a2
commit
07fef8df40
4
apps/cic-ussd/.config/test/integration.ini
Normal file
4
apps/cic-ussd/.config/test/integration.ini
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[test]
|
||||||
|
gift_value = 50.00
|
||||||
|
server_url = http://localhost:63315/
|
||||||
|
token_symbol = GFT
|
@ -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}"
|
|
@ -1,21 +1,2 @@
|
|||||||
#!/bin/bash
|
#!/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
|
PYTHONPATH=. tavern-ci test_accounts.tavern.yaml --debug -vv --log-level debug -s --log-cli-level debug
|
||||||
|
Loading…
Reference in New Issue
Block a user