Skip to content

Commit d0dafa2

Browse files
author
Himani Deshpande
committed
Changing Kitcne test for Enroot and Pyxis
1 parent 7fda651 commit d0dafa2

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

cookbooks/aws-parallelcluster-platform/test/controls/enroot_spec.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@
1414

1515
expected_enroot_version = node['cluster']['enroot']['version']
1616

17-
describe "gdrcopy version is expected to be #{expected_enroot_version}" do
17+
describe "enroot version is expected to be #{expected_enroot_version}" do
1818
subject { command('enroot version').stdout.strip() }
1919
it { should eq expected_enroot_version }
2020
end
21+
title "Check pyxis is installed"
22+
describe file("/opt/slurm/etc/plugstack.conf.d/pyxis.conf") do
23+
it { should exist }
24+
end
2125
end
2226

2327
control 'tag:config_enroot_enabled_on_graphic_instances' do

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

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@
1212
control 'tag:install_pyxis_installed' do
1313
only_if { ['yes', true].include?(node['cluster']['nvidia']['enabled']) }
1414

15-
title 'Checks Pyxis has been installed'
15+
title 'Checks plugstack directory has been installed'
1616

17-
describe file("/opt/slurm/etc/plugstack.conf.d/pyxis.conf") do
17+
describe directory('/opt/slurm/etc/plugstack.conf.d') do
1818
it { should exist }
1919
end
20+
# describe file("/opt/slurm/etc/plugstack.conf.d/pyxis.conf") do
21+
# it { should exist }
22+
# end
2023
end

0 commit comments

Comments
 (0)