summaryrefslogtreecommitdiff
path: root/spec/support/shared/unit/provider/useradd_based_user_provider.rb
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-03-02 16:46:43 +0000
committerThom May <thom@chef.io>2016-03-02 16:46:43 +0000
commitbb07619ac9d484899c91e051be39ab33f5d4b27f (patch)
tree3f7bbeeaffe0ec7ead2464f25181b16c8079d389 /spec/support/shared/unit/provider/useradd_based_user_provider.rb
parent8b94d2346158f42e37ae0f54f65710e3122e8098 (diff)
downloadchef-bb07619ac9d484899c91e051be39ab33f5d4b27f.tar.gz
Revert "Merge pull request #4465 from artursitarski/change-shell-for-locked-user"tm/revert_4465
This reverts commit 94494e761763b877c3ef3b52eee9ac9df2186340, reversing changes made to a95a87d50c9e5af2fbd583afcf972880656d1a4b.
Diffstat (limited to 'spec/support/shared/unit/provider/useradd_based_user_provider.rb')
-rw-r--r--spec/support/shared/unit/provider/useradd_based_user_provider.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/support/shared/unit/provider/useradd_based_user_provider.rb b/spec/support/shared/unit/provider/useradd_based_user_provider.rb
index b792c43fd7..6677a069ea 100644
--- a/spec/support/shared/unit/provider/useradd_based_user_provider.rb
+++ b/spec/support/shared/unit/provider/useradd_based_user_provider.rb
@@ -365,15 +365,15 @@ shared_examples_for "a useradd-based user provider" do |supported_useradd_option
end
describe "when locking the user" do
- it "should run usermod -L -s /bin/false with the new resources username" do
- expect(provider).to receive(:shell_out!).with("usermod", "-L", "-s", "/bin/false", @new_resource.username)
+ it "should run usermod -L with the new resources username" do
+ expect(provider).to receive(:shell_out!).with("usermod", "-L", @new_resource.username)
provider.lock_user
end
end
describe "when unlocking the user" do
- it "should run usermod -U -s with the new resources shell and username" do
- expect(provider).to receive(:shell_out!).with("usermod", "-U", "-s", @new_resource.shell, @new_resource.username)
+ it "should run usermod -L with the new resources username" do
+ expect(provider).to receive(:shell_out!).with("usermod", "-U", @new_resource.username)
provider.unlock_user
end
end