summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortyler-ball <tyleraball@gmail.com>2016-01-21 10:28:54 -0700
committertyler-ball <tyleraball@gmail.com>2016-01-21 10:28:54 -0700
commit5bd62d64eaa8dde65188aba21620f8f0fd76a38f (patch)
tree68bd573fc10e16a91294a285a4861e083a82440d
parent1e746d158f00859933bf3cd0e2bedc0768c1e727 (diff)
downloadchef-5bd62d64eaa8dde65188aba21620f8f0fd76a38f.tar.gz
Test failures for the Cisco Nexus 7 platform in Manhattan. It cannot have uppercase users
-rw-r--r--spec/functional/resource/group_spec.rb8
-rw-r--r--spec/functional/resource/user/useradd_spec.rb8
2 files changed, 8 insertions, 8 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb
index 418dad431d..7566f79013 100644
--- a/spec/functional/resource/group_spec.rb
+++ b/spec/functional/resource/group_spec.rb
@@ -361,7 +361,7 @@ downthestreetalwayshadagoodsmileonhisfacetheoldmanwalkingdownthestreeQQQQQQ" }
end
describe "group modify action", :not_supported_on_solaris do
- let(:spec_members){ ["Gordon", "Eric", "Anthony"] }
+ let(:spec_members){ ["gordon", "eric", "anthony"] }
let(:included_members) { [spec_members[0], spec_members[1]] }
let(:excluded_members) { [spec_members[2]] }
let(:tested_action) { :modify }
@@ -389,7 +389,7 @@ downthestreetalwayshadagoodsmileonhisfacetheoldmanwalkingdownthestreeQQQQQQ" }
end
describe "group manage action", :not_supported_on_solaris do
- let(:spec_members){ ["Gordon", "Eric", "Anthony"] }
+ let(:spec_members){ ["gordon", "eric", "anthony"] }
let(:included_members) { [spec_members[0], spec_members[1]] }
let(:excluded_members) { [spec_members[2]] }
let(:tested_action) { :manage }
@@ -427,7 +427,7 @@ downthestreetalwayshadagoodsmileonhisfacetheoldmanwalkingdownthestreeQQQQQQ" }
describe "group resource with Usermod provider", :solaris_only do
describe "when excluded_members is set" do
- let(:excluded_members) { ["Anthony"] }
+ let(:excluded_members) { ["anthony"] }
it ":manage should raise an error" do
expect {group_resource.run_action(:manage) }.to raise_error
@@ -443,7 +443,7 @@ downthestreetalwayshadagoodsmileonhisfacetheoldmanwalkingdownthestreeQQQQQQ" }
end
describe "when append is not set" do
- let(:included_members) { ["Gordon", "Eric"] }
+ let(:included_members) { ["gordon", "eric"] }
before(:each) do
group_resource.append(false)
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