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