Skip to content

Commit

Permalink
add unit test for store_git_keys_in_db
Browse files Browse the repository at this point in the history
  • Loading branch information
LongLiveCHIEF committed Dec 19, 2017
1 parent f1eae67 commit bb90d33
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,14 @@
.with_content(%r{"/var/opt/data"})
end
end
describe 'with store_git_keys_in_db' do
let(:params) {{ 'store_git_keys_in_db' => true }}

it do
is_expected.to contain_file('/opt/gitlab-shell/authorized_keys')
.with_content(%r{/opt/gitlab/embedded/service/gitlab-shell/bin/authorized_key})
end
end
end
end
end
Expand Down

0 comments on commit bb90d33

Please sign in to comment.