Skip to content

Commit

Permalink
Merge pull request #1098 from voxpupuli/credentials-fixes
Browse files Browse the repository at this point in the history
Credential plugins CI fixes
  • Loading branch information
evgeni authored Apr 23, 2024
2 parents 474e238 + 423d3d2 commit 3eed223
Showing 1 changed file with 49 additions and 13 deletions.
62 changes: 49 additions & 13 deletions spec/acceptance/xtypes/jenkins_credentials_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
context 'UsernamePasswordCredentialsImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins_credentials { '9b07d668-a87e-4877-9407-ae05056e32ac':
ensure => 'present',
Expand Down Expand Up @@ -36,15 +38,22 @@
context 'ConduitCredentialsImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { [
'apache-httpcomponents-client-4-api',
'caffeine-api',
'command-launcher',
'gson-api',
'jaxb',
'jdk-tool',
'mina-sshd-api-common',
'mina-sshd-api-core',
'phabricator-plugin',
'script-security',
'sshd',
'trilead-api',
]: }
Expand Down Expand Up @@ -74,10 +83,13 @@
context 'BasicSSHUserPrivateKey' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { [
'gson-api',
'ssh-credentials',
'variant',
'trilead-api',
Expand Down Expand Up @@ -110,10 +122,11 @@
context 'StringCredentialsImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { 'plain-credentials':
pin => true,
}
jenkins_credentials { '150b2895-b0eb-4813-b8a5-3779690c063c':
Expand Down Expand Up @@ -141,10 +154,11 @@
context 'FileCredentialsImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { 'plain-credentials':
pin => true,
}
jenkins_credentials { '95bfe159-8bf0-4605-be20-47e201220e7c':
Expand Down Expand Up @@ -173,7 +187,9 @@
context 'AWSCredentialsImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { [
'apache-httpcomponents-client-4-api',
Expand All @@ -194,6 +210,7 @@
'aws-java-sdk-ssm',
'caffeine-api',
'credentials-binding',
'gson-api',
'jackson2-api',
'jaxb',
'joda-time-api',
Expand Down Expand Up @@ -231,10 +248,13 @@
context 'GitLabApiTokenImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
package { 'git': }
jenkins::plugin { [
'asm-api',
'apache-httpcomponents-client-4-api',
'bootstrap5-api',
'caffeine-api',
Expand All @@ -248,14 +268,17 @@
'git',
'git-client',
'gitlab-plugin',
'gson-api',
'ionicons-api',
'jackson2-api',
'jakarta-activation-api',
'jakarta-mail-api',
'jaxb',
'jersey2-api',
'joda-time-api',
'jquery3-api',
'jsch',
'json-api',
'junit',
'mailer',
'matrix-project',
Expand All @@ -270,6 +293,7 @@
'ssh-credentials',
'sshd',
'trilead-api',
'variant',
'workflow-api',
'workflow-job',
'workflow-scm-step',
Expand Down Expand Up @@ -299,10 +323,13 @@

context 'BrowserStackCredentials' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { [
'ace-editor',
'asm-api',
'apache-httpcomponents-client-4-api',
'bootstrap5-api',
'browserstack-integration',
Expand All @@ -315,10 +342,15 @@
'durable-task',
'echarts-api',
'font-awesome-api',
'gson-api',
'ionicons-api',
'jackson2-api',
'jakarta-activation-api',
'jakarta-mail-api',
'jaxb',
'joda-time-api',
'jquery3-api',
'json-api',
'junit',
'mailer',
'plain-credentials',
Expand All @@ -329,6 +361,7 @@
'snakeyaml-api',
'ssh-credentials',
'trilead-api',
'variant',
'workflow-api',
'workflow-basic-steps',
'workflow-cps',
Expand Down Expand Up @@ -370,7 +403,9 @@
context 'StringCredentialsImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { 'plain-credentials': }
Expand Down Expand Up @@ -399,10 +434,11 @@
context 'FileCredentialsImpl' do
it 'works with no errors and idempotently' do
pp = <<-EOS
include jenkins
class {'jenkins':
purge_plugins => true,
}
include jenkins::cli::config
jenkins::plugin { 'plain-credentials':
pin => true,
}
jenkins_credentials { '95bfe159-8bf0-4605-be20-47e201220e7c':
Expand Down

0 comments on commit 3eed223

Please sign in to comment.