Project

General

Profile

« Previous | Next » 

Revision 6500b09d

Added by Eric Helms 4 months ago

Fixes #37130 - set owner, group and mode for bootstrap RPM

View differences:

spec/acceptance/bootstrap_rpm_spec.rb
describe file('/var/www/html/pub/katello-rhsm-consumer') do
it { should be_file }
it { should be_mode 755 }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
describe file("/var/www/html/pub/katello-ca-consumer-#{host_inventory['fqdn']}-1.0-1.noarch.rpm") do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
describe file("/var/www/html/pub/katello-ca-consumer-#{host_inventory['fqdn']}-1.0-2.noarch.rpm") do
......
describe file("/var/www/html/pub/katello-ca-consumer-#{host_inventory['fqdn']}-1.0-1.noarch.rpm") do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
describe file("/var/www/html/pub/katello-ca-consumer-#{host_inventory['fqdn']}-1.0-2.noarch.rpm") do
......
describe file('/var/www/html/pub/katello-rhsm-consumer') do
it { should be_file }
it { should be_mode 755 }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
......
describe file("/var/www/html/pub/katello-ca-consumer-#{host_inventory['fqdn']}-1.0-3.noarch.rpm") do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
describe file('/var/www/html/pub/katello-ca-consumer-latest.noarch.rpm') do
......
describe file('/var/www/html/pub/katello-rhsm-consumer') do
it { should be_file }
it { should be_mode 755 }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
its(:content) { should match(/8443/) }
......
describe file("/var/www/html/pub/katello-ca-consumer-#{host_inventory['fqdn']}-1.0-10.noarch.rpm") do
it { should be_file }
it { should be_mode 644 }
it { should be_owned_by 'root' }
it { should be_grouped_into 'root' }
end
describe file('/var/www/html/pub/katello-ca-consumer-latest.noarch.rpm') do

Also available in: Unified diff