70 lines
3.1 KiB
Diff
70 lines
3.1 KiB
Diff
|
From a97286a71ea39200fdbd6ad876a3b597f9ece6a7 Mon Sep 17 00:00:00 2001
|
||
|
From: Eric Garver <eric@garver.life>
|
||
|
Date: Tue, 9 Feb 2021 12:20:27 -0500
|
||
|
Subject: [PATCH 15/22] test(dbus): policy: introspect signals
|
||
|
|
||
|
(cherry picked from commit 4ef37228e9bb1f564597b4cd654c2092cef0cca8)
|
||
|
(cherry picked from commit 9aac1417b2d10a4793756b4bdfa10047a2240ecd)
|
||
|
---
|
||
|
src/tests/dbus/policy_permanent_signatures.at | 15 +++++++++++++++
|
||
|
src/tests/dbus/policy_runtime_signatures.at | 6 ++++++
|
||
|
2 files changed, 21 insertions(+)
|
||
|
|
||
|
diff --git a/src/tests/dbus/policy_permanent_signatures.at b/src/tests/dbus/policy_permanent_signatures.at
|
||
|
index 7363b7715947..9ad36fa131e7 100644
|
||
|
--- a/src/tests/dbus/policy_permanent_signatures.at
|
||
|
+++ b/src/tests/dbus/policy_permanent_signatures.at
|
||
|
@@ -48,17 +48,32 @@ DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fed
|
||
|
<arg direction="in" name="settings" type="a{sv}"></arg>
|
||
|
</method>
|
||
|
])
|
||
|
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//signal[@name="Updated"]]], 0, [dnl
|
||
|
+ <signal name="Updated">
|
||
|
+ <arg name="name" type="s"></arg>
|
||
|
+ </signal>
|
||
|
+])
|
||
|
|
||
|
DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="remove"]]], 0, [dnl
|
||
|
<method name="remove">
|
||
|
</method>
|
||
|
])
|
||
|
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//signal[@name="Removed"]]], 0, [dnl
|
||
|
+ <signal name="Removed">
|
||
|
+ <arg name="name" type="s"></arg>
|
||
|
+ </signal>
|
||
|
+])
|
||
|
|
||
|
DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="rename"]]], 0, [dnl
|
||
|
<method name="rename">
|
||
|
<arg direction="in" name="name" type="s"></arg>
|
||
|
</method>
|
||
|
])
|
||
|
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//signal[@name="Renamed"]]], 0, [dnl
|
||
|
+ <signal name="Renamed">
|
||
|
+ <arg name="name" type="s"></arg>
|
||
|
+ </signal>
|
||
|
+])
|
||
|
|
||
|
DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="loadDefaults"]]], 0, [dnl
|
||
|
<method name="loadDefaults">
|
||
|
diff --git a/src/tests/dbus/policy_runtime_signatures.at b/src/tests/dbus/policy_runtime_signatures.at
|
||
|
index c651ae981adf..e299329e4f4f 100644
|
||
|
--- a/src/tests/dbus/policy_runtime_signatures.at
|
||
|
+++ b/src/tests/dbus/policy_runtime_signatures.at
|
||
|
@@ -15,6 +15,12 @@ DBUS_INTROSPECT([], [[//interface[@name="org.fedoraproject.FirewallD1.policy"]//
|
||
|
<arg direction="in" name="settings" type="a{sv}"></arg>
|
||
|
</method>
|
||
|
])
|
||
|
+DBUS_INTROSPECT([], [[//interface[@name="org.fedoraproject.FirewallD1.policy"]//signal[@name="PolicyUpdated"]]], 0, [dnl
|
||
|
+ <signal name="PolicyUpdated">
|
||
|
+ <arg name="policy" type="s"></arg>
|
||
|
+ <arg name="settings" type="a{sv}"></arg>
|
||
|
+ </signal>
|
||
|
+])
|
||
|
|
||
|
dnl Fetching Policies
|
||
|
DBUS_INTROSPECT([], [[//interface[@name="org.fedoraproject.FirewallD1.policy"]//method[@name="getPolicies"]]], 0, [dnl
|
||
|
--
|
||
|
2.27.0
|
||
|
|