diff options
author | Jeremiah Snapp <jeremiah@chef.io> | 2021-09-03 09:41:29 -0400 |
---|---|---|
committer | Jeremiah Snapp <jeremiah@chef.io> | 2021-09-03 09:41:29 -0400 |
commit | 6d2f9fcdf4296860588a6c44e7cdce29f6e29e6f (patch) | |
tree | 15684b1d7d8db758a587f225cb24ddbdf6b3ca82 | |
parent | b91d99f16947b82d09217079f5423b5c7cd0962c (diff) | |
download | chef-jsnapp/test.tar.gz |
testjsnapp/test
Signed-off-by: Jeremiah Snapp <jeremiah@chef.io>
-rw-r--r-- | spec/functional/resource/group_spec.rb | 3 | ||||
-rw-r--r-- | spec/functional/resource/link_spec.rb | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/spec/functional/resource/group_spec.rb b/spec/functional/resource/group_spec.rb index 279f8ac8d4..73af5fc59f 100644 --- a/spec/functional/resource/group_spec.rb +++ b/spec/functional/resource/group_spec.rb @@ -44,6 +44,7 @@ describe Chef::Resource::Group, :requires_root_or_running_windows do members.shift # Get rid of GroupMembership: string members.include?(user) else + sleep 2 if aix? && (ohai[:platform_version] == "7.2") Etc.getgrnam(group_name).mem.include?(user) end end @@ -181,7 +182,7 @@ describe Chef::Resource::Group, :requires_root_or_running_windows do describe "when the users exist" do before do - high_uid = 30000 + high_uid = 40000 (spec_members).each do |member| remove_user(member) create_user(member, high_uid) diff --git a/spec/functional/resource/link_spec.rb b/spec/functional/resource/link_spec.rb index 734897aaa4..55e634c0e4 100644 --- a/spec/functional/resource/link_spec.rb +++ b/spec/functional/resource/link_spec.rb @@ -345,9 +345,11 @@ describe Chef::Resource::Link do let(:test_user) { "test-link-user" } before do user(test_user).run_action(:create) + sleep 2 if aix? && (ohai[:platform_version] == "7.2") end after do user(test_user).run_action(:remove) + sleep 2 if aix? && (ohai[:platform_version] == "7.2") end before(:each) do resource.owner(test_user) |