Work with fang64 on spec tests

This commit is contained in:
Garrett Honeycutt 2015-09-03 15:05:05 -04:00
parent e649f71ef9
commit 4ea08a5357

View File

@ -1309,13 +1309,23 @@ describe 'ssh' do
end end
end end
describe 'with KerberosAuthentication' do describe 'with sshd_kerberos_authentication' do
['yes','no'].each do |value| ['yes','no'].each do |value|
context "set to #{value}" do context "set to #{value}" do
set param to value let :facts do
{
:fqdn => 'monkey.example.com',
:osfamily => 'RedHat',
:sshrsakey => 'AAAAB3NzaC1yc2EAAAABIwAAAQEArGElx46pD6NNnlxVaTbp0ZJMgBKCmbTCT3RaeCk0ZUJtQ8wkcwTtqIXmmiuFsynUT0DFSd8UIodnBOPqitimmooAVAiAi30TtJVzADfPScMiUnBJKZajIBkEMkwUcqsfh630jyBvLPE/kyQcxbEeGtbu1DG3monkeymanOBW1AKc5o+cJLXcInLnbowMG7NXzujT3BRYn/9s5vtT1V9cuZJs4XLRXQ50NluxJI7sVfRPVvQI9EMbTS4AFBXUej3yfgaLSV+nPZC/lmJ2gR4t/tKvMFF9m16f8IcZKK7o0rK7v81G/tREbOT5YhcKLK+0wBfR6RsmHzwy4EddZloyLQ=='
}
end
let (:params) {{ 'sshd_kerberos_authentication' => value }}
it { should contain_file('sshd_config').with_content(/^KerberosAuthentication #{value}$/) } it { should contain_file('sshd_config').with_content(/^KerberosAuthentication #{value}$/) }
end end
context 'with KerberosAuthentication set to invalid value on valid osfamily' do end
context 'set to invalid value on valid osfamily' do
let :facts do let :facts do
{ {
:fqdn => 'monkey.example.com', :fqdn => 'monkey.example.com',
@ -1334,7 +1344,6 @@ describe 'ssh' do
end end
end end
end end
end
context 'when ssh_config_template has a nonstandard value' do context 'when ssh_config_template has a nonstandard value' do
context 'and that value is not valid' do context 'and that value is not valid' do