From 682d8b363f04027fded2b0885855df36d16de66a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20K=C5=82os?= Date: Thu, 22 Sep 2022 23:49:47 +0200 Subject: [PATCH] Fix existing unit tests --- test/ufw-docker.test.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/ufw-docker.test.sh b/test/ufw-docker.test.sh index 83f992e..527b5fd 100755 --- a/test/ufw-docker.test.sh +++ b/test/ufw-docker.test.sh @@ -474,7 +474,7 @@ test-ufw-docker--list-name() { ufw-docker--list foo } test-ufw-docker--list-name-assert() { - grep "# allow foo\\( [[:digit:]]\\+\\/\\(tcp\\|udp\\)\\)\\?\\( [[:graph:]]*\\)\\?\$" + grep "# allow foo\\( [[:digit:]]\\+\\/\\(tcp\\|udp\\)\\)\\( [[:graph:]]*\\)\$" } test-ufw-docker--list-name-udp() { @@ -483,7 +483,7 @@ test-ufw-docker--list-name-udp() { ufw-docker--list foo "" udp } test-ufw-docker--list-name-udp-assert() { - grep "# allow foo\\( [[:digit:]]\\+\\/\\(tcp\\|udp\\)\\)\\?\\( [[:graph:]]*\\)\\?\$" + grep "# allow foo\\( [[:digit:]]\\+\\/\\(tcp\\|udp\\)\\)\\( [[:graph:]]*\\)\$" } @@ -493,7 +493,7 @@ test-ufw-docker--list-name-80() { ufw-docker--list foo 80 } test-ufw-docker--list-name-80-assert() { - grep "# allow foo\\( 80\\/tcp\\)\\?\\( [[:graph:]]*\\)\\?\$" + grep "# allow foo\\( 80\\/tcp\\)\\( [[:graph:]]*\\)\$" } @@ -503,7 +503,7 @@ test-ufw-docker--list-name-80-udp() { ufw-docker--list foo 80 udp } test-ufw-docker--list-name-80-udp-assert() { - grep "# allow foo\\( 80\\/udp\\)\\?\\( [[:graph:]]*\\)\\?\$" + grep "# allow foo\\( 80\\/udp\\)\\( [[:graph:]]*\\)\$" }