|
|
8a3219 |
From e34b1005145d950382808b7f1d776511b2d710fa Mon Sep 17 00:00:00 2001
|
|
|
8a3219 |
From: Eric Garver <eric@garver.life>
|
|
|
8a3219 |
Date: Wed, 3 Jul 2019 10:41:07 -0400
|
|
|
8a3219 |
Subject: [PATCH 09/20] test: service: coverage for import from file
|
|
|
8a3219 |
|
|
|
8a3219 |
(cherry picked from commit 40d8d6a105a7212db138e3afacf0f471676a8b78)
|
|
|
8a3219 |
---
|
|
|
8a3219 |
src/tests/firewall-cmd.at | 12 ++++++++++++
|
|
|
8a3219 |
1 file changed, 12 insertions(+)
|
|
|
8a3219 |
|
|
|
8a3219 |
diff --git a/src/tests/firewall-cmd.at b/src/tests/firewall-cmd.at
|
|
|
8a3219 |
index 6444b4566af5..7bb13aee0221 100644
|
|
|
8a3219 |
--- a/src/tests/firewall-cmd.at
|
|
|
8a3219 |
+++ b/src/tests/firewall-cmd.at
|
|
|
8a3219 |
@@ -319,6 +319,18 @@ FWD_START_TEST([user services])
|
|
|
8a3219 |
FWD_CHECK([--permanent --zone=public --list-services | grep foobar], 0, ignore)
|
|
|
8a3219 |
FWD_CHECK([--permanent --delete-service=foobar], 0, ignore)
|
|
|
8a3219 |
FWD_CHECK([--permanent --zone=public --list-services | grep foobar], 1, ignore)
|
|
|
8a3219 |
+
|
|
|
8a3219 |
+ AT_DATA([./foobar-to-be-renamed], [m4_strip([dnl
|
|
|
8a3219 |
+
|
|
|
8a3219 |
+ <service>
|
|
|
8a3219 |
+ <protocol value="icmp" />
|
|
|
8a3219 |
+ <port protocol="tcp" port="1234" />
|
|
|
8a3219 |
+ </service>
|
|
|
8a3219 |
+ ])
|
|
|
8a3219 |
+ FWD_CHECK([--permanent --new-service-from-file="./foobar-to-be-renamed" --name="foobar-from-file"])
|
|
|
8a3219 |
+ FWD_CHECK([--permanent --get-services | grep foobar-from-file], 0, [ignore])
|
|
|
8a3219 |
+])
|
|
|
8a3219 |
+
|
|
|
8a3219 |
FWD_END_TEST([-e '/ERROR: NAME_CONFLICT: new_service():/d' dnl
|
|
|
8a3219 |
-e '/ERROR: INVALID_ADDR:/d'])
|
|
|
8a3219 |
|
|
|
8a3219 |
--
|
|
|
8a3219 |
2.20.1
|
|
|
8a3219 |
|