From e6154998fda6e975238fd3720913666e28923d3a Mon Sep 17 00:00:00 2001 From: Cyclinder Date: Wed, 6 Jul 2022 19:52:49 +0800 Subject: [PATCH] fix calico tunl0 routes test (#9061) Signed-off-by: cyclinder qifeng.guo@daocloud.io --- tests/testcases/040_check-network-adv.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/testcases/040_check-network-adv.yml b/tests/testcases/040_check-network-adv.yml index 2d32f3d82..2c765bd72 100644 --- a/tests/testcases/040_check-network-adv.yml +++ b/tests/testcases/040_check-network-adv.yml @@ -2,11 +2,11 @@ - hosts: kube_node tasks: - name: Test tunl0 routes - shell: "set -o pipefail && ! /sbin/ip ro | grep '/26 via' | grep -v tunl0" + shell: "set -o pipefail && ! /sbin/ip ro | grep '/{{ calico_pool_blocksize}} | default(26) via' | grep -v tunl0" args: executable: /bin/bash when: - - (ipip|default(true) or cloud_provider is defined) + - (calico_ipip_mode is defined and calico_ipip_mode != 'Never' or cloud_provider is defined) - kube_network_plugin|default('calico') == 'calico' - hosts: k8s_cluster