blob: 637e5c1eaf10fc189052861f43468d05e0ac3f23 [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#
10# http://www.apache.org/licenses/LICENSE-2.0
11#
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#
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010019#Profile for ORAN Cherry
20TEST_ENV_PROFILE="ORAN-DAWN"
BjornMagnussonXA49f0e5a2020-11-08 22:41:39 +010021
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010022########################################
23## Nexus repo settings
24########################################
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020025
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010026# Nexus repos for developed images
27NEXUS_PROXY_REPO="nexus3.o-ran-sc.org:10001/"
28NEXUS_RELEASE_REPO="nexus3.o-ran-sc.org:10002/"
29NEXUS_SNAPSHOT_REPO="nexus3.o-ran-sc.org:10003/"
30NEXUS_STAGING_REPO="nexus3.o-ran-sc.org:10004/"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020031
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010032# Nexus repos for images used by test (not developed by the project)
33NEXUS_RELEASE_REPO_ONAP="nexus3.onap.org:10002/" # Only for released ONAP images
34NEXUS_RELEASE_REPO_ORAN=$NEXUS_RELEASE_REPO
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020035
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010036########################################
37# Set up of image and tags for the test.
38########################################
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020039
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010040# NOTE: One environment variable containing the image name and tag is create by the test script
41# for each image from the env variables below.
42# The variable is created by removing the suffix "_BASE" from the base image variable name.
43# Example: POLICY_AGENT_IMAGE_BASE -> POLICY_AGENT_IMAGE
44# This var will point to the local or remote image depending on cmd line arguments.
45# In addition, the repo and the image tag version are selected from the list of image tags based on the cmd line argurment.
46# For images built by the script, only tag #1 shall be specified
47# For project images, only tag #1, #2, #3 and #4 shall be specified
48# For ORAN images (non project), only tag #5 shall be specified
49# For ONAP images (non project), only tag #6 shall be specified
50# For all other images, only tag #7 shall be specified
51# 1 XXX_LOCAL: local images: <image-name>:<local-tag>
52# 2 XXX_REMOTE_SNAPSHOT: snapshot images: <snapshot-nexus-repo><image-name>:<snapshot-tag>
53# 3 XXX_REMOTE: staging images: <staging-nexus-repo><image-name>:<staging-tag>
54# 4 XXX_REMOTE_RELEASE: release images: <release-nexus-repo><image-name>:<release-tag>
55# 5 XXX_REMOTE_RELEASE_ORAN: ORAN release images: <oran-release-nexus-repo><image-name>:<release-tag>
56# 6 XXX_REMOTE_RELEASE_ONAP: ONAP release images: <onap-release-nexus-repo><image-name>:<release-tag>
57# 7 XXX_PROXY: other images, not produced by the project: <proxy-nexus-repo><mage-name>:<proxy-tag>
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020058
59
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010060# Policy Agent base image and tags
61POLICY_AGENT_IMAGE_BASE="o-ran-sc/nonrtric-policy-agent"
62POLICY_AGENT_IMAGE_TAG_LOCAL="2.2.0-SNAPSHOT"
63POLICY_AGENT_IMAGE_TAG_REMOTE_SNAPSHOT="2.2.0-SNAPSHOT"
64POLICY_AGENT_IMAGE_TAG_REMOTE="2.2.0"
65POLICY_AGENT_IMAGE_TAG_REMOTE_RELEASE="2.2.0"
66
67# ECS image and tags
68ECS_IMAGE_BASE="o-ran-sc/nonrtric-enrichment-coordinator-service"
69ECS_IMAGE_TAG_LOCAL="1.1.0-SNAPSHOT"
70ECS_IMAGE_TAG_REMOTE_SNAPSHOT="1.1.0-SNAPSHOT"
71ECS_IMAGE_TAG_REMOTE="1.1.0"
72ECS_IMAGE_TAG_REMOTE_RELEASE="1.1.0"
73
74
75# Control Panel image and tags
76CONTROL_PANEL_IMAGE_BASE="o-ran-sc/nonrtric-controlpanel"
77CONTROL_PANEL_IMAGE_TAG_LOCAL="2.2.0-SNAPSHOT"
78CONTROL_PANEL_IMAGE_TAG_REMOTE_SNAPSHOT="2.2.0-SNAPSHOT"
79CONTROL_PANEL_IMAGE_TAG_REMOTE="2.2.0"
80CONTROL_PANEL_IMAGE_TAG_REMOTE_RELEASE="2.2.0"
81
82
83# SDNC A1 Controller image and tags
84SDNC_A1_CONTROLLER_IMAGE_BASE="o-ran-sc/nonrtric-a1-controller"
85SDNC_A1_CONTROLLER_IMAGE_TAG_LOCAL="2.1.0-SNAPSHOT"
86SDNC_A1_CONTROLLER_IMAGE_TAG_REMOTE_SNAPSHOT="2.1.0-SNAPSHOT"
87SDNC_A1_CONTROLLER_IMAGE_TAG_REMOTE="2.1.0"
88SDNC_A1_CONTROLLER_IMAGE_TAG_REMOTE_RELEASE="2.1.0"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020089
90
91#SDNC DB remote image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010092SDNC_DB_IMAGE_BASE="mysql/mysql-server"
93SDNC_DB_IMAGE_TAG_REMOTE_PROXY="5.6"
94#No local image for SSDNC DB, remote image always used
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +020095
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +010096
97# RAPP Catalogue image and tags
98RAPP_CAT_IMAGE_BASE="o-ran-sc/nonrtric-r-app-catalogue"
99RAPP_CAT_IMAGE_TAG_LOCAL="1.1.0-SNAPSHOT"
100RAPP_CAT_IMAGE_TAG_REMOTE_SNAPSHOT="1.1.0-SNAPSHOT"
101RAPP_CAT_IMAGE_TAG_REMOTE="1.1.0"
102RAPP_CAT_IMAGE_TAG_REMOTE_RELEASE="1.1.0"
103
104
105# Near RT RIC Simulator image and tags
106RIC_SIM_IMAGE_BASE="o-ran-sc/a1-simulator"
107RIC_SIM_IMAGE_TAG_LOCAL="latest"
108RIC_SIM_IMAGE_TAG_REMOTE_SNAPSHOT="2.1.0-SNAPSHOT"
109RIC_SIM_IMAGE_TAG_REMOTE="2.1.0"
110RIC_SIM_IMAGE_TAG_REMOTE_RELEASE="2.1.0"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200111
112
113#Consul remote image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100114CONSUL_IMAGE_BASE="consul"
115CONSUL_IMAGE_TAG_REMOTE_PROXY="1.7.2"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200116#No local image for Consul, remote image always used
117
118
119#CBS remote image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100120CBS_IMAGE_BASE="onap/org.onap.dcaegen2.platform.configbinding.app-app"
121CBS_IMAGE_TAG_REMOTE_RELEASE_ONAP="2.3.0"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200122#No local image for CBS, remote image always used
123
124
125#MR stub image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100126MRSTUB_IMAGE_BASE="mrstub"
127MRSTUB_IMAGE_TAG_LOCAL="latest"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200128#No remote image for MR stub, local image always used
129
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100130
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200131#Callback receiver image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100132CR_IMAGE_BASE="callback-receiver"
133CR_IMAGE_TAG_LOCAL="latest"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200134#No remote image for CR, local image always used
135
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100136
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200137#Producer stub image and tag
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100138PROD_STUB_IMAGE_BASE="producer-stub"
139PROD_STUB_IMAGE_TAG_LOCAL="latest"
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200140#No remote image for producer stub, local image always used
141
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100142
143# List of app short names produced by the project
144PROJECT_IMAGES_APP_NAMES="PA ECS CP SDNC RC RICSIM"
145
146# List of app short names which images pulled from ORAN
147ORAN_IMAGES_APP_NAMES="" # Not used
148
149# List of app short names which images pulled from ONAP
150ONAP_IMAGES_APP_NAMES="CBS"
151
152
153########################################
154# Detailed settings per app
155########################################
156
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200157# Common env var for auto-test. Vars used by docker-compose need to be exported
158export DOCKER_SIM_NWNAME="nonrtric-docker-net" # Name of docker private network
159
160export POLICY_AGENT_EXTERNAL_PORT=8081 # Policy Agent container external port (host -> container)
161export POLICY_AGENT_INTERNAL_PORT=8081 # Policy Agent container internal port (container -> container)
162export POLICY_AGENT_EXTERNAL_SECURE_PORT=8433 # Policy Agent container external secure port (host -> container)
163export POLICY_AGENT_INTERNAL_SECURE_PORT=8433 # Policy Agent container internal secure port (container -> container)
BjornMagnussonXA4207b832020-11-03 09:52:49 +0100164export POLICY_AGENT_APIS="V1 V2" # Supported northbound api versions
BjornMagnussonXA7b36db62020-11-23 10:57:57 +0100165export PMS_VERSION="V2" # Tested version of northbound API
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200166
167export POLICY_AGENT_APP_NAME="policy-agent" # Name for Policy Agent container
168POLICY_AGENT_LOGPATH="/var/log/policy-agent/application.log" # Path the application log in the Policy Agent container
169export POLICY_AGENT_APP_NAME_ALIAS="policy-agent-container" # Alias name, name used by the control panel
170
171export ECS_EXTERNAL_PORT=8083 # ECS container external port (host -> container)
172export ECS_INTERNAL_PORT=8083 # ECS container internal port (container -> container)
173export ECS_EXTERNAL_SECURE_PORT=8434 # ECS container external secure port (host -> container)
174export ECS_INTERNAL_SECURE_PORT=8434 # ECS container internal secure port (container -> container)
175
176export ECS_APP_NAME="ecs" # Name for ECS container
177ECS_LOGPATH="/var/log/enrichment-coordinator-service/application.log" # Path the application log in the ECS container
178export ECS_APP_NAME_ALIAS="enrichment-service-container" # Alias name, name used by the control panel
BjornMagnussonXA49f0e5a2020-11-08 22:41:39 +0100179export ECS_HOST_MNT_DIR="./mnt" # Mounted dir, relative to compose file, on the host
180export ECS_CONTAINER_MNT_DIR="/var/enrichment-coordinator-service" # Mounted dir in the container
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200181
182export MR_EXTERNAL_PORT=3905 # MR stub container external port (host -> container)
183export MR_INTERNAL_PORT=3905 # MR stub container internal port (container -> container)
184export MR_EXTERNAL_SECURE_PORT=3906 # MR stub container external secure port (host -> container)
185export MR_INTERNAL_SECURE_PORT=3906 # MR stub container internal secure port (container -> container)
186export MR_APP_NAME="message-router" # Name for the MR
187export MR_READ_URL="/events/A1-POLICY-AGENT-READ/users/policy-agent?timeout=15000&limit=100" # Path to read messages from MR
188export MR_WRITE_URL="/events/A1-POLICY-AGENT-WRITE" # Path write messages to MR
189
190export CR_EXTERNAL_PORT=8090 # Callback receiver container external port (host -> container)
191export CR_INTERNAL_PORT=8090 # Callback receiver container internal port (container -> container)
192export CR_EXTERNAL_SECURE_PORT=8091 # Callback receiver container external secure port (host -> container)
193export CR_INTERNAL_SECURE_PORT=8091 # Callback receiver container internal secure port (container -> container)
194export CR_APP_NAME="callback-receiver" # Name for the Callback receiver
BjornMagnussonXA49f0e5a2020-11-08 22:41:39 +0100195export CR_APP_CALLBACK="/callbacks" # Url for callbacks
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200196
197export PROD_STUB_EXTERNAL_PORT=8092 # Producer stub container external port (host -> container)
198export PROD_STUB_INTERNAL_PORT=8092 # Producer stub container internal port (container -> container)
199export PROD_STUB_EXTERNAL_SECURE_PORT=8093 # Producer stub container external secure port (host -> container)
200export PROD_STUB_INTERNAL_SECURE_PORT=8093 # Producer stub container internal secure port (container -> container)
201export PROD_STUB_APP_NAME="producer-stub" # Name for the Producer stub
202
203export CONSUL_HOST="consul-server" # Host name of consul
204export CONSUL_EXTERNAL_PORT=8500 # Consul container external port (host -> container)
205export CONSUL_INTERNAL_PORT=8500 # Consul container internal port (container -> container)
206export CONSUL_APP_NAME="polman-consul" # Name for consul container
207
208export CBS_APP_NAME="polman-cbs" # Name for CBS container
209export CBS_EXTERNAL_PORT=10000 # CBS container external port (host -> container)
210export CBS_INTERNAL_PORT=10000 # CBS container internal port (container -> container)
211export CONFIG_BINDING_SERVICE="config-binding-service" # Host name of CBS
212
213export RIC_SIM_BASE="g" # Base name of the RIC Simulator container, shall be the group code
214 # Note, a prefix is added to each container name by the .env file in the 'ric' dir
215RIC_SIM_PREFIX="ricsim" # Prefix added to ric container name, added in the .env file in the 'ric' dir
216 # This prefix can be changed from the command line
217export RIC_SIM_INTERNAL_PORT=8085 # RIC Simulator container internal port (container -> container).
218 # (external ports allocated by docker)
219export RIC_SIM_INTERNAL_SECURE_PORT=8185 # RIC Simulator container internal secure port (container -> container).
220 # (external ports allocated by docker)
221
222export SDNC_APP_NAME="a1-controller" # Name of the SNDC A1 Controller container
223export SDNC_EXTERNAL_PORT=8282 # SNDC A1 Controller container external port (host -> container)
224export SDNC_INTERNAL_PORT=8181 # SNDC A1 Controller container internal port (container -> container)
225export SDNC_EXTERNAL_SECURE_PORT=8443 # SNDC A1 Controller container external securee port (host -> container)
226export SDNC_INTERNAL_SECURE_PORT=8443 # SNDC A1 Controller container internal secure port (container -> container)
227export SDNC_DB_APP_NAME="sdnc-db" # Name of the SDNC DB container
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100228export SDNC_A1_TRUSTSTORE_PASSWORD="" # SDNC truststore password
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200229SDNC_USER="admin" # SDNC username
230SDNC_PWD="Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U" # SNDC PWD
231SDNC_API_URL="/restconf/operations/A1-ADAPTER-API:" # Base url path for SNDC API
232SDNC_ALIVE_URL="/apidoc/explorer/" # Base url path for SNDC API docs (for alive check)
233SDNC_KARAF_LOG="/opt/opendaylight/data/log/karaf.log" # Path to karaf log
234
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100235export RAPP_CAT_EXTERNAL_PORT=8680 # RAPP Catalogue container external port (host -> container)
236export RAPP_CAT_INTERNAL_PORT=8080 # RAPP Catalogue container internal port (container -> container)
237export RAPP_CAT_EXTERNAL_SECURE_PORT=8633 # RAPP Catalogue container external secure port (host -> container)
238export RAPP_CAT_INTERNAL_SECURE_PORT=8433 # RAPP Catalogue container internal secure port (container -> container)
239export RAPP_CAT_APP_NAME="rapp-catalogue" # Name for the RAPP Catalogue
240
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200241
242export CONTROL_PANEL_APP_NAME="control-panel" # Name of the Control Panel container
243export CONTROL_PANEL_EXTERNAL_PORT=8080 # Control Panel container external port (host -> container)
244export CONTROL_PANEL_INTERNAL_PORT=8080 # Control Panel container external port (host -> container)
245CONTROL_PANEL_LOGPATH="/logs/nonrtric-controlpanel.log" # Path the application log in the Control Panel container
246
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100247
248########################################
249# Setting for common curl-base function
250########################################
251
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200252UUID="" # UUID used as prefix to the policy id to simulate a real UUID
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100253 # Testscript need to set the UUID otherwise this empty prefix is used
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200254
255RESTBASE="http://localhost:"$POLICY_AGENT_EXTERNAL_PORT # Base url to the Agent NB REST interface
256RESTBASE_SECURE="https://localhost:"$POLICY_AGENT_EXTERNAL_SECURE_PORT # Base url to the secure Agent NB REST interface
257DMAAPBASE="http://localhost:"$MR_EXTERNAL_PORT # Base url to the Dmaap adapter, http
258DMAAPBASE_SECURE="https://localhost:"$MR_EXTERNAL_SECURE_PORT # Base url to the Dmaap adapter, https
259ADAPTER=$RESTBASE # Adapter holds the address the agent R-APP interface (REST OR DMAAP)
BjornMagnussonXA39ad50e2020-10-22 09:55:25 +0200260 # The values of this var is swiched between the four base url when needed
261
262ECS_RESTBASE="http://localhost:"$ECS_EXTERNAL_PORT # Base url to the ECS NB REST interface
263ECS_RESTBASE_SECURE="https://localhost:"$ECS_EXTERNAL_SECURE_PORT # Base url to the secure ECS NB REST interface
264ECS_DMAAPBASE="http://localhost:"$MR_EXTERNAL_PORT # Base url to the Dmaap adapter, http
265ECS_DMAAPBASE_SECURE="https://localhost:"$MR_EXTERNAL_SECURE_PORT # Base url to the Dmaap adapter, https
266ECS_ADAPTER=$ECS_RESTBASE # Adapter holds the address the ECS R-APP interface (REST OR DMAAP)
BjornMagnussonXA49f0e5a2020-11-08 22:41:39 +0100267 # The values of this var is swiched between the four base url when needed
268
269CR_RESTBASE="http://localhost:"$CR_EXTERNAL_PORT # Base url to the Callback receiver REST interface
270CR_RESTBASE_SECURE="https://localhost:"$CR_EXTERNAL_SECURE_PORT # Base url to the secure Callback receiver REST interface
271CR_ADAPTER=$CR_RESTBASE # Adapter holds the address the CR admin interface (REST only)
BjornMagnussonXA89b64ab2020-12-16 09:21:01 +0100272 # The values of this var is swiched between the two base url when needed
273
274RC_RESTBASE="http://localhost:"$RAPP_CAT_EXTERNAL_PORT # Base url to the RAPP Catalogue REST interface
275RC_RESTBASE_SECURE="https://localhost:"$RAPP_CAT_EXTERNAL_SECURE_PORT # Base url to the secure RAPP Catalogue REST interface
276RC_ADAPTER=$RC_RESTBASE # Adapter holds the address the RAPP Catalogue interface