blob: e0e732c9ffd7cbbe4a59f74d30ec2ac732512c41 [file] [log] [blame]
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +02001#!/bin/bash
2
3# ============LICENSE_START===============================================
4# Copyright (C) 2020 Nordix Foundation. All rights reserved.
5# ========================================================================
6# Licensed under the Apache License, Version 2.0 (the "License");
7# you may not use this file except in compliance with the License.
8# You may obtain a copy of the License at
9#
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010010# http://www.apache.org/licenses/LICENSE-2.0
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020011#
12# Unless required by applicable law or agreed to in writing, software
13# distributed under the License is distributed on an "AS IS" BASIS,
14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15# See the License for the specific language governing permissions and
16# limitations under the License.
17# ============LICENSE_END=================================================
18#
BjornMagnussonXA7b36db62020-11-23 10:57:57 +010019#Profile for ONAP guilin release
BjornMagnussonXA49f0e5a2020-11-08 22:41:39 +010020TEST_ENV_PROFILE="ONAP-GUILIN"
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +010021FLAVOUR="ONAP"
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010022
23########################################
24## Nexus repo settings
25########################################
26
27# Nexus repos for developed images
BjornMagnussonXA7b36db62020-11-23 10:57:57 +010028NEXUS_PROXY_REPO="nexus3.onap.org:10001/"
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010029NEXUS_RELEASE_REPO="nexus3.onap.org:10002/"
30NEXUS_SNAPSHOT_REPO="nexus3.onap.org:10003/"
31NEXUS_STAGING_REPO=$NEXUS_SNAPSHOT_REPO #staging repo not used in ONAP, using snapshot
BjornMagnussonXA49f0e5a2020-11-08 22:41:39 +010032
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010033# Nexus repos for images used by test (not developed by the project)
34NEXUS_RELEASE_REPO_ORAN="nexus3.o-ran-sc.org:10002/" # Only for released ORAN images
35NEXUS_RELEASE_REPO_ONAP=$NEXUS_RELEASE_REPO
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020036
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010037########################################
38# Set up of image and tags for the test.
39########################################
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020040
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010041# NOTE: One environment variable containing the image name and tag is create by the test script
42# for each image from the env variables below.
43# The variable is created by removing the suffix "_BASE" from the base image variable name.
44# Example: POLICY_AGENT_IMAGE_BASE -> POLICY_AGENT_IMAGE
45# This var will point to the local or remote image depending on cmd line arguments.
46# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
47# For images built by the script, only tag #1 shall be specified
48# For project images, only tag #1, #2, #3 and #4 shall be specified
49# For ORAN images (non project), only tag #5 shall be specified
50# For ONAP images (non project), only tag #6 shall be specified
51# For all other images, only tag #7 shall be specified
52# 1 XXX_LOCAL: local images: <image-name>:<local-tag>
53# 2 XXX_REMOTE_SNAPSHOT: snapshot images: <snapshot-nexus-repo><image-name>:<snapshot-tag>
54# 3 XXX_REMOTE: staging images: <staging-nexus-repo><image-name>:<staging-tag>
55# 4 XXX_REMOTE_RELEASE: release images: <release-nexus-repo><image-name>:<release-tag>
56# 5 XXX_REMOTE_RELEASE_ORAN: ORAN release images: <oran-release-nexus-repo><image-name>:<release-tag>
57# 6 XXX_REMOTE_RELEASE_ONAP: ONAP release images: <onap-release-nexus-repo><image-name>:<release-tag>
58# 7 XXX_PROXY: other images, not produced by the project: <proxy-nexus-repo><mage-name>:<proxy-tag>
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020059
60
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010061# Policy Agent image and tags
62POLICY_AGENT_IMAGE_BASE="onap/ccsdk-oran-a1policymanagementservice"
63POLICY_AGENT_IMAGE_TAG_LOCAL="1.0.2-SNAPSHOT"
64POLICY_AGENT_IMAGE_TAG_REMOTE_SNAPSHOT="1.0.2-SNAPSHOT"
65POLICY_AGENT_IMAGE_TAG_REMOTE="1.0.2-SNAPSHOT" #Will use snapshot repo
66POLICY_AGENT_IMAGE_TAG_REMOTE_RELEASE="1.0.1"
67
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020068
69# Tag for guilin branch
70# SDNC A1 Controller remote image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010071SDNC_A1_CONTROLLER_IMAGE_BASE="onap/sdnc-image"
72SDNC_A1_CONTROLLER_IMAGE_TAG_REMOTE_SNAPSHOT="2.0.5-STAGING-latest"
73SDNC_A1_CONTROLLER_IMAGE_TAG_REMOTE="2.0.5-STAGING-latest"
74SDNC_A1_CONTROLLER_IMAGE_TAG_REMOTE_RELEASE="2.0.4" #Will use snapshot repo
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020075
76
77#SDNC DB remote image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010078#The DB is part of SDNC so handled in the same way as SDNC
79SDNC_DB_IMAGE_BASE="mysql/mysql-server"
80SDNC_DB_IMAGE_TAG_REMOTE_PROXY="5.6"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020081
82
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010083# Control Panel image and tag - uses bronze release
84CONTROL_PANEL_IMAGE_BASE="o-ran-sc/nonrtric-controlpanel"
85CONTROL_PANEL_IMAGE_TAG_REMOTE_RELEASE_ORAN="2.0.0"
86
87
88# Near RT RIC Simulator image and tags - uses bronze release
89RIC_SIM_IMAGE_BASE="o-ran-sc/a1-simulator"
90RIC_SIM_IMAGE_TAG_REMOTE_RELEASE_ORAN="2.0.0"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020091
92
93#Consul remote image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010094CONSUL_IMAGE_BASE="consul"
95CONSUL_IMAGE_TAG_REMOTE_PROXY="1.7.2"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020096#No local image for Consul, remote image always used
97
98
99#CBS remote image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100100CBS_IMAGE_BASE="onap/org.onap.dcaegen2.platform.configbinding.app-app"
101CBS_IMAGE_TAG_REMOTE_RELEASE_ONAP="2.3.0"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200102#No local image for CBS, remote image always used
103
104
105#MR stub image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100106MRSTUB_IMAGE_BASE="mrstub"
107MRSTUB_IMAGE_TAG_LOCAL="latest"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200108#No remote image for MR stub, local image always used
109
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100110
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200111#Callback receiver image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100112CR_IMAGE_BASE="callback-receiver"
113CR_IMAGE_TAG_LOCAL="latest"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200114#No remote image for CR, local image always used
115
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100116#Http proxy remote image and tag
117HTTP_PROXY_IMAGE_BASE="mitmproxy/mitmproxy"
118HTTP_PROXY_IMAGE_TAG_REMOTE_PROXY="6.0.2"
119#No local image for SSDNC DB, remote image always used
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100120
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100121
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100122#ONAP Zookeeper remote image and tag
123ONAP_ZOOKEEPER_IMAGE_BASE="onap/dmaap/zookeeper"
124ONAP_ZOOKEEPER_IMAGE_TAG_REMOTE_RELEASE_ONAP="6.0.3"
125#No local image for ONAP Zookeeper, remote image always used
126
127#ONAP Kafka remote image and tag
128ONAP_KAFKA_IMAGE_BASE="onap/dmaap/kafka111"
129ONAP_KAFKA_IMAGE_TAG_REMOTE_RELEASE_ONAP="1.0.4"
130#No local image for ONAP Kafka, remote image always used
131
132#ONAP DMAAP-MR remote image and tag
133ONAP_DMAAPMR_IMAGE_BASE="onap/dmaap/dmaap-mr"
134ONAP_DMAAPMR_IMAGE_TAG_REMOTE_RELEASE_ONAP="1.1.18"
135#No local image for ONAP DMAAP-MR, remote image always used
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100136
137# List of app short names produced by the project
138PROJECT_IMAGES_APP_NAMES="PA SDNC"
139
140# List of app short names which images pulled from ORAN
141ORAN_IMAGES_APP_NAMES="CP RICSIM"
142
143# List of app short names which images pulled from ONAP
144ONAP_IMAGES_APP_NAMES="" # Not used
145
146########################################
147# Detailed settings per app
148########################################
149
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100150
151DOCKER_SIM_NWNAME="nonrtric-docker-net" # Name of docker private network
152
153KUBE_NONRTRIC_NAMESPACE="nonrtric" # Namespace for all nonrtric components
154KUBE_SIM_NAMESPACE="nonrtric-ft" # Namespace for simulators (except MR and RICSIM)
155KUBE_ONAP_NAMESPACE="onap" # Namespace for onap (only message router)
156
157POLICY_AGENT_EXTERNAL_PORT=8081 # Policy Agent container external port (host -> container)
158POLICY_AGENT_INTERNAL_PORT=8081 # Policy Agent container internal port (container -> container)
159POLICY_AGENT_EXTERNAL_SECURE_PORT=8433 # Policy Agent container external secure port (host -> container)
160POLICY_AGENT_INTERNAL_SECURE_PORT=8433 # Policy Agent container internal secure port (container -> container)
161POLICY_AGENT_APIS="V1" # Supported northbound api versions
162PMS_VERSION="V1" # Tested version of northbound API
163PMS_API_PREFIX="" # api url prefix, only for V2
164
165POLICY_AGENT_APP_NAME="policymanagementservice" # Name for Policy Agent container
166POLICY_AGENT_DISPLAY_NAME="Policy Management Service"
167POLICY_AGENT_HOST_MNT_DIR="./mnt" # Mounted dir, relative to compose file, on the host
168POLICY_AGENT_LOGPATH="/var/log/policy-agent/application.log" # Path the application log in the Policy Agent container
169POLICY_AGENT_APP_NAME_ALIAS="policy-agent-container" # Alias name, name used by the control panel
170POLICY_AGENT_CONFIG_KEY="policy-agent" # Key for consul config
171POLICY_AGENT_PKG_NAME="org.onap.ccsdk.oran.a1policymanagementservice" # Java base package name
172POLICY_AGENT_ACTUATOR="/actuator/loggers/$POLICY_AGENT_PKG_NAME" # Url for trace/debug
173POLICY_AGENT_ALIVE_URL="/status" # Base path for alive check
174POLICY_AGENT_COMPOSE_DIR="policy_agent" # Dir in simulator_group for docker-compose
175POLICY_AGENT_CONFIG_MOUNT_PATH="/opt/app/policy-agent/config" # Path in container for config file
176POLICY_AGENT_DATA_MOUNT_PATH="/opt/app/policy-agent/data" # Path in container for data file
177POLICY_AGENT_CONFIG_FILE="application.yaml" # Container config file name
178POLICY_AGENT_DATA_FILE="application_configuration.json" # Container data file name
179
180MR_DMAAP_APP_NAME="dmaap-mr" # Name for the Dmaap MR
181MR_STUB_APP_NAME="mr-stub" # Name of the MR stub
182MR_DMAAP_DISPLAY_NAME="DMAAP Message Router"
183MR_STUB_DISPLAY_NAME="Message Router stub"
184MR_STUB_CERT_MOUNT_DIR="./cert"
185MR_EXTERNAL_PORT=3904 # MR dmaap/stub container external port
186MR_INTERNAL_PORT=3904 # MR dmaap/stub container internal port
187MR_EXTERNAL_SECURE_PORT=3905 # MR dmaap/stub container external secure port
188MR_INTERNAL_SECURE_PORT=3905 # MR dmaap/stub container internal secure port
189MR_DMAAP_LOCALHOST_PORT=3904 # MR stub container external port (host -> container)
190MR_STUB_LOCALHOST_PORT=3908 # MR stub container external port (host -> container)
191MR_DMAAP_LOCALHOST_SECURE_PORT=3905 # MR stub container internal port (container -> container)
192MR_STUB_LOCALHOST_SECURE_PORT=3909 # MR stub container external secure port (host -> container)
193MR_READ_URL="/events/A1-POLICY-AGENT-READ/users/policy-agent?timeout=15000&limit=100" # Path to read messages from MR
194MR_WRITE_URL="/events/A1-POLICY-AGENT-WRITE" # Path write messages to MR
195MR_READ_TOPIC="A1-POLICY-AGENT-READ" # Read topic
196MR_WRITE_TOPIC="A1-POLICY-AGENT-WRITE" # Write topic
197MR_STUB_ALIVE_URL="/" # Base path for mr stub alive check
198MR_DMAAP_ALIVE_URL="/topics" # Base path for dmaap-mr alive check
199MR_DMAAP_COMPOSE_DIR="dmaapmr" # Dir in simulator_group for dmaap mr for - docker-compose
200MR_STUB_COMPOSE_DIR="mrstub" # Dir in simulator_group for mr stub for - docker-compose
201MR_KAFKA_APP_NAME="kafka" # Kafka app name
202MR_ZOOKEEPER_APP_NAME="zookeeper" # Zookeeper app name
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100203
204
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100205CR_APP_NAME="callback-receiver" # Name for the Callback receiver
206CR_DISPLAY_NAME="Callback Reciever"
207CR_EXTERNAL_PORT=8090 # Callback receiver container external port (host -> container)
208CR_INTERNAL_PORT=8090 # Callback receiver container internal port (container -> container)
209CR_EXTERNAL_SECURE_PORT=8091 # Callback receiver container external secure port (host -> container)
210CR_INTERNAL_SECURE_PORT=8091 # Callback receiver container internal secure port (container -> container)
211CR_APP_CALLBACK="/callbacks" # Url for callbacks
212CR_ALIVE_URL="/" # Base path for alive check
213CR_COMPOSE_DIR="cr" # Dir in simulator_group for docker-compose
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200214
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100215CONSUL_HOST="consul-server" # Host name of consul
216CONSUL_DISPLAY_NAME="Consul"
217CONSUL_EXTERNAL_PORT=8500 # Consul container external port (host -> container)
218CONSUL_INTERNAL_PORT=8500 # Consul container internal port (container -> container)
219CONSUL_APP_NAME="polman-consul" # Name for consul container
220CONSUL_ALIVE_URL="/ui/dc1/kv" # Base path for alive check
221CONSUL_CBS_COMPOSE_DIR="consul_cbs" # Dir in simulator group for docker compose
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200222
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100223CBS_APP_NAME="polman-cbs" # Name for CBS container
224CBS_DISPLAY_NAME="Config Binding Service"
225CBS_EXTERNAL_PORT=10000 # CBS container external port (host -> container)
226CBS_INTERNAL_PORT=10000 # CBS container internal port (container -> container)
227CONFIG_BINDING_SERVICE="config-binding-service" # Host name of CBS
228CBS_ALIVE_URL="/healthcheck" # Base path for alive check
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200229
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100230RIC_SIM_DISPLAY_NAME="Near-RT RIC A1 Simulator"
231RIC_SIM_BASE="g" # Base name of the RIC Simulator container, shall be the group code
232 # Note, a prefix is added to each container name by the .env file in the 'ric' dir
233RIC_SIM_PREFIX="ricsim" # Prefix added to ric container name, added in the .env file in the 'ric' dir
234 # This prefix can be changed from the command line
235RIC_SIM_INTERNAL_PORT=8085 # RIC Simulator container internal port (container -> container).
236 # (external ports allocated by docker)
237RIC_SIM_INTERNAL_SECURE_PORT=8185 # RIC Simulator container internal secure port (container -> container).
238 # (external ports allocated by docker)
239RIC_SIM_CERT_MOUNT_DIR="./cert"
240RIC_SIM_COMPOSE_DIR="ric" # Dir in simulator group for docker compose
241RIC_SIM_ALIVE_URL="/"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200242
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100243SDNC_APP_NAME="a1controller" # Name of the SNDC A1 Controller container
244SDNC_DISPLAY_NAME="SDNC A1 Controller"
245SDNC_EXTERNAL_PORT=8282 # SNDC A1 Controller container external port (host -> container)
246SDNC_INTERNAL_PORT=8181 # SNDC A1 Controller container internal port (container -> container)
247SDNC_EXTERNAL_SECURE_PORT=8443 # SNDC A1 Controller container external securee port (host -> container)
248SDNC_INTERNAL_SECURE_PORT=8443 # SNDC A1 Controller container internal secure port (container -> container)
249SDNC_DB_APP_NAME="sdncdb" # Name of the SDNC DB container
250SDNC_A1_TRUSTSTORE_PASSWORD="a1adapter" # SDNC truststore password
251SDNC_USER="admin" # SDNC username
252SDNC_PWD="Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" # SNDC PWD
253SDNC_API_URL="/restconf/operations/A1-ADAPTER-API:" # Base url path for SNDC API
254SDNC_ALIVE_URL="/apidoc/explorer/" # Base url path for SNDC API docs (for alive check)
255SDNC_COMPOSE_DIR="sdnc" # Dir in simulator_group for docker-compose
256SDNC_KARAF_LOG="/opt/opendaylight/data/log/karaf.log" # Path to karaf log
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200257
258
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100259CONTROL_PANEL_APP_NAME="controlpanel" # Name of the Control Panel container
260CONTROL_PANEL_DISPLAY_NAME="Non-RT RIC Control Panel"
261CONTROL_PANEL_EXTERNAL_PORT=8080 # Control Panel container external port (host -> container)
262CONTROL_PANEL_INTERNAL_PORT=8080 # Control Panel container internal port (container -> container)
263CONTROL_PANEL_EXTERNAL_SECURE_PORT=8880 # Control Panel container external port (host -> container)
264CONTROL_PANEL_INTERNAL_SECURE_PORT=8082 # Control Panel container internal port (container -> container)
265CONTROL_PANEL_LOGPATH="/logs/nonrtric-controlpanel.log" # Path the application log in the Control Panel container
266CONTROL_PANEL_ALIVE_URL="/" # Base path for alive check
267CONTROL_PANEL_COMPOSE_DIR="control_panel" # Dir in simulator_group for docker-compose
268CONTROL_PANEL_CONFIG_MOUNT_PATH=/maven # Container internal path for config
269CONTROL_PANEL_CONFIG_FILE=application.properties # Config file name
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200270
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100271HTTP_PROXY_APP_NAME="httpproxy" # Name of the Http Proxy container
272HTTP_PROXY_DISPLAY_NAME="Http Proxy"
273HTTP_PROXY_EXTERNAL_PORT=8780 # Http Proxy container external port (host -> container)
274HTTP_PROXY_INTERNAL_PORT=8080 # Http Proxy container internal port (container -> container)
275HTTP_PROXY_WEB_EXTERNAL_PORT=8781 # Http Proxy container external port (host -> container)
276HTTP_PROXY_WEB_INTERNAL_PORT=8081 # Http Proxy container internal port (container -> container)
277HTTP_PROXY_CONFIG_PORT=0 # Port number for proxy config, will be set if proxy is started
278HTTP_PROXY_CONFIG_HOST_NAME="" # Proxy host, will be set if proxy is started
279HTTP_PROXY_ALIVE_URL="/" # Base path for alive check
280HTTP_PROXY_COMPOSE_DIR="httpproxy" # Dir in simulator_group for docker-compose
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100281
282########################################
283# Setting for common curl-base function
284########################################
285
286
BjornMagnussonXAe0b665e2021-01-08 22:19:18 +0100287UUID="" # UUID used as prefix to the policy id to simulate a real UUID
288 # Testscript need to set the UUID to use other this empty prefix is used
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200289