From a0fd38056ab5e5c448f97193b0ef2bca528d1bd9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Krawczyk?= <616047+kravietz@users.noreply.github.com> Date: Sun, 8 Aug 2021 21:40:13 +0100 Subject: [PATCH] Adjust test to differences between CentOS and Debian --- molecule/default/verify.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index 55c986a..9ce8fae 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -16,8 +16,12 @@ - name: check rules assert: that: - - '"type filter hook input priority 0; policy drop;" in nft.stdout' - - '"type filter hook output priority 0; policy drop;" in nft.stdout' + # The whole line is: + # type filter hook input priority 0; policy drop; + # However on CentOS will return "priority 0", while Debian will + # show "priority filter" + - '"type filter hook input" in nft.stdout' + - '"type filter hook output" in nft.stdout' - name: service status - active command: systemctl is-active nftables.service