aboutsummaryrefslogtreecommitdiffstats
path: root/csit/prepare-config-files.py
diff options
context:
space:
mode:
authorsaul.gill <saul.gill@est.tech>2022-03-15 11:56:01 +0000
committersaul.gill <saul.gill@est.tech>2022-03-22 12:16:51 +0000
commit264245051507c7446d1c407ff04063ec1193262b (patch)
tree9970e06729a633df7618c964ccaff860a9ca4e23 /csit/prepare-config-files.py
parent64b967be75708faff5f531591fa2f87bf722bffe (diff)
Added scripts for manual smoke testing
Added some scripts, docker compose and config files This is to aid in manual smoke testing Policy gui and policy backend have been added Issue-ID: POLICY-4000 Change-Id: Ia89cab416b02ab034c65ba8224536cde2f65c0c5 Signed-off-by: saul.gill <saul.gill@est.tech>
Diffstat (limited to 'csit/prepare-config-files.py')
-rwxr-xr-xcsit/prepare-config-files.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/csit/prepare-config-files.py b/csit/prepare-config-files.py
index 977df556..4eaa3422 100755
--- a/csit/prepare-config-files.py
+++ b/csit/prepare-config-files.py
@@ -30,6 +30,7 @@ if __name__ == '__main__':
https_enabled = parser.parse_args().https
message_router_port = '3905' if https_enabled == "true" else '3904'
+ protocol = 'https://' if https_enabled == "true" else 'http://'
current_dir = os.getcwd()
config_dir = current_dir + "/config/"
@@ -44,6 +45,7 @@ if __name__ == '__main__':
with open(file, 'r+') as f:
content = f.read()
new_content = content.replace("{{HTTPS_ENABLED}}", https_enabled)
+ new_content = new_content.replace("{{PROTOCOL}}", protocol)
new_content = new_content.replace("{{MESSAGE_ROUTER_PORT}}", message_router_port)
if new_content != content: