[Issue-Id:RIC-150] Enhancement to it/test repo
[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 {{- $e2_suff := "alpha" }}
23 {{- $ds := "" }}
24 #
25 *** Settings ***
26 Documentation        store all properties that can change or are used in multiple places here
27 ...                  format is all caps with underscores between words and prepended with GLOBAL
28 ...                  make sure you prepend them with GLOBAL so that other files can easily see it is from this file.
29
30
31 *** Variables ***
32 #{{ printf "%s.%s" (include "common.servicename.a1mediator.http" .) $ricplt }}
33 # {{ printf "%s-alpha.%s" (include "common.servicename.e2term.rmr" .) $ricplt}}
34 &{GLOBAL_RICPLT_COMPONENTS}           {{- range $k, $v := .Values.ric.platform.components }}
35                                       {{- if $v }}
36                                       {{- $ct := index $v "controller" }}
37                                       {{- if $ct }}
38                                       {{- $dt = index $ct "type" | default "deployment" | lower }}
39                                       {{- $ds = index $ct "suffix" | default "" }}
40                                       {{- if $ds }}
41                                       {{- $ds = (printf "-%s" $ds) }}
42                                       {{- end }}
43                                       {{- else }}
44                                       {{- $dt = "deployment" }}
45                                       {{- $ds = "" }}
46                                       {{- end }}
47                                       {{- end }}
48 ...                                   {{$k}}={{$dt}}|{{include (printf "common.%sname.%s" $dt $k) $}}{{$ds}}
49                                       {{- end }}
50 &{GLOBAL_RICPLT_XAPPS}                {{- range keys .Values.ric.xapp }}
51 ...                                   {{.}}={{ printf "%s-%s" $xappNS . }}
52                                       {{- end }}
53 #
54 ${GLOBAL_PLMNID}              {{ .Values.ric.robot.environment.gNodeB.plmnid }}
55 ${GLOBAL_GNBID}               {{ .Values.ric.robot.environment.gNodeB.gnbid }}
56 #
57
58 ${GLOBAL_APPLICATION_ID}              {{ default "r0" .Values.ric.robot.release | printf "nanobot-%s" }}
59 ${GLOBAL_BUILD_NUMBER}                {{ default "0" .Values.ric.platform.build  }}
60 ${GLOBAL_RICPLT_NAMESPACE}            {{ $ricpltNS  }}
61 ${GLOBAL_XAPP_NAMESPACE}              {{ $xappNS  }}
62 #
63 {{- if .Values.ric.platform.components.appmgr }}
64 ${GLOBAL_APPMGR_SERVER_PROTOCOL}      {{ default "http" .Values.ric.platform.components.appmgr.protocol  }}
65 ${GLOBAL_INJECTED_APPMGR_IP_ADDR}     {{ printf "%s.%s" (include "common.servicename.appmgr.http" .) $ricplt  }}
66 ${GLOBAL_APPMGR_SERVER_PORT}          {{ include "common.serviceport.appmgr.http" .  }}
67 ${GLOBAL_INJECTED_APPMGR_USER}        {{ .Values.ric.platform.components.appmgr.user  }}
68 ${GLOBAL_INJECTED_APPMGR_PASSWORD}    {{ .Values.ric.platform.components.appmgr.password  }}
69 {{- end }}
70 #
71 {{- if .Values.ric.platform.components.e2mgr }}
72 ${GLOBAL_E2MGR_SERVER_PROTOCOL}       {{ default "http" .Values.ric.platform.components.e2mgr.protocol  }}
73 ${GLOBAL_INJECTED_E2MGR_IP_ADDR}      {{ printf "%s.%s" (include "common.servicename.e2mgr.http" .) $ricplt  }}
74 ${GLOBAL_E2MGR_SERVER_PORT}           {{ include "common.serviceport.e2mgr.http" .  }}
75 ${GLOBAL_INJECTED_E2MGR_USER}         {{ .Values.ric.platform.components.e2mgr.user  }}
76 ${GLOBAL_INJECTED_E2MGR_PASSWORD}     {{ .Values.ric.platform.components.e2mgr.password  }}
77 {{- end }}
78 #
79 {{- if .Values.ric.platform.components.e2term }}
80 ${GLOBAL_INJECTED_E2TERM_IP_ADDR}           {{ printf "%s-alpha.%s" (include "common.servicename.e2term.rmr" .) $ricplt}}
81 ${GLOBAL_E2TERM_SERVER_PORT}           {{ include "common.serviceport.e2term.rmr.data" .  }}
82 {{- end }}
83 #
84 {{- if .Values.ric.platform.components.rtmgr }}
85 ${GLOBAL_RTMGR_SERVER_PROTOCOL}       {{ default "http" .Values.ric.platform.components.rtmgr.protocol  }}
86 ${GLOBAL_INJECTED_RTMGR_IP_ADDR}      {{ printf "%s.%s" (include "common.servicename.rtmgr.http" .) $ricplt  }}
87 ${GLOBAL_RTMGR_SERVER_PORT}           {{ include "common.serviceport.rtmgr.http" .  }}
88 ${GLOBAL_RTMGR_SERVER_HTTP_PORT}      {{ default "8080" }}
89 ${GLOBAL_INJECTED_RTMGR_USER}         {{ .Values.ric.platform.components.rtmgr.user  }}
90 ${GLOBAL_INJECTED_RTMGR_PASSWORD}     {{ .Values.ric.platform.components.rtmgr.password  }}
91 {{- end }}
92 #
93 #
94 {{- if .Values.ric.platform.components.a1mediator }}
95 ${GLOBAL_A1MEDIATOR_SERVER_PROTOCOL}       {{ default "http" .Values.ric.platform.components.a1mediator.protocol }}
96 ${GLOBAL_INJECTED_A1MEDIATOR_IP_ADDR}      {{ printf "%s.%s" (include "common.servicename.a1mediator.http" .) $ricplt }}
97 ${GLOBAL_A1MEDIATOR_SERVER_PORT}           {{ include "common.serviceport.a1mediator.http" . }}
98 ${GLOBAL_A1MEDIATOR_POLICY_ID}             {{ default "6266268" .Values.ric.platform.components.a1mediator.policyID }}
99 ${GLOBAL_A1MEDIATOR_TARGET_XAPP}           {{ default $testxapp .Values.ric.platform.components.a1mediator.xappName }}
100 {{- end }}
101 #
102 {{- if .Values.ric.platform.components.o1mediator }}
103 ${GLOBAL_O1MEDIATOR_SERVER_PROTOCOL}    {{ default "http" .Values.ric.platform.components.o1mediator.protocol }}
104 ${GLOBAL_O1MEDIATOR_HTTP_SERVER}        {{ printf "%s.%s" (include "common.servicename.o1mediator.http" .) $ricplt }}
105 ${GLOBAL_O1MEDIATOR_SERVER_PORT}        {{ include "common.serviceport.o1mediator.http" . }}
106 ${GLOBAL_O1MEDIATOR_HOST}               {{ printf "%s.%s" (include "common.servicename.o1mediator.tcp.netconf" .) $ricplt }}
107 ${GLOBAL_O1MEDIATOR_PORT}               {{ include "common.serviceport.o1mediator.tcp.netconf" .  }}
108 ${GLOBAL_O1MEDIATOR_USER}               {{ .Values.ric.platform.components.o1mediator.user }}
109 ${GLOBAL_O1MEDIATOR_PASSWORD}           {{ .Values.ric.platform.components.o1mediator.password }}
110 ${GLOBAL_O1MEDIATOR_TARGET_XAPP}        {{ default $testxapp .Values.ric.platform.components.o1mediator.xapp.name }}
111 ${GLOBAL_O1MEDIATOR_XAPP_VERSION}       {{ default "1.0" .Values.ric.platform.components.o1mediator.xapp.version }}
112 ${GLOBAL_O1MEDIATOR_DEPLOYMENT_WAIT}    {{ default "180" .Values.ric.platform.components.o1mediator.xapp.wait }}
113 {{- end }}
114 #
115 {{- if .Values.ric.platform.components.submgr }}
116 ${GLOBAL_SUBMGR_SERVER_PROTOCOL}      {{ default "http" .Values.ric.platform.components.submgr.protocol }}
117 ${GLOBAL_SUBMGR_HTTP_SERVER}          {{ printf "%s.%s" (include "common.servicename.submgr.http" .) $ricplt }}
118 ${GLOBAL_SUBMGR_SERVER_PORT}          {{ include "common.serviceport.submgr.http" . }}
119 ${GLOBAL_SUBMGR_SERVER_PROTOCOL}      {{ default "http" .Values.ric.platform.components.submgr.protocol  }}
120 ${GLOBAL_INJECTED_SUBMGR_IP_ADDR}     {{ printf "%s.%s" (include "common.servicename.submgr.http" .) $ricplt  }}
121 ${GLOBAL_INJECTED_SUBMGR_USER}        {{ .Values.ric.platform.components.submgr.user  }}
122 ${GLOBAL_INJECTED_SUBMGR_PASSWORD}    {{ .Values.ric.platform.components.submgr.password  }}
123 {{- end }}
124 #
125 ${GLOBAL_TEST_XAPP}                   {{ default "xapp-std" .Values.ric.robot.environment.xapp }}
126 ${GLOBAL_TEST_XAPP_ONBOARDER}         {{ default "deployment|deployment-ricplt-xapp-onboarder" }}
127 #
128 ${GLOBAL_TEST_NODEB_NAME}             {{ default "AAAA456789" .Values.ric.robot.environment.gNodeB.name }}
129 ${GLOBAL_TEST_NODEB_ADDRESS}          {{ default "10.0.0.3"   .Values.ric.robot.environment.gNodeB.address }}
130 ${GLOBAL_TEST_NODEB_PORT}             {{ default "36421"      .Values.ric.robot.environment.gNodeB.port }}
131 #
132 ${GLOBAL_DASH_SERVER_PROTOCOL}        {{ default "http"       .Values.ric.robot.environment.dashboard.protocol }}
133 ${GLOBAL_DASH_SERVER_PORT}            {{ default "31080"      .Values.ric.robot.environment.dashboard.port }}
134 ${GLOBAL_INJECTED_DASH_IP_ADDR}       {{ default "127.0.0.1"  .Values.ric.robot.environment.dashboard.port }}
135 ${GLOBAL_XAPP}                        {{ .Values.ric.robot.environment.xapp }}
136 ${GLOBAL_XAPP_DEPLOYMENT}             {{ printf "%s-%s" ($xappNS) .Values.ric.robot.environment.xapp }}
137 ${GLOBAL_XAPPKPIMON_DEPLOYMENT}       {{ printf "%s"  .Values.ric.robot.environment.xapp }}
138 ${Global_RAN_NAMESPACE}               {{ .Values.ric.robot.environment.gNodeB.ran_namespace }}
139 ${Global_RAN_DEPLOYMENT}              {{ .Values.ric.robot.environment.gNodeB.ran_deployment }}
140