Blame SOURCES/0013-test-dbus-policy-scope-introspection-checks-to-inter.patch

63f414
From 25e0354c7a582df802a54d1dd5bd22462e50f5b3 Mon Sep 17 00:00:00 2001
63f414
From: Eric Garver <eric@garver.life>
63f414
Date: Tue, 9 Feb 2021 12:19:53 -0500
63f414
Subject: [PATCH 13/22] test(dbus): policy: scope introspection checks to
63f414
 interface
63f414
63f414
(cherry picked from commit 76c7ef5140de4e578e7409113c26e6c223b8ed60)
63f414
(cherry picked from commit 2236a03c212ac9abb173a5d5a5ba68a4f75e7989)
63f414
---
63f414
 src/tests/dbus/policy_permanent_signatures.at | 18 +++++++++---------
63f414
 src/tests/dbus/policy_runtime_signatures.at   |  8 ++++----
63f414
 2 files changed, 13 insertions(+), 13 deletions(-)
63f414
63f414
diff --git a/src/tests/dbus/policy_permanent_signatures.at b/src/tests/dbus/policy_permanent_signatures.at
63f414
index d9dc38179840..7363b7715947 100644
63f414
--- a/src/tests/dbus/policy_permanent_signatures.at
63f414
+++ b/src/tests/dbus/policy_permanent_signatures.at
63f414
@@ -5,23 +5,23 @@ dnl ####################
63f414
 dnl Global APIs
63f414
 dnl ####################
63f414
 
63f414
-DBUS_INTROSPECT([config], [[//method[@name="listPolicies"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config], [[//interface[@name="org.fedoraproject.FirewallD1.config"]//method[@name="listPolicies"]]], 0, [dnl
63f414
     <method name="listPolicies">
63f414
         <arg direction="out" type="ao"></arg>
63f414
     </method>
63f414
 ])
63f414
-DBUS_INTROSPECT([config], [[//method[@name="getPolicyNames"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config], [[//interface[@name="org.fedoraproject.FirewallD1.config"]//method[@name="getPolicyNames"]]], 0, [dnl
63f414
     <method name="getPolicyNames">
63f414
         <arg direction="out" type="as"></arg>
63f414
     </method>
63f414
 ])
63f414
-DBUS_INTROSPECT([config], [[//method[@name="getPolicyByName"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config], [[//interface[@name="org.fedoraproject.FirewallD1.config"]//method[@name="getPolicyByName"]]], 0, [dnl
63f414
     <method name="getPolicyByName">
63f414
         <arg direction="in" name="policy" type="s"></arg>
63f414
         <arg direction="out" type="o"></arg>
63f414
     </method>
63f414
 ])
63f414
-DBUS_INTROSPECT([config], [[//method[@name="addPolicy"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config], [[//interface[@name="org.fedoraproject.FirewallD1.config"]//method[@name="addPolicy"]]], 0, [dnl
63f414
     <method name="addPolicy">
63f414
         <arg direction="in" name="policy" type="s"></arg>
63f414
         <arg direction="in" name="settings" type="a{sv}"></arg>
63f414
@@ -37,30 +37,30 @@ DBUS_CHECK([config], [config.getPolicyByName], ["allow-host-ipv6"], 0, [stdout])
63f414
 DBUS_POLICY_OBJ=[$(sed -e "s/.*config\/policy\/\([^']\+\)['].*/\1/" ./stdout)]
63f414
 export DBUS_POLICY_OBJ
63f414
 
63f414
-DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//method[@name="getSettings"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="getSettings"]]], 0, [dnl
63f414
     <method name="getSettings">
63f414
         <arg direction="out" type="a{sv}"></arg>
63f414
     </method>
63f414
 ])
63f414
 
63f414
-DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//method[@name="update"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="update"]]], 0, [dnl
63f414
     <method name="update">
63f414
         <arg direction="in" name="settings" type="a{sv}"></arg>
63f414
     </method>
63f414
 ])
63f414
 
63f414
-DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//method[@name="remove"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="remove"]]], 0, [dnl
63f414
     <method name="remove">
63f414
     </method>
63f414
 ])
63f414
 
63f414
-DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//method[@name="rename"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="rename"]]], 0, [dnl
63f414
     <method name="rename">
63f414
         <arg direction="in" name="name" type="s"></arg>
63f414
     </method>
63f414
 ])
63f414
 
63f414
-DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//method[@name="loadDefaults"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([config/policy/${DBUS_POLICY_OBJ}], [[//interface[@name="org.fedoraproject.FirewallD1.config.policy"]//method[@name="loadDefaults"]]], 0, [dnl
63f414
     <method name="loadDefaults">
63f414
     </method>
63f414
 ])
63f414
diff --git a/src/tests/dbus/policy_runtime_signatures.at b/src/tests/dbus/policy_runtime_signatures.at
63f414
index 2f0c5e75496b..c651ae981adf 100644
63f414
--- a/src/tests/dbus/policy_runtime_signatures.at
63f414
+++ b/src/tests/dbus/policy_runtime_signatures.at
63f414
@@ -3,13 +3,13 @@ AT_KEYWORDS(dbus policy)
63f414
 
63f414
 dnl Settings
63f414
 dnl
63f414
-DBUS_INTROSPECT([], [[//method[@name="getPolicySettings"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([], [[//interface[@name="org.fedoraproject.FirewallD1.policy"]//method[@name="getPolicySettings"]]], 0, [dnl
63f414
     <method name="getPolicySettings">
63f414
         <arg direction="in" name="policy" type="s"></arg>
63f414
         <arg direction="out" type="a{sv}"></arg>
63f414
     </method>
63f414
 ])
63f414
-DBUS_INTROSPECT([], [[//method[@name="setPolicySettings"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([], [[//interface[@name="org.fedoraproject.FirewallD1.policy"]//method[@name="setPolicySettings"]]], 0, [dnl
63f414
     <method name="setPolicySettings">
63f414
         <arg direction="in" name="policy" type="s"></arg>
63f414
         <arg direction="in" name="settings" type="a{sv}"></arg>
63f414
@@ -17,12 +17,12 @@ DBUS_INTROSPECT([], [[//method[@name="setPolicySettings"]]], 0, [dnl
63f414
 ])
63f414
 
63f414
 dnl Fetching Policies
63f414
-DBUS_INTROSPECT([], [[//method[@name="getPolicies"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([], [[//interface[@name="org.fedoraproject.FirewallD1.policy"]//method[@name="getPolicies"]]], 0, [dnl
63f414
     <method name="getPolicies">
63f414
         <arg direction="out" type="as"></arg>
63f414
     </method>
63f414
 ])
63f414
-DBUS_INTROSPECT([], [[//method[@name="getActivePolicies"]]], 0, [dnl
63f414
+DBUS_INTROSPECT([], [[//interface[@name="org.fedoraproject.FirewallD1.policy"]//method[@name="getActivePolicies"]]], 0, [dnl
63f414
     <method name="getActivePolicies">
63f414
         <arg direction="out" type="a{sa{sas}}"></arg>
63f414
     </method>
63f414
-- 
63f414
2.27.0
63f414