aboutsummaryrefslogtreecommitdiffstats
path: root/csit
diff options
context:
space:
mode:
authorHesam Rahimi <hesam.rahimi@huawei.com>2021-06-07 20:02:32 +0000
committerKAPIL SINGAL <ks220y@att.com>2021-06-22 16:50:48 +0000
commit55378e7480442b8cee46d215a85e194c56b38f36 (patch)
tree991ff17070697c5cfef7306b3f195ed1b258a236 /csit
parentb20349a92894af9b948c8bf2b5c67c5bd86f9da5 (diff)
Effort to reduce image layer and size
Removing few ENV version variable and those should be read from pom properties (maven-resource-plugin filtering true) Combined Dockerfile and Standalone.Dockerfile Adding Docker build arg AAF which will decide whether to add aaa-app-config.xml in docker image or not for standalone Updated docker-maven-plugin to 0.34.0 to have noCache true Removing start-it-container execution as it's being tested by CSIT Replacing maven-exec-plugin with maven-antrun-plugin Updating latest base docker images versions Updating parent version to 2.1.7 Issue-ID: CCSDK-3226 Signed-off-by: Singal, Kapil (ks220y) <ks220y@att.com> Change-Id: I68f8f4780804a2014b73b5eeb9dba29d1896a602 Former-commit-id: 866ddebbcac80c38c79c46bb37373123a0c678f0
Diffstat (limited to 'csit')
-rw-r--r--csit/plans/sdnc/setup.sh5
-rwxr-xr-xcsit/scripts/docker-compose.yml4
-rwxr-xr-xcsit/sdnc-csit.env10
-rw-r--r--csit/tests/sdnc/sdnc_csit.robot32
4 files changed, 26 insertions, 25 deletions
diff --git a/csit/plans/sdnc/setup.sh b/csit/plans/sdnc/setup.sh
index ba1c0b86..ec5d9b9e 100644
--- a/csit/plans/sdnc/setup.sh
+++ b/csit/plans/sdnc/setup.sh
@@ -18,7 +18,8 @@
# Modifications copyright (c) 2021 AT&T Intellectual Property
#
-#
+# Remove all dangling images
+docker image prune -f
###################### Netconf Simulator Setup ######################
@@ -30,7 +31,7 @@ fi
mkdir ${WORKSPACE}/archives/pnf-simulator
git clone "https://gerrit.onap.org/r/integration/simulators/pnf-simulator" ${WORKSPACE}/archives/pnf-simulator
-# Fix docker-compose to add nexus repo for onap dockers
+# Fix docker-compose to add nexus repo for onap dockers
mv ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/docker-compose.yml ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/docker-compose.yml.orig
cat ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/docker-compose.yml.orig | sed -e "s/image: onap/image: nexus3.onap.org:10001\/onap/" > ${WORKSPACE}/archives/pnf-simulator/netconfsimulator/docker-compose.yml
diff --git a/csit/scripts/docker-compose.yml b/csit/scripts/docker-compose.yml
index 4a36dc7a..525538a4 100755
--- a/csit/scripts/docker-compose.yml
+++ b/csit/scripts/docker-compose.yml
@@ -24,7 +24,7 @@ services:
sdnc:
image: onap/sdnc-image:latest
- container_name: sdnc
+ container_name: sdnc_controller
volumes:
- /etc/localtime:/etc/localtime:ro
- $SDNC_CERT_PATH:/opt/opendaylight/current/certs
@@ -50,7 +50,7 @@ services:
- ODL_USER=${ODL_USER}
- ODL_PASSWORD=${ODL_PASSWORD}
- ODL_CERT_DIR=/opt/opendaylight/current/certs
- - SDNC_DB_INIT=true
+ - SDNC_DB_INIT=true
- HONEYCOMB_USER=${HONEYCOMB_USER}
- HONEYCOMB_PASSWORD=${HONEYCOMB_PASSWORD}
- TRUSTSTORE_PASSWORD=${TRUSTSTORE_PASSWORD}
diff --git a/csit/sdnc-csit.env b/csit/sdnc-csit.env
index 5176380b..e1c95f58 100755
--- a/csit/sdnc-csit.env
+++ b/csit/sdnc-csit.env
@@ -1,4 +1,4 @@
-export SDNC_CONTAINER_NAME=sdnc
+export SDNC_CONTAINER_NAME=sdnc_controller
export DB_CONTAINER_NAME=mariadb
export SDNC_CERT_PATH=${WORKSPACE}/archives/certs
export NETCONF_PNP_SIM_CONTAINER_NAME=netconf-simulator
@@ -9,10 +9,10 @@ export GERRIT_BRANCH=${GERRIT_BRANCH:-master}
export NEXUS_USERNAME=${NEXUS_USERNAME:-docker}
export NEXUS_PASSWD=${NEXUS_PASSWD:-docker}
export NEXUS_DOCKER_REPO=${NEXUS_DOCKER_REPO:-nexus3.onap.org:10001}
-export MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-secretPassword}
-export MYSQL_USER=${MYSQL_USER:-testdb}
-export MYSQL_PASSWORD=${MYSQL_PASSWORD:-test123}
-export MYSQL_DATABASE=${MYSQL_DATABASE:-testdb}
+export MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD:-itsASecret}
+export MYSQL_USER=${MYSQL_USER:-sdnctl}
+export MYSQL_PASSWORD=${MYSQL_PASSWORD:-gamma}
+export MYSQL_DATABASE=${MYSQL_DATABASE:-sdnctl}
export ODL_USER=${ODL_USER:-admin}
export ODL_PASSWORD=${ODL_PASSWORD:-Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U}
export HONEYCOMB_USER=${HONEYCOMB_USER:-admin}
diff --git a/csit/tests/sdnc/sdnc_csit.robot b/csit/tests/sdnc/sdnc_csit.robot
index 957a95f1..7fdbbbfe 100644
--- a/csit/tests/sdnc/sdnc_csit.robot
+++ b/csit/tests/sdnc/sdnc_csit.robot
@@ -43,20 +43,20 @@ Check GRA service assign
[Documentation] Testing GRA service assign
Send Post File And Validate Response ${GRA_SERVICE_TOPOLOGY} ${GRA_DATA_DIRECTORY}/svc-topology-assign.json 200
-Check GRA network assign
- [Tags] SDNC-GRA-NETWORK-ASSIGN
- [Documentation] Testing GRA network assign
- Send Post File And Validate Response ${GRA_NETWORK_TOPOLOGY} ${GRA_DATA_DIRECTORY}/network-topology-assign.json 200
+#Check GRA network assign
+# [Tags] SDNC-GRA-NETWORK-ASSIGN
+# [Documentation] Testing GRA network assign
+# Send Post File And Validate Response ${GRA_NETWORK_TOPOLOGY} ${GRA_DATA_DIRECTORY}/network-topology-assign.json 200
-Check GRA vnf assign
- [Tags] SDNC-GRA-VNF-ASSIGN
- [Documentation] Testing GRA vnf assign
- Send Post File And Validate Response ${GRA_VNF_TOPOLOGY} ${GRA_DATA_DIRECTORY}/vnf-topology-assign.json 200
+#Check GRA vnf assign
+# [Tags] SDNC-GRA-VNF-ASSIGN
+# [Documentation] Testing GRA vnf assign
+# Send Post File And Validate Response ${GRA_VNF_TOPOLOGY} ${GRA_DATA_DIRECTORY}/vnf-topology-assign.json 200
-Check GRA vf-module assign
- [Tags] SDNC-GRA-VF-MODULE-ASSIGN
- [Documentation] Testing GRA vf-module assign
- Send Post File And Validate Response ${GRA_VFMODULE_TOPOLOGY} ${GRA_DATA_DIRECTORY}/vf-module-topology-assign.json 200
+#Check GRA vf-module assign
+# [Tags] SDNC-GRA-VF-MODULE-ASSIGN
+# [Documentation] Testing GRA vf-module assign
+# Send Post File And Validate Response ${GRA_VFMODULE_TOPOLOGY} ${GRA_DATA_DIRECTORY}/vf-module-topology-assign.json 200
Check GRA vf-module unassign
[Tags] SDNC-GRA-VF-MODULE-UNASSIGN
@@ -68,10 +68,10 @@ Check GRA vnf unassign
[Documentation] Testing GRA vnf unassign
Send Post File And Validate Response ${GRA_VNF_TOPOLOGY} ${GRA_DATA_DIRECTORY}/vnf-topology-unassign.json 200
-Check GRA network unassign
- [Tags] SDNC-GRA-NETWORK-UNASSIGN
- [Documentation] Testing GRA network unassign
- Send Post File And Validate Response ${GRA_NETWORK_TOPOLOGY} ${GRA_DATA_DIRECTORY}/network-topology-unassign.json 200
+#Check GRA network unassign
+# [Tags] SDNC-GRA-NETWORK-UNASSIGN
+# [Documentation] Testing GRA network unassign
+# Send Post File And Validate Response ${GRA_NETWORK_TOPOLOGY} ${GRA_DATA_DIRECTORY}/network-topology-unassign.json 200
Check GRA service delete
[Tags] SDNC-GRA-SERVICE-DELETE