aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/masspnfsim/test_lifecycle.py
diff options
context:
space:
mode:
authorEli Halych <eli.halych@gmail.com>2020-12-03 09:56:50 +0000
committerEli Halych <illia.halych@t-mobile.pl>2020-12-04 00:42:11 +0000
commita579a48948f0b61bb9d98e1591d1fe727a550dbb (patch)
tree7abd52518d5f5233a8e48440b7c6f952edbe7d72 /test/mocks/masspnfsim/test_lifecycle.py
parent59305b4e52464023a6350a1d69ced2eb23dee73e (diff)
Add send requests to VES via HTTPS in Mass PNF Simulator
Details: - Previously allowed only HTTP. - HTTPS support added since VES accepts HTTPS and throws 400 Bad Request on HTTP. - Added autogenerating Basic Authorization token based on user:password in Base64 to access real VES together with HTTPS. - For this reason, simple HttpClient became part of RestTemplate that can ignore certificate checks for HTTPS when connecting to VES. - Adjusted test cases. Issue-ID: INT-1799 Signed-off-by: Eli Halych <illia.halych@t-mobile.pl> Change-Id: I69eaeb4b10f903c3a3aa880dbb787034da4c30bb
Diffstat (limited to 'test/mocks/masspnfsim/test_lifecycle.py')
-rw-r--r--test/mocks/masspnfsim/test_lifecycle.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/mocks/masspnfsim/test_lifecycle.py b/test/mocks/masspnfsim/test_lifecycle.py
index 1309ef077..1e040d32e 100644
--- a/test/mocks/masspnfsim/test_lifecycle.py
+++ b/test/mocks/masspnfsim/test_lifecycle.py
@@ -50,8 +50,8 @@ def test_bootstrap(args_bootstrap, caplog):
yml = load(f, Loader=SafeLoader)
assert URLVES == yml['urlves']
assert TYPEFILESERVER == yml['typefileserver']
- assert f'sftp://{FILESERVER_USER}:{FILESERVER_PASSWORD}@{IPFILESERVER}:{start_port + 1}' in yml['urlsftp']
- assert f'ftps://{FILESERVER_USER}:{FILESERVER_PASSWORD}@{IPFILESERVER}:{start_port + 2}' in yml['urlftps']
+ assert f'sftp://{USER}:{PASSWORD}@{IPFILESERVER}:{start_port + 1}' in yml['urlsftp']
+ assert f'ftps://{USER}:{PASSWORD}@{IPFILESERVER}:{start_port + 2}' in yml['urlftps']
assert str(ip_address(IPSTART) + ip_offset + instance_ip_offset) == yml['ippnfsim']
start_port += 2
print(yml['ippnfsim'])