X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=rwcal%2Ftest%2Fcal_module_test%2Fcal_module_test;fp=rwcal%2Ftest%2Fcal_module_test%2Fcal_module_test;h=d7f21b6eda862008a14d6e674652724fe9f8195b;hb=6f07e6f33f751ab4ffe624f6037f887b243bece2;hp=0000000000000000000000000000000000000000;hpb=72a563886272088feb7cb52e4aafbe6d2c580ff9;p=osm%2FSO.git diff --git a/rwcal/test/cal_module_test/cal_module_test b/rwcal/test/cal_module_test/cal_module_test new file mode 100755 index 00000000..d7f21b6e --- /dev/null +++ b/rwcal/test/cal_module_test/cal_module_test @@ -0,0 +1,22 @@ +#!/bin/bash + +source $RIFT_INSTALL/usr/rift/systemtest/util/mano/mano_common.sh + +SYS_TEST=$RIFT_INSTALL/usr/rift/systemtest/ +PYTEST_DIR=$SYS_TEST/cal_module_test/pytest +SCRIPT_TEST="py.test -x -v -p no:cacheprovider ${PYTEST_DIR}/cal_module_test.py" +test_prefix="cal_module_test" +TEST_NAME="TC_CAL_MODULE_TEST" +RESULT_XML="cal_module_test.xml" + +parse_args "${@}" +test_cmd="${SCRIPT_TEST}" +append_args test_cmd os-host "\"${cloud_host}\"" +append_args test_cmd os-user "\"${user}\"" +append_args test_cmd os-tenant ${tenant[0]} +append_args test_cmd junitprefix "\"${TEST_NAME}\"" +append_args test_cmd junitxml "\"${RIFT_MODULE_TEST}/${RESULT_XML}\"" + +cd "${PYTEST_DIR}" +eval ${test_cmd} +