From 40275f34e2ae1dc74b5fed052d427c43ac2a2302 Mon Sep 17 00:00:00 2001 From: Konstantinos Tsakalozos Date: Wed, 16 Aug 2023 11:18:42 +0300 Subject: [PATCH] Skip dualstack test on ARM64 (#4153) --- tests/test-cluster.py | 6 ++++++ tests/test-upgrade.py | 12 ++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/tests/test-cluster.py b/tests/test-cluster.py index 1ec3a5836a..0c3b942f14 100644 --- a/tests/test-cluster.py +++ b/tests/test-cluster.py @@ -1,6 +1,7 @@ import string import random import time +import platform import pytest import os import datetime @@ -609,6 +610,11 @@ def test_no_cert_reissue_in_nodes(self): not is_ipv6_configured, reason="Skipping dual stack tests on VMs which are not lxc based and not dual-stack enabled", ) + @pytest.mark.skipif( + # We do not have IPv6 nginx image for ARM64 + platform.machine() != "x86_64", + reason="Skipping dual stack tests on VMs which are not AMD64", + ) def test_dual_stack_cluster(self): vm = self.VM[0] # Deploy the test deployment and service diff --git a/tests/test-upgrade.py b/tests/test-upgrade.py index 43ba190bba..68dc7b0d05 100644 --- a/tests/test-upgrade.py +++ b/tests/test-upgrade.py @@ -132,12 +132,12 @@ def test_upgrade(self): except CalledProcessError: print("Will not test the metallb addon") - if is_ipv6_configured: - try: - validate_dual_stack() - test_matrix["dual_stack"] = validate_dual_stack - except CalledProcessError: - print("Will not test the dual stack configuration") + if is_ipv6_configured: + try: + validate_dual_stack() + test_matrix["dual_stack"] = validate_dual_stack + except CalledProcessError: + print("Will not test the dual stack configuration") # Refresh the snap to the target if upgrade_to.endswith(".snap"):