From 23f6db7735cb5feb3b307e71b2524bc473f2649e Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Fri, 29 Apr 2022 07:58:41 +0530 Subject: [PATCH] test: fix ipv6 network test for xenserver (#6329) Default ACS Xenserver template, CentOS 5.6, has IPv6 disabled. /etc/modeprobe.conf shows "options ipv6 disable=1" To run IPv6 network test successfully on Xenserver smoketest run get_test_template will be used instead of get_template while deploying guest VM in the IPv6 guest network. Signed-off-by: Abhishek Kumar --- test/integration/smoke/test_network_ipv6.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/integration/smoke/test_network_ipv6.py b/test/integration/smoke/test_network_ipv6.py index b028b8b7aa3..1aff1fc1f28 100644 --- a/test/integration/smoke/test_network_ipv6.py +++ b/test/integration/smoke/test_network_ipv6.py @@ -599,6 +599,12 @@ class TestIpv6Network(cloudstackTestCase): cls.zone.id, cls.services["ostype"] ) + if cls.hypervisor.lower() in ('xenserver'): + # Default Xenserver template has IPv6 disabled + cls.template = get_test_template( + cls.apiclient, + cls.zone.id, + cls.hypervisor) else: cls.debug("IPv6 is not supported, skipping tests!") return