From ff6dc03d6e6c481c20ded2554cf29028efe5c298 Mon Sep 17 00:00:00 2001 From: Giacomo Marciani Date: Thu, 17 Oct 2024 17:15:19 +0200 Subject: [PATCH] [Test] Fix kitchen test related to enroot Signed-off-by: Giacomo Marciani --- .../test/controls/enroot_spec.rb | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/cookbooks/aws-parallelcluster-platform/test/controls/enroot_spec.rb b/cookbooks/aws-parallelcluster-platform/test/controls/enroot_spec.rb index 669af6f2e..a8d92f625 100644 --- a/cookbooks/aws-parallelcluster-platform/test/controls/enroot_spec.rb +++ b/cookbooks/aws-parallelcluster-platform/test/controls/enroot_spec.rb @@ -32,11 +32,10 @@ control 'tag:config_enroot_enabled_on_graphic_instances' do only_if { !os_properties.on_docker? && ['yes', true].include?(node['cluster']['nvidia']['enabled']) } - - describe file("/var/enroot/cache-group-1000") do - it { should exist } - its('group') { should eq 'root' } - end unless os_properties.redhat_on_docker? + describe 'enroot service should be enabled' do + subject { command("enroot version") } + its('exit_status') { should cmp == 0 } + end end control 'tag:config_enroot_disabled_on_non_graphic_instances' do