blob: a554d9de601d91d80b356a422a9e49f044d35745 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
require 'spec_helper'
describe 'sshd::ssh_authorized_key' do
context 'add authorized key' do
let(:title) { 'foo' }
let(:ssh_key) { 'some_secret_ssh_key' }
let(:params) {{
:key => ssh_key,
}}
it { should contain_ssh_authorized_key('foo').with({
'ensure' => 'present',
'type' => 'ssh-dss',
'user' => 'foo',
'target' => '/home/foo/.ssh/authorized_keys',
'key' => ssh_key,
})
}
end
end
|