48 lines
1.6 KiB
Diff
48 lines
1.6 KiB
Diff
|
From 5300da5cbb6c696baad71fb85ca36e65ab5ba292 Mon Sep 17 00:00:00 2001
|
||
|
From: Eric Garver <eric@garver.life>
|
||
|
Date: Mon, 1 Aug 2022 14:43:23 -0400
|
||
|
Subject: [PATCH 5/5] test(runtimeToPermanent): verify when NM interfaces
|
||
|
present
|
||
|
|
||
|
Coverage: #976
|
||
|
Coverage: rhbz2112982
|
||
|
(cherry picked from commit f4f67413e4db7c789bf9d7ba8e983505a6e6e6df)
|
||
|
---
|
||
|
src/tests/integration/gh976.at | 14 ++++++++++++++
|
||
|
src/tests/integration/networkmanager.at | 1 +
|
||
|
2 files changed, 15 insertions(+)
|
||
|
create mode 100644 src/tests/integration/gh976.at
|
||
|
|
||
|
diff --git a/src/tests/integration/gh976.at b/src/tests/integration/gh976.at
|
||
|
new file mode 100644
|
||
|
index 000000000000..977eca997a3a
|
||
|
--- /dev/null
|
||
|
+++ b/src/tests/integration/gh976.at
|
||
|
@@ -0,0 +1,14 @@
|
||
|
+FWD_START_TEST([interfaces during runtime to permanent])
|
||
|
+AT_KEYWORDS(gh976 rhbz2112982)
|
||
|
+
|
||
|
+START_NETWORKMANAGER()
|
||
|
+
|
||
|
+NMCLI_CHECK([connection add type dummy con-name dummy0 ifname dummy0 ip4 10.0.0.2 gw4 10.0.0.1], 0, [ignore])
|
||
|
+echo NS_CMD([nmcli connection delete dummy0]) >> ./cleanup
|
||
|
+NMCLI_CHECK([connection show dummy0], 0, [ignore])
|
||
|
+NMCLI_CHECK([connection up dummy0], 0, [ignore])
|
||
|
+
|
||
|
+FWD_CHECK([--add-service smtp], 0, [ignore])
|
||
|
+FWD_CHECK([--runtime-to-permanent], 0, [ignore])
|
||
|
+
|
||
|
+FWD_END_TEST()
|
||
|
diff --git a/src/tests/integration/networkmanager.at b/src/tests/integration/networkmanager.at
|
||
|
index 0b20adce0462..c93e92d70754 100644
|
||
|
--- a/src/tests/integration/networkmanager.at
|
||
|
+++ b/src/tests/integration/networkmanager.at
|
||
|
@@ -1,3 +1,4 @@
|
||
|
AT_BANNER([NetworkManager (FIREWALL_BACKEND)])
|
||
|
m4_include([integration/rhbz1773809.at])
|
||
|
m4_include([integration/rhbz1928860.at])
|
||
|
+m4_include([integration/gh976.at])
|
||
|
--
|
||
|
2.31.1
|
||
|
|