tests: make tests passing again 34/199334/1
authorAdrian Szyndela <adrian.s@samsung.com>
Fri, 8 Feb 2019 14:43:49 +0000 (15:43 +0100)
committerAdrian Szyndela <adrian.s@samsung.com>
Fri, 8 Feb 2019 14:43:49 +0000 (15:43 +0100)
Do not confuse with 'make tests great again'.
But at least they should work and give results now.

Change-Id: I7f0c69f329e7ef1a1813c23eb51387494c717226

src/stest_cynara.c
src/stest_signal.c
tests/default_allow/system.d/cynara.test.conf

index 61e8b6c..b910ca9 100755 (executable)
@@ -30,7 +30,7 @@ int main(int argc, char* argv[])
        __dbuspolicy1_change_creds(200, 0, "L");
 
        for (i = 0; i < COUNT; i++) {
-               int result = dbuspolicy1_check_in(c, "cynara.destination", "cynara.sender",
+               int result = dbuspolicy1_check_in(c, "org.freedesktop.systemd1", "cynara.sender",
                                "L", 200, 0, NULL, "cynara.interface", "cynara.method",
                                DBUSPOLICY_MESSAGE_TYPE_METHOD_CALL, "", 0, 0);
                assert(result == desired_result);
index 76bca69..1fe2f9e 100755 (executable)
@@ -17,7 +17,7 @@ int main(int argc, char* argv[])
        assert(c != NULL);
 
        __dbuspolicy1_change_creds(0, 0, NULL);
-       tassert(dbuspolicy1_check_out(c, "",  "bli.bla.blubb test.test1 test.tes3", "", "/an/object/path", "", DBUSPOLICY_MESSAGE_TYPE_SIGNAL, "", 0, 0) == true);
+       tassert(dbuspolicy1_check_out(c, "",  "org.test.test3", "", "/an/object/path", "", DBUSPOLICY_MESSAGE_TYPE_SIGNAL, "", 0, 0) == true);
 
        __dbuspolicy1_change_creds(5010, 0, NULL);
        tassert(dbuspolicy1_check_out(c, "",  "bli.bla.blubb", "", "/an/object/path", "", DBUSPOLICY_MESSAGE_TYPE_SIGNAL, "", 0, 0) == false);
index e988385..76c6166 100644 (file)
@@ -4,7 +4,7 @@
 
 <busconfig>
     <policy context="default" >
-        <check send_destination="cynara.destination" privilege="t"/>
+        <check send_destination="org.freedesktop.systemd1" privilege="t"/>
         <check receive_sender="cynara.sender" privilege="t"/>
     </policy>
 </busconfig>