From c854ae1a6b0e6328ff1928617bfa7d4fbba6d07f Mon Sep 17 00:00:00 2001 From: Anusha Ramineni Date: Tue, 14 Nov 2017 11:00:36 +0530 Subject: [PATCH] Fix py3 failures and enable py3 dsvm job This commit makes sure congress is py35 complaint. Closes-Bug:#1731141 Change-Id: Ie8c4a244a60a56cac5b1e1430648f51546f51d62 --- tests/scenario/congress_datasources/test_murano.py | 5 +++-- tests/scenario/congress_ha/test_ha.py | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/scenario/congress_datasources/test_murano.py b/tests/scenario/congress_datasources/test_murano.py index ea9cfbd..25c1d1f 100644 --- a/tests/scenario/congress_datasources/test_murano.py +++ b/tests/scenario/congress_datasources/test_murano.py @@ -61,8 +61,9 @@ class TestMuranoDriver(manager_congress.ScenarioPolicyBase): rule['id']) def _create_random_policy(): - policy_name = "murano_%s" % ''.join(random.choice(string.lowercase) - for x in range(10)) + policy_name = "murano_%s" % ''.join( + random.choice(string.ascii_lowercase) + for x in range(10)) body = {"name": policy_name} resp = self.congress_client.create_policy(body) self.addCleanup(_delete_policy_rules, resp['name']) diff --git a/tests/scenario/congress_ha/test_ha.py b/tests/scenario/congress_ha/test_ha.py index 25835ac..8e06c3f 100644 --- a/tests/scenario/congress_ha/test_ha.py +++ b/tests/scenario/congress_ha/test_ha.py @@ -102,7 +102,7 @@ class TestHA(manager_congress.ScenarioPolicyBase): def start_service(self, name, conf_file): service = '--' + name node = name + '-replica-node' - args = ['/usr/bin/python', 'bin/congress-server', service, + args = ['bin/congress-server', service, '--node-id', node, '--config-file', conf_file] p = subprocess.Popen(args, stdout=subprocess.PIPE,