e8c95d0bc2a730d05947a65b43b95d578ed3b383
[it/test.git] / ric_robot_suite / helm / nanobot / configmap-src / public / properties / global_properties.robot
1 #   Copyright (c) 2019 AT&T Intellectual Property.
2 #
3 #   Licensed under the Apache License, Version 2.0 (the "License");
4 #   you may not use this file except in compliance with the License.
5 #   You may obtain a copy of the License at
6 #
7 #       http://www.apache.org/licenses/LICENSE-2.0
8 #
9 #   Unless required by applicable law or agreed to in writing, software
10 #   distributed under the License is distributed on an "AS IS" BASIS,
11 #   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #   See the License for the specific language governing permissions and
13 #   limitations under the License.
14
15 {{- $domain := default "cluster.local" .Values.ric.cluster.domain }}
16 {{- $ricpltNS := include "common.namespace.platform" . }}
17 {{- $xappNS := include "common.namespace.xapp" . }}
18 {{- $ricplt := printf "%s.svc.%s" $ricpltNS $domain }}
19 {{- $release := default "r1" .Values.ric.robot.release }}
20 {{- $testxapp := default "robot-xapp" .Values.ric.robot.environment.xapp }}
21 {{- $dt := "deployment" }}
22 {{- $ds := "" }}
23 #
24 *** Settings ***
25 Documentation        store all properties that can change or are used in multiple places here
26 ...                  format is all caps with underscores between words and prepended with GLOBAL
27 ...                  make sure you prepend them with GLOBAL so that other files can easily see it is from this file.
28
29
30 *** Variables ***
31 &{GLOBAL_RICPLT_COMPONENTS}           {{- range $k, $v := .Values.ric.platform.components }}
32                                       {{- if $v }}
33                                       {{- $ct := index $v "controller" }}
34                                       {{- if $ct }}
35                                       {{- $dt = index $ct "type" | default "deployment" | lower }}
36                                       {{- $ds = index $ct "suffix" | default "" }}
37                                       {{- if $ds }}
38                                       {{- $ds = (printf "-%s" $ds) }}
39                                       {{- end }}
40                                       {{- else }}
41                                       {{- $dt = "deployment" }}
42                                       {{- $ds = "" }}
43                                       {{- end }}
44                                       {{- end }}
45 ...                                   {{$k}}={{$dt}}|{{include (printf "common.%sname.%s" $dt $k) $}}{{$ds}}
46                                       {{- end }}
47 &{GLOBAL_RICPLT_XAPPS}                {{- range keys .Values.ric.xapp }}
48 ...                                   {{.}}={{ printf "%s-%s" $xappNS . }}
49                                       {{- end }}
50
51 #
52 ${GLOBAL_APPLICATION_ID}              {{ default "r0" .Values.ric.robot.release | printf "nanobot-%s" }}
53 ${GLOBAL_BUILD_NUMBER}                {{ default "0" .Values.ric.platform.build  }}
54 ${GLOBAL_RICPLT_NAMESPACE}            {{ $ricpltNS  }}
55 ${GLOBAL_XAPP_NAMESPACE}              {{ $xappNS  }}
56 #
57 {{- if .Values.ric.platform.components.appmgr }}
58 ${GLOBAL_APPMGR_SERVER_PROTOCOL}      {{ default "http" .Values.ric.platform.components.appmgr.protocol  }}
59 ${GLOBAL_INJECTED_APPMGR_IP_ADDR}     {{ printf "%s.%s" (include "common.servicename.appmgr.http" .) $ricplt  }}
60 ${GLOBAL_APPMGR_SERVER_PORT}          {{ include "common.serviceport.appmgr.http" .  }}
61 ${GLOBAL_INJECTED_APPMGR_USER}        {{ .Values.ric.platform.components.appmgr.user  }}
62 ${GLOBAL_INJECTED_APPMGR_PASSWORD}    {{ .Values.ric.platform.components.appmgr.password  }}
63 {{- end }}
64 #
65 {{- if .Values.ric.platform.components.e2mgr }}
66 ${GLOBAL_E2MGR_SERVER_PROTOCOL}       {{ default "http" .Values.ric.platform.components.e2mgr.protocol  }}
67 ${GLOBAL_INJECTED_E2MGR_IP_ADDR}      {{ printf "%s.%s" (include "common.servicename.e2mgr.http" .) $ricplt  }}
68 ${GLOBAL_E2MGR_SERVER_PORT}           {{ include "common.serviceport.e2mgr.http" .  }}
69 ${GLOBAL_INJECTED_E2MGR_USER}         {{ .Values.ric.platform.components.e2mgr.user  }}
70 ${GLOBAL_INJECTED_E2MGR_PASSWORD}     {{ .Values.ric.platform.components.e2mgr.password  }}
71 {{- end }}
72 #
73 {{- if .Values.ric.platform.components.rtmgr }}
74 ${GLOBAL_RTMGR_SERVER_PROTOCOL}       {{ default "http" .Values.ric.platform.components.rtmgr.protocol  }}
75 ${GLOBAL_INJECTED_RTMGR_IP_ADDR}      {{ printf "%s.%s" (include "common.servicename.rtmgr.http" .) $ricplt  }}
76 ${GLOBAL_RTMGR_SERVER_PORT}           {{ include "common.serviceport.e2mgr.http" .  }}
77 ${GLOBAL_INJECTED_RTMGR_USER}         {{ .Values.ric.platform.components.rtmgr.user  }}
78 ${GLOBAL_INJECTED_RTMGR_PASSWORD}     {{ .Values.ric.platform.components.rtmgr.password  }}
79 {{- end }}
80 #
81 {{- if .Values.ric.platform.components.a1mediator }}
82 ${GLOBAL_A1MEDIATOR_SERVER_PROTOCOL}       {{ default "http" .Values.ric.platform.components.a1mediator.protocol }}
83 ${GLOBAL_INJECTED_A1MEDIATOR_IP_ADDR}      {{ printf "%s.%s" (include "common.servicename.a1mediator.http" .) $ricplt }}
84 ${GLOBAL_A1MEDIATOR_SERVER_PORT}           {{ include "common.serviceport.a1mediator.http" . }}
85 ${GLOBAL_A1MEDIATOR_POLICY_ID}             {{ default "6266268" .Values.ric.platform.components.a1mediator.policyID }}
86 ${GLOBAL_A1MEDIATOR_TARGET_XAPP}           {{ default $testxapp .Values.ric.platform.components.a1mediator.xappName }}
87 {{- end }}
88 #
89 {{- if .Values.ric.platform.components.o1mediator }}
90 ${GLOBAL_O1MEDIATOR_HOST}               {{ printf "%s.%s" (include "common.servicename.o1mediator.tcp.netconf" .) $ricplt }}
91 ${GLOBAL_O1MEDIATOR_PORT}               {{ include "common.serviceport.o1mediator.tcp.netconf" .  }}
92 ${GLOBAL_O1MEDIATOR_USER}               {{ .Values.ric.platform.components.o1mediator.user }}
93 ${GLOBAL_O1MEDIATOR_PASSWORD}           {{ .Values.ric.platform.components.o1mediator.password }}
94 ${GLOBAL_O1MEDIATOR_TARGET_XAPP}        {{ default $testxapp .Values.ric.platform.components.o1mediator.xapp.name }}
95 ${GLOBAL_O1MEDIATOR_XAPP_VERSION}       {{ default "1.0" .Values.ric.platform.components.o1mediator.xapp.version }}
96 ${GLOBAL_O1MEDIATOR_DEPLOYMENT_WAIT}    {{ default "180" .Values.ric.platform.components.o1mediator.xapp.wait }}
97 {{- end }}
98 #
99 #
100 ${GLOBAL_TEST_XAPP}                   {{ default "xapp-std" .Values.ric.robot.environment.xapp }}
101 #
102 ${GLOBAL_TEST_NODEB_NAME}             {{ default "AAAA456789" .Values.ric.robot.environment.gNodeB.name }}
103 ${GLOBAL_TEST_NODEB_ADDRESS}          {{ default "10.0.0.3"   .Values.ric.robot.environment.gNodeB.address }}
104 ${GLOBAL_TEST_NODEB_PORT}             {{ default "36421"      .Values.ric.robot.environment.gNodeB.port }}
105 #
106 ${GLOBAL_DASH_SERVER_PROTOCOL}        {{ default "http"       .Values.ric.robot.environment.dashboard.protocol }}
107 ${GLOBAL_DASH_SERVER_PORT}            {{ default "31080"      .Values.ric.robot.environment.dashboard.port }}
108 ${GLOBAL_INJECTED_DASH_IP_ADDR}       {{ default "127.0.0.1"  .Values.ric.robot.environment.dashboard.port }}