Skip to content

Commit 148de32

Browse files
committed
more checks in kitchen
1 parent 3285ca8 commit 148de32

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cookbooks/aws-parallelcluster-slurm/test/controls/slurm_config_spec.rb

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,20 @@
4545
its('exit_status') { should eq 0 }
4646
end
4747

48+
describe 'check cgroup memory resource controller is enabled' do
49+
describe command('cat /proc/cgroups') do
50+
its('stdout') { should match /memory/ }
51+
end
52+
53+
describe command("grep memory /proc/cgroups") do
54+
its('stdout') { should_not be_empty }
55+
end
56+
57+
describe command("grep memory /proc/cgroups | awk '{print $4}'") do
58+
its('stdout.strip') { should eq '1' }
59+
end
60+
end
61+
4862
describe 'check cgroup memory resource controller is enabled' do
4963
subject { bash("grep memory /proc/cgroups | awk '{print $4}'") }
5064
its('exit_status') { should eq 0 }

0 commit comments

Comments
 (0)