From 60afd7ec83f8dbb09a8288ab6454c8dd56b3d5f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Fri, 7 Jul 2017 12:05:42 +0200 Subject: [PATCH] 7.7 verify swarm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- tests/7_docker_swarm_configuration.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/7_docker_swarm_configuration.sh b/tests/7_docker_swarm_configuration.sh index f44d249..f834c8c 100644 --- a/tests/7_docker_swarm_configuration.sh +++ b/tests/7_docker_swarm_configuration.sh @@ -79,7 +79,11 @@ fi # 7.7 check_7_7="7.7 - Ensure swarm manager auto-lock key is rotated periodically" -note "$check_7_7" +if docker info 2>/dev/null | grep -e "Swarm:\s*active\s*" >/dev/null 2>&1; then + note "$check_7_7" +else + pass "$check_7_8 (Swarm mode not enabled)" +fi # 7.8 check_7_8="7.8 - Ensure node certificates are rotated as appropriate"