integration-test: Check polkit denial
authorMartin Pitt <martinpitt@gnome.org>
Tue, 12 Jun 2012 14:41:41 +0000 (16:41 +0200)
committerMartin Pitt <martinpitt@gnome.org>
Tue, 12 Jun 2012 14:41:41 +0000 (16:41 +0200)
commitd9fd8bbe8ea95a0d6516c0b27d8e50e4443351d3
treee772ed56ad6ff7ef1b08dbb6caa3e6f1358b8008
parenta92a1bb49ec39867674608656819c5d53c21ccd8
integration-test: Check polkit denial

Add a test case for a polkit-denied operation: we try to mount an internal disk
as user "nobody". Technically the system polkit configuration could allow this,
but let's hope that this is not the case (this is an integration test, after
all).

We need to supply our own D-BUS configuration for this to allow nobody to
access our temporary fake system bus. Thus drop the usage of Gio.TestDBus and
replace it with calling dbus-launch.
src/tests/integration-test