You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by nv...@apache.org on 2022/04/29 02:28:47 UTC
[cloudstack] branch main updated: test: fix ipv6 network test for xenserver (#6329)
This is an automated email from the ASF dual-hosted git repository.
nvazquez pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 23f6db7735 test: fix ipv6 network test for xenserver (#6329)
23f6db7735 is described below
commit 23f6db7735cb5feb3b307e71b2524bc473f2649e
Author: Abhishek Kumar <ab...@gmail.com>
AuthorDate: Fri Apr 29 07:58:41 2022 +0530
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 <ab...@gmail.com>
---
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 b028b8b7aa..1aff1fc1f2 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