Skip to content

Commit

Permalink
Added ctrl_alt_del_config.rb to testsuite whitelist for be mocked.
Browse files Browse the repository at this point in the history
  • Loading branch information
teclator committed Mar 1, 2016
1 parent 7ac404b commit 8395121
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions testsuite/tests/Read.out
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Read .target.size "/etc/sysconfig/services" 1
Read .sysconfig.services.DISABLE_RESTART_ON_UPDATE nil
Read .target.size "/etc/sysconfig/services" 1
Read .sysconfig.services.DISABLE_STOP_ON_REMOVAL nil
Read .target.symlink "/etc/systemd/system/ctrl-alt-del.target" nil
Read .target.symlink "/etc/systemd/system/ctrl-alt-del.target" "/usr/lib/systemd/system/poweroff.target"
Read .etc.login_defs.ENCRYPT_METHOD "garbage"
Execute .target.bash_output "/usr/sbin/pam-config -q --cracklib" $["exit":0, "stderr":"", "stdout":""]
Execute .target.bash_output "/usr/sbin/pam-config -q --pwhistory" $["exit":0, "stderr":"", "stdout":""]
Expand Down Expand Up @@ -81,7 +81,7 @@ Read .target.size "/etc/sysconfig/services" 1
Read .sysconfig.services.DISABLE_RESTART_ON_UPDATE nil
Read .target.size "/etc/sysconfig/services" 1
Read .sysconfig.services.DISABLE_STOP_ON_REMOVAL nil
Read .target.symlink "/etc/systemd/system/ctrl-alt-del.target" nil
Read .target.symlink "/etc/systemd/system/ctrl-alt-del.target" "/usr/lib/systemd/system/poweroff.target"
Read .etc.login_defs.ENCRYPT_METHOD "SHA512"
Execute .target.bash_output "/usr/sbin/pam-config -q --cracklib" $["exit":0, "stderr":"", "stdout":""]
Execute .target.bash_output "/usr/sbin/pam-config -q --pwhistory" $["exit":0, "stderr":"", "stdout":""]
Expand Down
5 changes: 3 additions & 2 deletions testsuite/tests/Read.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# $Id$
#
# testedfiles: Security.ycp PamSettings.ycp Pam.ycp
# testedfiles: Security.ycp PamSettings.ycp Pam.ycp ctrl_alt_del_config.rb
module Yast
class ReadClient < Client
def main
Expand Down Expand Up @@ -79,7 +79,8 @@ def main
# FileUtils::Exists (ctrl_alt_del_file) returns true, so symlink is called
"stat" => {
1 => 2
}
},
"symlink" => "/usr/lib/systemd/system/poweroff.target"
},
"pam" => {
"passwd" => {
Expand Down

0 comments on commit 8395121

Please sign in to comment.