parser integration bugfix
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 10 Aug 2016 08:03:04 +0000 (16:03 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 10 Aug 2016 08:03:04 +0000 (16:03 +0800)
JIRA: FUNCTEST-407

Change-Id: I9f202cb09935d9b77c5a977234bec6b505e296fd
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
ci/config_functest.yaml
docker/Dockerfile
testcases/vnf/vRNC/parser.py [moved from testcases/vnf/RNC/parser.py with 96% similarity]

index fb4103d..8e45b1d 100644 (file)
@@ -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
index bc6d039..9e46978 100644 (file)
@@ -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/
similarity index 96%
rename from testcases/vnf/RNC/parser.py
rename to testcases/vnf/vRNC/parser.py
index 91d5bb0..d5d3f78 100644 (file)
@@ -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)