Skip to content

Commit

Permalink
Fix udev test
Browse files Browse the repository at this point in the history
Signed-off-by: Hanwen <[email protected]>
  • Loading branch information
hanwen-cluster committed Jan 24, 2024
1 parent c8d76c6 commit 9c201d1
Showing 1 changed file with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
its('mode') { should cmp '0644' }
end

paths = %w(/usr/local/sbin/parallelcluster-ebsnvme-id /sbin/ec2_dev_2_volid.py /etc/systemd/system/ec2blkdev.service)
paths = %w(/usr/local/sbin/parallelcluster-ebsnvme-id /sbin/ec2_dev_2_volid.py)
paths.each do |path|
describe file(path) do
it { should exist }
Expand All @@ -29,20 +29,6 @@
end
end

control 'tag:install_ec2_udev_rules_debian_udevd_reload_configuration' do
title "Configuration to reload the udevd daemon when the override.conf changes"

only_if { os.debian? }

describe file('/etc/systemd/system/systemd-udevd.service.d/override.conf') do
it { should exist }
its('content') { should_not be_empty }
its('owner') { should eq 'root' }
its('group') { should eq 'root' }
its('mode') { should cmp '0644' }
end
end

control 'tag:install_tag:config_ec2_udev_rules_ec2blkdev_service_installation' do
title "Installation of the ec2blkdev service"

Expand Down

0 comments on commit 9c201d1

Please sign in to comment.