Skip to content
Snippets Groups Projects
Commit abfdf1c3 authored by Raphael Defosseux's avatar Raphael Defosseux
Browse files

fix(ci): adapting test pipelines to new FQDN scheme

parent e4c63443
No related branches found
No related tags found
1 merge request!132Remove ipv4 addresses from basic tutorial
......@@ -593,4 +593,5 @@ def retrieveLogs(logPath, dcFileName, ymlFileName) {
sh "docker logs oai-amf > ${logPath}/oai-amf.log 2>&1"
sh "docker logs oai-smf > ${logPath}/oai-smf.log 2>&1"
sh "docker logs oai-upf > ${logPath}/oai-upf.log 2>&1"
sh "docker logs oai-ext-dn > ${logPath}/oai-ext-dn.log 2>&1"
}
......@@ -394,6 +394,9 @@ def adaptForNGAPtester(filename, confname) {
sh 'sed -i -e "s@NRF_PORT=8080@NRF_PORT=80@" ' + filename
sh 'sed -i -e "s@ip route add 12.1.1.0/24@ip route add 13.1.0.0/20@" ' + filename
sh 'sed -i -e "s@grep 12.1.1@grep 13.1.0@" ' + filename
// Putting back the static container IP address scheme
sh 'grep -v "CI purposes" ' + filename + ' > tmp.yaml'
sh 'sed -e "s@# ipv4_address:@ ipv4_address:@" tmp.yaml > ' + filename
sh 'sed -i -e "s@port: 8080@port: 80@" ' + confname
sh 'sed -i -e "s@http_version: 2@http_version: 1@" ' + confname
sh 'sed -i -e "s@enable_smf_selection: yes@enable_smf_selection: no@" ' + confname
......@@ -420,4 +423,5 @@ def retrieveLogs(logPath, dcFileName, ycFileName) {
sh "docker logs oai-amf > ${logPath}/oai-amf.log 2>&1"
sh "docker logs oai-smf > ${logPath}/oai-smf.log 2>&1"
sh "docker logs oai-upf > ${logPath}/oai-upf.log 2>&1"
sh "docker logs oai-ext-dn > ${logPath}/oai-ext-dn.log 2>&1"
}
......@@ -91,6 +91,8 @@ if __name__ == '__main__':
for line in rfile:
if (re.search('NETWORK_UE_IP=12.1.1.0/24', line) is not None):
lines += re.sub('12.1.1.0/24', f'12.1.0.0/{cicdrSuffix}', line)
elif (re.search('UE_NETWORK=12.1.1.0/24', line) is not None):
lines += re.sub('12.1.1.0/24', f'12.1.0.0/{cicdrSuffix}', line)
elif (re.search('ip route add 12.1.1.0/24', line) is not None):
lines += re.sub('12.1.1.0/24', f'12.1.0.0/{cicdrSuffix}', line)
elif (re.search('grep 12.1.1', line) is not None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment