Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Credential plugins CI fixes #1098

Merged
merged 5 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 All @@ -34,17 +36,24 @@
end

context 'ConduitCredentialsImpl' do
it 'works with no errors and idempotently' do

Check failure on line 39 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

jenkins_credentials ensure => present ConduitCredentialsImpl works with no errors and idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'almalinux9-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_174933580.pp.Uk19cP Last 10 lines of output were: Warning: /Stage[main]/Jenkins::Cli/Exec[check-jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/File[/usr/share/java/jenkins-cli.jar]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[safe-restart-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli::Reload/Exec[reload-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli_helper/File[/usr/share/java/puppet_helper.groovy]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins/Anchor[jenkins::end]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Jenkins_credentials[002224bd-60cb-49f3-a314-d0f73f82233d]: Skipping because of failed dependencies Info: Class[Main]: Unscheduling all events on Class[Main] �[mNotice: Applied catalog in 8.53 seconds

Check failure on line 39 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 20.04

jenkins_credentials ensure => present ConduitCredentialsImpl works with no errors and idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175251727.pp.CdNpr9 Last 10 lines of output were: Warning: /Stage[main]/Jenkins::Cli/Exec[check-jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/File[/usr/share/java/jenkins-cli.jar]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[safe-restart-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli::Reload/Exec[reload-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli_helper/File[/usr/share/java/puppet_helper.groovy]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins/Anchor[jenkins::end]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Jenkins_credentials[002224bd-60cb-49f3-a314-d0f73f82233d]: Skipping because of failed dependencies Info: Class[Main]: Unscheduling all events on Class[Main] �[mNotice: Applied catalog in 12.82 seconds
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 All @@ -67,17 +76,20 @@
# trying to match anything other than the id this way might match other
# credentials
describe file('/var/lib/jenkins/credentials.xml') do
it { is_expected.to contain '<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>' }

Check failure on line 79 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

jenkins_credentials ensure => present ConduitCredentialsImpl File "/var/lib/jenkins/credentials.xml" is expected to contain "<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>" Failure/Error: it { is_expected.to contain '<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>' } expected File "/var/lib/jenkins/credentials.xml" to contain "<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>"

Check failure on line 79 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 20.04

jenkins_credentials ensure => present ConduitCredentialsImpl File "/var/lib/jenkins/credentials.xml" is expected to contain "<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>" Failure/Error: it { is_expected.to contain '<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>' } expected File "/var/lib/jenkins/credentials.xml" to contain "<id>002224bd-60cb-49f3-a314-d0f73f82233d</id>"
end
end

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 All @@ -171,9 +185,11 @@
end

context 'AWSCredentialsImpl' do
it 'works with no errors and idempotently' do

Check failure on line 188 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

jenkins_credentials ensure => present AWSCredentialsImpl works with no errors and idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175133335.pp.4PqLGC Last 10 lines of output were: Warning: /Stage[main]/Jenkins::Cli/Exec[check-jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/File[/usr/share/java/jenkins-cli.jar]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[safe-restart-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli::Reload/Exec[reload-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli_helper/File[/usr/share/java/puppet_helper.groovy]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins/Anchor[jenkins::end]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Jenkins_credentials[34d75c64-61ff-4a28-bd40-cac3aafc7e3a]: Skipping because of failed dependencies Info: Class[Main]: Unscheduling all events on Class[Main] �[mNotice: Applied catalog in 46.37 seconds

Check failure on line 188 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 20.04

jenkins_credentials ensure => present AWSCredentialsImpl works with no errors and idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175414171.pp.RCxCcM Last 10 lines of output were: Warning: /Stage[main]/Jenkins::Cli/Exec[check-jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/File[/usr/share/java/jenkins-cli.jar]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[safe-restart-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli::Reload/Exec[reload-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli_helper/File[/usr/share/java/puppet_helper.groovy]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins/Anchor[jenkins::end]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Jenkins_credentials[34d75c64-61ff-4a28-bd40-cac3aafc7e3a]: Skipping because of failed dependencies Info: Class[Main]: Unscheduling all events on Class[Main] �[mNotice: Applied catalog in 31.11 seconds
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 @@ -224,17 +241,20 @@
# XXX need to properly compare the XML doc
# trying to match anything other than the id this way might match other
# credentails
it { is_expected.to contain '<id>34d75c64-61ff-4a28-bd40-cac3aafc7e3a</id>' }

Check failure on line 244 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

jenkins_credentials ensure => present AWSCredentialsImpl File "/var/lib/jenkins/credentials.xml" is expected to contain "<id>34d75c64-61ff-4a28-bd40-cac3aafc7e3a</id>" Failure/Error: it { is_expected.to contain '<id>34d75c64-61ff-4a28-bd40-cac3aafc7e3a</id>' } expected File "/var/lib/jenkins/credentials.xml" to contain "<id>34d75c64-61ff-4a28-bd40-cac3aafc7e3a</id>"

Check failure on line 244 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 20.04

jenkins_credentials ensure => present AWSCredentialsImpl File "/var/lib/jenkins/credentials.xml" is expected to contain "<id>34d75c64-61ff-4a28-bd40-cac3aafc7e3a</id>" Failure/Error: it { is_expected.to contain '<id>34d75c64-61ff-4a28-bd40-cac3aafc7e3a</id>' } expected File "/var/lib/jenkins/credentials.xml" to contain "<id>34d75c64-61ff-4a28-bd40-cac3aafc7e3a</id>"
end
end

context 'GitLabApiTokenImpl' do
it 'works with no errors and idempotently' do

Check failure on line 249 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

jenkins_credentials ensure => present GitLabApiTokenImpl works with no errors and idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180524147.pp.DUou50 Last 10 lines of output were: Warning: /Stage[main]/Jenkins::Cli/Exec[jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/File[/usr/share/java/jenkins-cli.jar]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[safe-restart-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli::Reload/Exec[reload-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli_helper/File[/usr/share/java/puppet_helper.groovy]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins/Anchor[jenkins::end]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Jenkins_credentials[7e86e9fb-a8af-480f-b596-7191dc02bf38]: Skipping because of failed dependencies Info: Class[Main]: Unscheduling all events on Class[Main] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 25.33 seconds
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 All @@ -293,16 +317,19 @@
# XXX need to properly compare the XML doc
# trying to match anything other than the id this way might match other
# credentails
it { is_expected.to contain '<id>7e86e9fb-a8af-480f-b596-7191dc02bf38</id>' }

Check failure on line 320 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

jenkins_credentials ensure => present GitLabApiTokenImpl File "/var/lib/jenkins/credentials.xml" is expected to contain "<id>7e86e9fb-a8af-480f-b596-7191dc02bf38</id>" Failure/Error: it { is_expected.to contain '<id>7e86e9fb-a8af-480f-b596-7191dc02bf38</id>' } expected File "/var/lib/jenkins/credentials.xml" to contain "<id>7e86e9fb-a8af-480f-b596-7191dc02bf38</id>"
end
end

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 All @@ -348,11 +381,11 @@
}
EOS

it 'works with no errors' do

Check failure on line 384 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

jenkins_credentials ensure => present BrowserStackCredentials works with no errors Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'almalinux9-64-puppet7.example.com' exited with 6 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175258582.pp.x4Xn8R Last 10 lines of output were: Warning: /Stage[main]/Jenkins::Cli/Exec[jenkins-cli]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/File[/usr/share/java/jenkins-cli.jar]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli/Exec[safe-restart-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli::Reload/Exec[reload-jenkins]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins::Cli_helper/File[/usr/share/java/puppet_helper.groovy]: Skipping because of failed dependencies Warning: /Stage[main]/Jenkins/Anchor[jenkins::end]: Skipping because of failed dependencies Warning: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]: Skipping because of failed dependencies Info: Class[Main]: Unscheduling all events on Class[Main] Info: Stage[main]: Unscheduling all events on Stage[main] �[mNotice: Applied catalog in 9.30 seconds
apply(pp, catch_failures: true)
end

it 'works idempotently' do

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 7

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'centos7-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175449262.pp.084Lr8 Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 10.63 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - CentOS 9

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'centos9-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175326920.pp.1M3u58 Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 9.45 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 7

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'oracle7-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175246640.pp.VMaUHN Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 10.27 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 8

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'oracle8-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180732131.pp.uWgPG4 Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 9.67 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - OracleLinux 9

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'oracle9-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175357615.pp.tgM6OW Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 9.60 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 8

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'rocky8-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180754898.pp.c72TzU Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 9.90 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Rocky 9

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'rocky9-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175259715.pp.dLzonU Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 10.89 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 8

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'almalinux8-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_180620732.pp.CEZtkc Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 9.84 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - AlmaLinux 9

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'almalinux9-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175310654.pp.HwSqx5 Last 10 lines of output were: �[mNotice: /Stage[main]/Main/Jenkins::Plugin[workflow-cps]/File[/var/lib/jenkins/plugins/workflow-cps.hpi]/group: group changed 'root' to 'jenkins' �[mNotice: /Stage[main]/Main/Jenkins::Plugin[workflow-durable-task-step]/Exec[force workflow-durable-task-step.hpi-]/returns: executed successfully �[mNotice: /Stage[main]/Main/Jenkins::Plugin[workflow-durable-task-step]/Archive[workflow-durable-task-step.hpi]/ensure: download archive from https://updates.jenkins.io/latest/workflow-durable-task-step.hpi to /var/lib/jenkins/plugins/workflow-durable-task-step.hpi without cleanup Info: /Stage[main]/Main/Jenkins::Plugin[workflow-durable-task-step]/Archive[workflow-durable-task-step.hpi]: Scheduling refresh of Class[Jenkins::Service] �[mNotice: /Stage[main]/Main/Jenkins::Plugin[workflow-durable-task-step]/File[/var/lib/jenkins/plugins/workflow-durable-task-step.hpi]/owner: owner changed 'root' to 'jenkins' �[mNotice: /Stage[main]/Main/Jenkins::Plugin[workflow-durable-task-step]/File[/var/lib/jenkins/plugins/workflow-durable-task-step.hpi]/group: group changed 'root' to 'jenkins' Info: Class[Jenkins::Service]: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/ensure: created �[mNotice: Applied catalog in 18.74 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 20.04

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'ubuntu2004-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175619686.pp.03t4GS Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 11.10 seconds

Check warning on line 388 in spec/acceptance/xtypes/jenkins_credentials_spec.rb

View workflow job for this annotation

GitHub Actions / Puppet / 7 - Ubuntu 22.04

jenkins_credentials ensure => present BrowserStackCredentials works idempotently Failure/Error: apply_manifest(pp, options) Beaker::Host::CommandFailure: Host 'ubuntu2204-64-puppet7.example.com' exited with 2 running: puppet apply --verbose --detailed-exitcodes /tmp/apply_manifest_175538051.pp.xMQkR1 Last 10 lines of output were: �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-common.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/mina-sshd-api-core.jpi]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd]/ensure: removed �[mNotice: /Stage[main]/Jenkins::User_setup/File[/var/lib/jenkins/plugins/sshd.jpi]/ensure: removed Info: /var/lib/jenkins/plugins: Scheduling refresh of Service[jenkins] �[mNotice: /Stage[main]/Jenkins::Service/Service[jenkins]: Triggered 'refresh' from 1 event �[mNotice: /Stage[main]/Main/Jenkins_credentials[562fa23d-a441-4cab-997f-58df6e245813]/secret_key: defined 'secret_key' as 'you know I payed for this' �[mNotice: Applied catalog in 10.70 seconds
pending('secret key is not idempotent')
apply(pp, catch_changes: true)
end
Expand All @@ -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
Loading