aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ci/config_functest.yaml16
-rwxr-xr-xci/exec_test.sh2
-rw-r--r--docker/Dockerfile6
-rwxr-xr-xtestcases/features/domino.py23
-rw-r--r--testcases/vnf/vRNC/parser.py (renamed from testcases/vnf/RNC/parser.py)2
5 files changed, 18 insertions, 31 deletions
diff --git a/ci/config_functest.yaml b/ci/config_functest.yaml
index fb4103d3..8e45b1d2 100644
--- a/ci/config_functest.yaml
+++ b/ci/config_functest.yaml
@@ -176,22 +176,6 @@ promise:
subnet_cidr: 192.168.121.0/24
router_name: promise-router
-parser:
- general:
- tenant_name: parser
- tenant_description: parser Functionality Testing
- user_name: parser
- user_pwd: parser
- image_name: parser-img
- flavor_name: parser-flavor
- flavor_vcpus: 1
- flavor_ram: 512
- flavor_disk: 0
- network_name: parser-net
- subnet_name: parser-subnet
- subnet_cidr: 192.168.160.0/24
- router_name: parser-router
-
example:
example_vm_name: example-vm
example_flavor: m1.small
diff --git a/ci/exec_test.sh b/ci/exec_test.sh
index ddbe486f..ad5041c0 100755
--- a/ci/exec_test.sh
+++ b/ci/exec_test.sh
@@ -172,7 +172,7 @@ function run_test(){
python ${FUNCTEST_REPO_DIR}/testcases/features/sfc/sfc.py
;;
"parser")
- python ${FUNCTEST_REPO_DIR}/testcases/vnf/RNC/parser.py
+ python ${FUNCTEST_REPO_DIR}/testcases/vnf/vRNC/parser.py
;;
*)
echo "The test case '${test_name}' does not exist."
diff --git a/docker/Dockerfile b/docker/Dockerfile
index bc6d0393..9e469789 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -88,12 +88,8 @@ RUN git clone https://gerrit.opnfv.org/gerrit/parser ${repos_dir}/parser
RUN pip install -r ${repos_dir}/functest/docker/requirements.pip
RUN pip install -r ${repos_dir}/rally/requirements.txt
RUN pip install -r ${repos_dir}/tempest/requirements.txt
-RUN pip install -r ${repos_dir}/parser/tosca2heat/tosca-parser/requirements.txt
-RUN pip install -r ${repos_dir}/parser/tosca2heat/heat-translator/requirements.txt
-RUN cd ${repos_dir}/parser/tosca2heat/tosca-parser && python setup.py install
-RUN cd ${repos_dir}/parser/tosca2heat/heat-translator && python setup.py install
-
+RUN /bin/bash ${repos_dir}/parser/tests/parser_install.sh ${repos_dir}
RUN ${repos_dir}/rally/install_rally.sh --yes
ADD http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-disk.img /home/opnfv/functest/data/
diff --git a/testcases/features/domino.py b/testcases/features/domino.py
index ff14d066..e4229b4c 100755
--- a/testcases/features/domino.py
+++ b/testcases/features/domino.py
@@ -40,9 +40,12 @@ def main():
stop_time = time.time()
duration = round(stop_time - start_time, 1)
- if ret == 0:
+ if ret == 0 and duration > 1:
logger.info("domino OK")
test_status = 'OK'
+ elif ret == 0 and duration <= 1:
+ logger.info("domino TEST SKIPPED")
+ test_status = 'SKIPPED'
else:
logger.info("domino FAILED")
test_status = 'NOK'
@@ -60,6 +63,8 @@ def main():
status = "FAIL"
if details['status'] == "OK":
status = "PASS"
+ elif details['status'] == "SKIPPED":
+ status = "SKIP"
logger.info("Pushing Domino results: TEST_DB_URL=%(db)s pod_name=%(pod)s "
"version=%(v)s scenario=%(s)s criteria=%(c)s details=%(d)s" % {
@@ -71,13 +76,15 @@ def main():
'b': build_tag,
'd': details,
})
- functest_utils.push_results_to_db("domino",
- "domino-multinode",
- logger,
- start_time,
- stop_time,
- status,
- details)
+
+ if status is not "SKIP":
+ functest_utils.push_results_to_db("domino",
+ "domino-multinode",
+ logger,
+ start_time,
+ stop_time,
+ status,
+ details)
if __name__ == '__main__':
main()
diff --git a/testcases/vnf/RNC/parser.py b/testcases/vnf/vRNC/parser.py
index 91d5bb06..d5d3f78a 100644
--- a/testcases/vnf/RNC/parser.py
+++ b/testcases/vnf/vRNC/parser.py
@@ -40,7 +40,7 @@ def main():
ret = functest_utils.execute_command(cmd, logger, exit_on_error=False)
stop_time = time.time()
- status, details = functest_utils.check_test_result(case_name,
+ status, details = functest_utils.check_test_result(project,
ret,
start_time,
stop_time)