From c6209137683aad60a97e5879450434723e2e047b Mon Sep 17 00:00:00 2001 From: Tails developers Date: Tue, 12 Aug 2014 17:11:54 +0000 Subject: [PATCH] Run Synaptic from the Applications menu (Closes: #5550). This required to make the polkit-related steps more generic: there's more than one possible polkit prompt. --- features/apt.feature | 3 +-- features/images/GnomeApplicationsAdministration.png | Bin 0 -> 2667 bytes features/images/GnomeApplicationsSynaptic.png | Bin 0 -> 2816 bytes features/images/GnomeApplicationsSystem.png | Bin 0 -> 2797 bytes features/images/SynapticPolicyKitAuthPrompt.png | Bin 0 -> 2568 bytes features/step_definitions/apt.rb | 9 +++++++++ features/step_definitions/common_steps.rb | 16 ++++++++++------ features/step_definitions/root_access_control.rb | 6 +++--- 8 files changed, 23 insertions(+), 11 deletions(-) create mode 100644 features/images/GnomeApplicationsAdministration.png create mode 100644 features/images/GnomeApplicationsSynaptic.png create mode 100644 features/images/GnomeApplicationsSystem.png create mode 100644 features/images/SynapticPolicyKitAuthPrompt.png diff --git a/features/apt.feature b/features/apt.feature index 200303bfb..e86d3c60d 100644 --- a/features/apt.feature +++ b/features/apt.feature @@ -28,8 +28,7 @@ Feature: Installing packages through APT And all Internet traffic has only flowed through Tor Scenario: Install packages using Synaptic - When I run "gksu synaptic" - And I enter the sudo password in the gksu prompt + When I start Synaptic And I update APT using Synaptic Then I should be able to install a package using Synaptic And all Internet traffic has only flowed through Tor diff --git a/features/images/GnomeApplicationsAdministration.png b/features/images/GnomeApplicationsAdministration.png new file mode 100644 index 0000000000000000000000000000000000000000..0c7ee53ddea876d05994329e5abd0b8a8738f430 GIT binary patch literal 2667 zcwPZ(3Y7JUP)Mdwak$jrQm zTCHvn?1F-PKA*RMiy0Tl%gb%fY*PmOhonym!F>R z#P5hBCnt-kQ(k3t^h!ed^u^1|yE(H>8E{KWE1aBK(X&SYoBy+cQ>Rbh+odaJvzeAH zRb*vn)jK&ZK9=4p9OHGQc1sl14vH(0UH}zT3ENFq~sbod0FIN zy+TCzU@m4}ATu+gUa&`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tt)qIe>O{QjTwz5*l~dTF%$4sfT6O03P~&4J1ZJj zeaaNbB;uZXDP|he)tAUEkV$^7D{~vcl2wA$Yc})Rh%a#NGmfcKULvBs>d|TqeHqEy z*YQ=tSqjQ4sj8@;+USqDv2Qb#1yo4f@NI2T*E{Te+M&96l?p@Sk zoESctHjJXmoA2`Ux58=J3YEE>%VmZ?w8U}h zHk#S1;yJ!AnwMMbW!AJ6oU6ka38H~Ni}Yl!nZn=KR?%<9Qnu~*jswxp;dI|~{4hHT zyVls5OSpK?c4ek2H;)>dHaIF8AJJXFi?81#{PnNU7z8t?4q@lXe9B8oShFFH7b1hO zwz~CnwQb{xR;NX!vO%L&qt@1VW&HDWw0uOsO=iKX^L8?MOfYg=M^^4QM_G9#`}coO z-12FB{MOieCTTQUj7B3`od!*9EgLp$IWL@yI z{HYje(2mreezT+bsMi&iO&Ux+fvDT{3G+_`hxy0pYvA;`?g zWLU5d6C literal 0 HcwPel00001 diff --git a/features/images/GnomeApplicationsSynaptic.png b/features/images/GnomeApplicationsSynaptic.png new file mode 100644 index 0000000000000000000000000000000000000000..0d20711ff62ba913825b7f409b172384c14f364a GIT binary patch literal 2816 zcwPYj3;*;{&5EL&<^n%{1HLXP#Z7lWCS}pc* zD*|dM(h8NXT9(q3MQaO)aCs!PXd(!NOcDr8GI^LxW+szl-g8d>AYjzc;`MQ_UD^N4 zS~F*zv*)w-{{HsfM^F?+VaUD^Qw<>)g8P*;=~^#T6oqIsiY&{xTrLDbK&R88)9FyF z)u>cMar)GmE6Xy$V36M4URqjOICSU`rKP3h0VZ7S zK#NABghC<0;V^Eun=@z5@an6tvTxr$0)YT3m5TiQe9UGuYu2nGGc%KfgaqQ^;*cb1 zi0sE@;d1E*0s$hC2rie4MFGf;$jy!0)HYZpT(v$L`&`X=-Y^B+C6zH5v`+>FJ1~NLN=E z!{Xz)Co2nIWhK1_4gE;YgVFefy!YfyFm3B5&-yyjf96 zb#*lcgMpPRS2B9^Xc`+EsjaOg+R;IBVI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cY=C`oR^B}#T1{y*_AGRn>;=|l7-00000NkvXXu0mjfv-MAx literal 0 HcwPel00001 diff --git a/features/images/SynapticPolicyKitAuthPrompt.png b/features/images/SynapticPolicyKitAuthPrompt.png new file mode 100644 index 0000000000000000000000000000000000000000..a4bc519eeb7d1adf90f8a88edd864e5278e098ab GIT binary patch literal 2568 zcwPYr3itJiP)j8u>o|udb(5B+geJ654qF>>h19zuZE5$Ss^E5`z5f7^ zI0%6R;;taLphc>nv;~?rp;T?0L+!?;b`sm;L+qLHjK`k&&TC(cZB0&2B%lTHNlR<# zUEkqZ?>y^$pY@I?m&=NO!AtTldg&kErxd;)5QYItDWWJsO1aTAbX`LT`OgDfDMb+Y z_`Xj%ox!$kG)+TFiSPS(o{Q)EG#d?c-M}!6J9@A9M{-;#h3B~>5=m026hRPd0QK;F z4X@d1W!jX>Wx_BZ7K&AX17j@CieQ z)p~$wnB;PKYPBk>^%|LU_LJG1>+9=eGg)jqhUd9NVFU4J9h3MnMi?P1DI&X!wqn6W&?x}gkeY!hD0hN zQVNAaDTSi-Od^pa5l>RClyDt~WGYQ2(}7Y7%d%)R8>Ca|?SWS+B@*!jW8?4BbQ)+< zB1LQW3n>voAZU3BA<(33MFG>qGR-Z|SsT5k=?EckoF+lg;Qh0$+7z6}CKoIx@VTfs(bm#A)R9+$s0tN@~1E4FHXKefey@g)V z=`?e5MG8H=+XD}ykdX%t^TEaUahxW)uA}QZnx=1zTQRn?BZp;L1c8t1d0Y4CZTD%K zh9CGe)*JY)M-XlTZ-H+%8f4R1>Z@zmu{gC_4Iu=UWdQ=$bumqgMx%NAsFF&hSzKIT zaNvHVrlCol-Ma?axAy_Ma@`0a=(($aCN*YeXE05hWHN~q5+OF})S^@rMW`r32=IIl z&-3s+7uR)YG#Z3q$kOsMlao_?>wmt*$jAsUz4Q_@Gc#OWTtrAoy}pWRnYT|sQ55m+ zd+%`g@DY69BNmI}dp;N5KhM#lpT=o6Nu|>K_IEF{cX%I{E>Cgd_!F$H*S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*j)(Rf zx&in*W0xr{Ewb|SpJCQbyuuKArjsj+vpo91@U6q)^;Ec7$lGolkHuYtwFvQAt(_F4#D4V(YMG}Yl=*V^6dCG66Q2Y2+ z$tayp)0a!|_L*^X&0ux4hA|DOm-8<8sih^5y$#C@x?Fv zeYDE0s!f(Rjt5s~<#*2~H`6>$POIL{~?Ov2*Wn^pV3<9mo$JB5j0N z8e}pV=H}=5XnKKMcP}Sj{slk#(RV-oN|q1;+qUWI>f(`ykMNbx9c5^DFaP~tU+4Jo z;~SL)kAb|+?|%O(y;+lio;2mFMe5bcCts~K41-K2Lp&a5U|;|#C5B-zJ2gRMBvCu} zu%pn$haY~}%C@B?blt@FoKLP=yWLf-R=IfbB8^6a`T6-R`{R#4&eYTthGB5@=+S>Z e;QzLNrTjnVhFJt7PE2tC0000 'The /root/pkexec-test file was not created.') { @vm.execute('ls /root/pkexec-test').success? } @@ -41,9 +41,9 @@ Then /^I should not be able to run a command as root with pkexec and the standar @screen.wait_and_click('GnomeTerminalWindow.png', 20) @screen.type('pkexec touch /root/pkexec-test' + Sikuli::Key.ENTER) ['', 'live'].each do |password| - step "I enter the \"#{password}\" password in the PolicyKit prompt" + step "I enter the \"#{password}\" password in the pkexec prompt" @screen.wait('PolicyKitAuthFailure.png', 20) end - step "I enter the \"amnesia\" password in the PolicyKit prompt" + step "I enter the \"amnesia\" password in the pkexec prompt" @screen.wait('PolicyKitAuthCompleteFailure.png', 20) end -- 2.11.4.GIT