diff --git a/spec/acceptance/xtypes/jenkins_credentials_spec.rb b/spec/acceptance/xtypes/jenkins_credentials_spec.rb index 53bbeb862..1cc47d0e4 100644 --- a/spec/acceptance/xtypes/jenkins_credentials_spec.rb +++ b/spec/acceptance/xtypes/jenkins_credentials_spec.rb @@ -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 '002224bd-60cb-49f3-a314-d0f73f82233d' } + end + end + + context 'BasicSSHUserPrivateKey' do it 'should work with no errors' do pp = base_manifest + <<-EOS