From 8f1803f37476c8c842cad26b6e340ac447a047c2 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 26 May 2025 14:15:10 +0530 Subject: [PATCH] Smoke test: Update user for XenServer template --- test/integration/smoke/test_network.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/integration/smoke/test_network.py b/test/integration/smoke/test_network.py index b3e7fd3e42f..2648fb95a46 100644 --- a/test/integration/smoke/test_network.py +++ b/test/integration/smoke/test_network.py @@ -2153,7 +2153,10 @@ class TestSharedNetworkWithConfigDrive(cloudstackTestCase): cls.services["virtual_machine"]["zoneid"] = cls.zone.id cls.services["virtual_machine"]["template"] = template.id - cls.services["virtual_machine"]["username"] = "ubuntu" + if cls.hv.lower() == 'xenserver': + cls.services["virtual_machine"]["username"] = "root" + else: + cls.services["virtual_machine"]["username"] = "ubuntu" # Create Network Offering cls.services["shared_network_offering_configdrive"]["specifyVlan"] = "True" cls.services["shared_network_offering_configdrive"]["specifyIpRanges"] = "True"