From 376a9d68e3b5fd4956fb6cb5e6faa2fa746a6d80 Mon Sep 17 00:00:00 2001 From: SerenaFeng Date: Wed, 10 Aug 2016 16:03:04 +0800 Subject: [PATCH] parser integration bugfix JIRA: FUNCTEST-407 Change-Id: I9f202cb09935d9b77c5a977234bec6b505e296fd Signed-off-by: SerenaFeng --- ci/config_functest.yaml | 16 ---------------- docker/Dockerfile | 6 +----- testcases/vnf/{RNC => vRNC}/parser.py | 2 +- 3 files changed, 2 insertions(+), 22 deletions(-) rename testcases/vnf/{RNC => vRNC}/parser.py (96%) diff --git a/ci/config_functest.yaml b/ci/config_functest.yaml index fb4103d34..8e45b1d27 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/docker/Dockerfile b/docker/Dockerfile index bc6d03936..9e4697897 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/vnf/RNC/parser.py b/testcases/vnf/vRNC/parser.py similarity index 96% rename from testcases/vnf/RNC/parser.py rename to testcases/vnf/vRNC/parser.py index 91d5bb06a..d5d3f78a1 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) -- 2.16.6