-
- describe file("#{vardir}/concat") do
- it { should be_directory }
- it { should be_owned_by username }
- it("should be mode", :unless => (fact('osfamily') == 'AIX' or fact('osfamily') == 'windows')) {
- should be_mode 755
- }
- end
- describe file("#{vardir}/concat/bin") do
- it { should be_directory }
- it { should be_owned_by username }
- it("should be mode", :unless => (fact('osfamily') == 'AIX' or fact('osfamily') == 'windows')) {
- should be_mode 755
- }
- end
- describe file("#{vardir}/concat/bin/#{scriptname}") do
- it { should be_file }
- it { should be_owned_by username }
- it("should be mode", :unless => (fact('osfamily') == 'AIX' or fact('osfamily') == 'windows')) {
- should be_mode 755
- }
- end
- describe file("#{vardir}/concat/#{safe_basedir}_file") do
- it { should be_directory }
- it { should be_owned_by username }
- it("should be mode", :unless => (fact('osfamily') == 'AIX' or fact('osfamily') == 'windows')) {
- should be_mode 750
- }
- end
- describe file("#{vardir}/concat/#{safe_basedir}_file/fragments") do
- it { should be_directory }
- it { should be_owned_by username }
- it("should be mode", :unless => (fact('osfamily') == 'AIX' or fact('osfamily') == 'windows')) {
- should be_mode 750
- }
- end
- describe file("#{vardir}/concat/#{safe_basedir}_file/fragments.concat") do
- it { should be_file }
- it { should be_owned_by username }
- it("should be mode", :unless => (fact('osfamily') == 'AIX' or fact('osfamily') == 'windows')) {
- should be_mode 640
- }
- end
- describe file("#{vardir}/concat/#{safe_basedir}_file/fragments.concat.out") do
- it { should be_file }
- it { should be_owned_by username }
- it("should be mode", :unless => (fact('osfamily') == 'AIX' or fact('osfamily') == 'windows')) {
- should be_mode 640
- }
- end