diff options
author | tyler-ball <tyleraball@gmail.com> | 2016-01-21 10:28:54 -0700 |
---|---|---|
committer | tyler-ball <tyleraball@gmail.com> | 2016-01-21 10:28:54 -0700 |
commit | 5bd62d64eaa8dde65188aba21620f8f0fd76a38f (patch) | |
tree | 68bd573fc10e16a91294a285a4861e083a82440d /spec/functional/resource/user | |
parent | 1e746d158f00859933bf3cd0e2bedc0768c1e727 (diff) | |
download | chef-5bd62d64eaa8dde65188aba21620f8f0fd76a38f.tar.gz |
Test failures for the Cisco Nexus 7 platform in Manhattan. It cannot have uppercase users
Diffstat (limited to 'spec/functional/resource/user')
-rw-r--r-- | spec/functional/resource/user/useradd_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/functional/resource/user/useradd_spec.rb b/spec/functional/resource/user/useradd_spec.rb index 9335aa8505..38682baea6 100644 --- a/spec/functional/resource/user/useradd_spec.rb +++ b/spec/functional/resource/user/useradd_spec.rb @@ -242,17 +242,17 @@ describe Chef::Provider::User::Useradd, metadata do let(:home) { "/home/#{username}" } it "ensures the user's home is set to the given path" do - expect(pw_entry.home).to eq("/home/#{username}") + expect(pw_entry.home).to eq(home) end if %w{rhel fedora}.include?(OHAI_SYSTEM["platform_family"]) # Inconsistent behavior. See: CHEF-2205 it "creates the home dir when not explicitly asked to on RHEL (XXX)" do - expect(File).to exist("/home/#{username}") + expect(File).to exist(home) end else it "does not create the home dir without `manage_home'" do - expect(File).not_to exist("/home/#{username}") + expect(File).not_to exist(home) end end @@ -260,7 +260,7 @@ describe Chef::Provider::User::Useradd, metadata do let(:manage_home) { true } it "ensures the user's home directory exists" do - expect(File).to exist("/home/#{username}") + expect(File).to exist(home) end end end |