From 6809ce4a7b822e63caead82626a588d73a81657a Mon Sep 17 00:00:00 2001 From: Rajani Karuturi Date: Wed, 3 May 2017 14:56:35 +0530 Subject: [PATCH] CLOUDSTACK-9901 secure and hidden config values are returned as plaintext fixed a testcase which was using encypted value. --- test/integration/smoke/test_internal_lb.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/integration/smoke/test_internal_lb.py b/test/integration/smoke/test_internal_lb.py index f2f93649fec..5b4c66325ad 100644 --- a/test/integration/smoke/test_internal_lb.py +++ b/test/integration/smoke/test_internal_lb.py @@ -705,8 +705,12 @@ class TestInternalLb(cloudstackTestCase): self.apiclient, name="network.loadbalancer.haproxy.stats.port")[0].value settings["stats_uri"] = Configurations.list( self.apiclient, name="network.loadbalancer.haproxy.stats.uri")[0].value - settings["username"], settings["password"] = Configurations.list( - self.apiclient, name="network.loadbalancer.haproxy.stats.auth")[0].value.split(":") + # Update global setting network.loadbalancer.haproxy.stats.auth to a known value + haproxy_auth = "admin:password" + Configurations.update(self.apiclient, "network.loadbalancer.haproxy.stats.auth", haproxy_auth) + self.logger.debug( + "Updated global setting stats network.loadbalancer.haproxy.stats.auth to %s" % (haproxy_auth)) + settings["username"], settings["password"] = haproxy_auth.split(":") settings["visibility"] = Configurations.list( self.apiclient, name="network.loadbalancer.haproxy.stats.visibility")[0].value self.logger.debug(settings)