Skip to content

Commit

Permalink
Add spec test for conduit impl of jenkins_credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
Oliver Chick committed Mar 7, 2017
1 parent ce5f19a commit a2e21e8
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions spec/acceptance/xtypes/jenkins_credentials_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,30 @@
end
end

context 'ConduitCredentialsImpl' do
it 'should work with no errors' do
pp = base_manifest + <<-EOS
jenkins_credentials { '002224bd-60cb-49f3-a314-d0f73f82233d':
ensure => 'present',
description => 'phabricator-jenkins-conduit',
domain => undef,
impl => 'ConduitCredentialsImpl',
token => '{PRIVATE TOKEN}',
url => 'https://my-phabricator-repo.com',
}
EOS

apply2(pp)
end
# XXX need to properly compare the XML doc
# trying to match anything other than the id this way might match other
# credentials
describe file('/var/lib/jenkins/credentials.xml') do
it { should contain '<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>' }
end
end


context 'BasicSSHUserPrivateKey' do
it 'should work with no errors' do
pp = base_manifest + <<-EOS
Expand Down

0 comments on commit a2e21e8

Please # to comment.