mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-08 19:10:31 +00:00
52dd244a73
adds a docker file for integration tests update integration framework and tests to include alpine update makefile to include apk builds for alpine update build utils to include apk compatibility changed a couple switch lines to be compatible with alpine adds travis tests
54 lines
1.4 KiB
Ruby
54 lines
1.4 KiB
Ruby
require_relative './spec_helper'
|
|
|
|
describe 'git-secret::test' do
|
|
|
|
describe package('git-secret') do
|
|
it { should be_installed }
|
|
end
|
|
|
|
if host_inventory['platform'] == 'fedora'
|
|
describe command('find /tmp/git-secret/build -name "*.rpm"') do
|
|
its(:stdout) { should match /git-secret.*rpm/ }
|
|
end
|
|
elsif host_inventory['platform'] == 'alpine'
|
|
describe command('find /tmp/git-secret/build -name "*.apk"') do
|
|
its(:stdout) { should match /git-secret.*apk/ }
|
|
end
|
|
else
|
|
describe command('find /tmp/git-secret/build -name "*.deb"') do
|
|
its(:stdout) { should match /git-secret.*deb/ }
|
|
end
|
|
end
|
|
|
|
describe file('/.git-secret_test-passed') do
|
|
it { should exist }
|
|
end
|
|
|
|
describe file('/.git-secret_lint-passed') do
|
|
it { should exist }
|
|
end
|
|
|
|
if host_inventory['platform'] == 'fedora'
|
|
describe command('rpm --query --info git-secret') do
|
|
its(:exit_status) { should eq 0 }
|
|
end
|
|
elsif host_inventory['platform'] == 'alpine'
|
|
describe command('apk info git-secret') do
|
|
its(:exit_status) { should eq 0 }
|
|
end
|
|
else
|
|
describe command('dpkg-query --status git-secret') do
|
|
its(:exit_status) { should eq 0 }
|
|
end
|
|
end
|
|
|
|
describe command('man -w "git-secret"') do
|
|
its(:exit_status) { should eq 0 }
|
|
end
|
|
|
|
describe command('man -w "git-secret-init"') do
|
|
its(:exit_status) { should eq 0 }
|
|
end
|
|
|
|
end
|