From Fedora Project Wiki

(Initial page)
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
= Test Plan for polkit-kde =
= Test Plan for polkit-kde =


== How to test ==
== How to test on F-12 ==
* You need to have at least Fedora 13
* You need to have Fedora 12
<pre>
<pre>
cat /etc/fedora-release
cat /etc/fedora-release
</pre>
</pre>
* Make sure you have polkit-kde installed
* Install polkit-kde from here: [http://koji.fedoraproject.org/koji/getfile?taskID=2114376&name=polkit-kde-0.95.1-4.fc12.i686.rpm i686] or [http://koji.fedoraproject.org/koji/getfile?taskID=2114374&name=polkit-kde-0.95.1-4.fc12.x86_64.rpm x86_64]
<pre>
<pre>
rpm -q polkit-kde
su -c "yum localinstall polkit-kde-0.95.1-4.fc12.*.rpm"
</pre>
* Kill Gnome Authentication Agent and start the KDE one
<pre>
killall /usr/libexec/polkit-gnome-authentication-agent-1
/usr/libexec/kde4/polkit-kde-authentication-agent-1 &
</pre>
</pre>
* Test whether Authentication Agent is running
* Test whether Authentication Agent is running
Line 24: Line 29:
# PolicyKit should deny your action on pressing '''Cancel''' button or after 3 unsuccessful attempts to enter password
# PolicyKit should deny your action on pressing '''Cancel''' button or after 3 unsuccessful attempts to enter password
# You can enter proper root password, dialog will disappear and the text ''Hello, World'' appears in the terminal window
# You can enter proper root password, dialog will disappear and the text ''Hello, World'' appears in the terminal window
 
* Stop your session, start new KDE session and see if KDE authentication agent is running and the Gnome one is not running
<pre>
ps aux | grep polkit
</pre>
== Known issues ==
== Known issues ==
* Authentication dialog doesn't appear above all windows
* Authentication dialog doesn't appear above all windows
* [https://bugzilla.redhat.com/show_bug.cgi?id=530456 Bug #530456] Dialog doesn't accept empty password (if it '''is''' empty - e.g. on Live CD)
* [https://bugzilla.redhat.com/show_bug.cgi?id=530456 Bug #530456] Dialog doesn't accept empty password (if it '''is''' empty - e.g. on Live CD)

Latest revision as of 08:43, 14 April 2010

Test Plan for polkit-kde

How to test on F-12

  • You need to have Fedora 12
cat /etc/fedora-release
su -c "yum localinstall polkit-kde-0.95.1-4.fc12.*.rpm"
  • Kill Gnome Authentication Agent and start the KDE one
killall /usr/libexec/polkit-gnome-authentication-agent-1
/usr/libexec/kde4/polkit-kde-authentication-agent-1 &
  • Test whether Authentication Agent is running
pidof /usr/libexec/kde4/polkit-kde-authentication-agent-1
  • Do some PolicyKit action that requires authentication, for example
pkexec echo "Hello, world"
  • When you execute this action as regular user, this should happened:
  1. KDE (not the Gnome one) authentication dialog should appear (above all windows)
  2. You can display details of the action
  3. You can enter wrong root password and the dialog shows an error with short delay (delay is needed to prevent automatic attacks)
  4. PolicyKit should deny your action on pressing Cancel button or after 3 unsuccessful attempts to enter password
  5. You can enter proper root password, dialog will disappear and the text Hello, World appears in the terminal window
  • Stop your session, start new KDE session and see if KDE authentication agent is running and the Gnome one is not running
ps aux | grep polkit

Known issues

  • Authentication dialog doesn't appear above all windows
  • Bug #530456 Dialog doesn't accept empty password (if it is empty - e.g. on Live CD)