A initial CI script for network test 59/54159/2
authorzhihui wu <wu.zhihui1@zte.com.cn>
Tue, 20 Mar 2018 06:16:46 +0000 (14:16 +0800)
committerzhihui wu <wu.zhihui1@zte.com.cn>
Tue, 20 Mar 2018 06:46:48 +0000 (14:46 +0800)
This is a initial CI script for network test.
For now it verifies the containers can be correctly launched.

Change-Id: I418716a69efa5c784b300d0d8b5ce0d0823d11db
Signed-off-by: zhihui wu <wu.zhihui1@zte.com.cn>
tests/ci/network/docker-compose.yaml [new file with mode: 0644]
tests/ci/periodic.sh

diff --git a/tests/ci/network/docker-compose.yaml b/tests/ci/network/docker-compose.yaml
new file mode 100644 (file)
index 0000000..d4f2c90
--- /dev/null
@@ -0,0 +1,27 @@
+##############################################################################
+# Copyright (c) 2017 Dell EMC, ZTE and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+version: '2'
+services:
+
+  nettest:
+    container_name: nettest_qtip
+    image: opnfv/qtip-nettest:${DOCKER_TAG}
+    ports:
+      - 5001:5000
+    env_file: ${ENV_FILE}
+
+  qtip:
+    container_name: network_qtip
+    image: opnfv/qtip:${DOCKER_TAG}
+    env_file: ${ENV_FILE}
+    volumes:
+      - ${SSH_CREDENTIALS}:/root/.ssh
+    links:
+      - nettest
index cc9e806..ea2c269 100755 (executable)
@@ -15,6 +15,8 @@ source ${script_dir}/utils/start_services.sh
 
 if [[ "${TEST_SUITE}" =~ "compute" ]];then
     docker exec ${TEST_SUITE}_qtip_${SUT} bash -x /home/opnfv/repos/qtip/qtip/scripts/quickstart.sh -u "${SUT}"
+elif [[ "${TEST_SUITE}" =~ "network" ]];then
+    :
 else
     docker exec ${TEST_SUITE}_qtip bash -x /home/opnfv/repos/qtip/qtip/scripts/quickstart.sh
 fi