00:51:59.312 Begin tests/windows/enable_password_changes_special_users.rb |
00:51:59.313 |
00:51:59.313 Puppet should change passwords for disabled, expired, or locked out Windows user accounts |
00:51:59.313 |
00:51:59.313 * Create a disabled user account |
00:51:59.313 |
00:51:59.313 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:24$ cmd.exe /c net user pl909995 iP@ssword /active:no /add |
00:51:59.468 The command completed successfully. |
00:51:59.499 |
00:51:59.499 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 0.19 seconds |
00:51:59.499 |
00:51:59.499 * Change the disabled user account's password with puppet |
00:51:59.499 |
00:51:59.499 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:24$ cygpath -m $(mktemp -t apply_manifest.pp.XXXXXX) |
00:51:59.687 C:/cygwin64/tmp/apply_manifest.pp.By3h5R |
00:51:59.702 |
00:51:59.702 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 0.20 seconds |
00:51:59.702 localhost $ scp /tmp/beaker20200815-9032-1akxg44 e3tx2pftydfb0vy:C:/cygwin64/tmp/apply_manifest.pp.By3h5R {:ignore => } |
00:51:59.968 |
00:51:59.968 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:24$ cmd.exe /c puppet apply --verbose C:/cygwin64/tmp/apply_manifest.pp.By3h5R |
00:52:05.109 Notice: Compiled catalog for e3tx2pftydfb0vy.ops.puppetlabs.net in environment production in 0.03 seconds |
00:52:05.422 Info: Applying configuration version '1597560809' |
00:52:05.453 Info: User[pl909995](provider=windows_adsi): The user account 'pl909995' is disabled; The password will still be changed |
00:52:05.484 Notice: /Stage[main]/Main/User[pl909995]/password: changed [redacted] to [redacted] |
00:52:05.549 Notice: Applied catalog in 0.14 seconds |
00:52:05.688 |
00:52:05.688 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 5.72 seconds |
00:52:05.688 |
00:52:05.688 * Enabling the user account as the AccountManagement context can't verify disabled users |
00:52:05.688 |
00:52:05.688 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:30$ cmd.exe /c net user pl909995 /active:yes |
00:52:05.859 The command completed successfully. |
00:52:05.874 |
00:52:05.874 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 0.19 seconds |
00:52:05.874 |
00:52:05.875 * Ensure the password was changed |
00:52:05.875 localhost $ scp /tmp/beaker20200815-9032-z75wl0 e3tx2pftydfb0vy:beaker_powershell_script_1597560810.ps1 {:ignore => } |
00:52:06.156 |
00:52:06.156 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:30$ powershell.exe -ExecutionPolicy Bypass -InputFormat None -NoLogo -NoProfile -NonInteractive -File beaker_powershell_script_1597560810.ps1 |
00:52:09.167 True |
00:52:09.230 |
00:52:09.230 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 3.07 seconds |
00:52:09.230 |
00:52:09.230 * Create an expired user account |
00:52:09.231 |
00:52:09.231 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:33$ cmd.exe /c net user pl837418 iP@ssword /expires:08/14/20 /add |
00:52:09.390 The command completed successfully. |
00:52:09.422 |
00:52:09.422 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 0.19 seconds |
00:52:09.422 |
00:52:09.422 * Change the expired user's password with puppet |
00:52:09.422 |
00:52:09.422 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:34$ cygpath -m $(mktemp -t apply_manifest.pp.XXXXXX) |
00:52:09.609 C:/cygwin64/tmp/apply_manifest.pp.IaLH74 |
00:52:09.609 |
00:52:09.609 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 0.19 seconds |
00:52:09.610 localhost $ scp /tmp/beaker20200815-9032-1mhrht e3tx2pftydfb0vy:C:/cygwin64/tmp/apply_manifest.pp.IaLH74 {:ignore => } |
00:52:09.860 |
00:52:09.860 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:34$ cmd.exe /c puppet apply --verbose C:/cygwin64/tmp/apply_manifest.pp.IaLH74 |
00:52:15.016 Notice: Compiled catalog for e3tx2pftydfb0vy.ops.puppetlabs.net in environment production in 0.03 seconds |
00:52:15.328 Info: Applying configuration version '1597560819' |
00:52:15.375 Info: User[pl837418](provider=windows_adsi): The user account 'pl837418' is expired; The password will still be changed |
00:52:15.406 Notice: /Stage[main]/Main/User[pl837418]/password: changed [redacted] to [redacted] |
00:52:15.488 Notice: Applied catalog in 0.16 seconds |
00:52:15.641 |
00:52:15.641 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 5.78 seconds |
00:52:15.641 |
00:52:15.641 * Make expired user valid, as AccountManagement context can't verify expired user credentials |
00:52:15.641 |
00:52:15.641 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:40$ cmd.exe /c net user pl837418 /expires:08/16/20 |
00:52:15.813 The command completed successfully. |
00:52:15.813 |
00:52:15.813 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 0.17 seconds |
00:52:15.813 |
00:52:15.813 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:40$ cmd.exe /c net user pl837418 /active:yes |
00:52:15.984 The command completed successfully. |
00:52:16.000 |
00:52:16.000 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 0.19 seconds |
00:52:16.000 |
00:52:16.000 * Ensure the password was changed |
00:52:16.000 localhost $ scp /tmp/beaker20200815-9032-1prtrop e3tx2pftydfb0vy:beaker_powershell_script_1597560820.ps1 {:ignore => } |
00:52:16.281 |
00:52:16.281 e3tx2pftydfb0vy (e3tx2pftydfb0vy) 23:53:41$ powershell.exe -ExecutionPolicy Bypass -InputFormat None -NoLogo -NoProfile -NonInteractive -File beaker_powershell_script_1597560820.ps1 |
00:52:21.672 Exception calling "ValidateCredentials" with "2" argument(s): "An extended |
00:52:21.672 error has occurred. |
00:52:21.672 " |
00:52:21.672 At C:\cygwin64\home\Administrator\beaker_powershell_script_1597560820.ps1:3 |
00:52:21.672 char:3 |
00:52:21.672 + $ctx.ValidateCredentials("pl837418", "Password-287433") |
00:52:21.672 + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
00:52:21.672 + CategoryInfo : NotSpecified: (:) [], MethodInvocationException |
00:52:21.672 + FullyQualifiedErrorId : PrincipalOperationException |
00:52:21.672 |
00:52:21.766 |
00:52:21.766 e3tx2pftydfb0vy (e3tx2pftydfb0vy) executed in 5.48 seconds |
00:52:21.766 Minitest::Assertion: Expected the expired user account's password to be changed. |
00:52:21.766 Expected /True/ to match # encoding: US-ASCII |
00:52:21.766 # valid: true |
00:52:21.766 "". |
00:52:21.768 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/minitest-5.14.1/lib/minitest/assertions.rb:183 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/minitest-5.14.1/lib/minitest/assertions.rb:295 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/lib/puppet/acceptance/windows_utils.rb:26 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/tests/windows/enable_password_changes_special_users.rb:65 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/dsl/structure.rb:44 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/logger.rb:239 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/dsl/structure.rb:43 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/tests/windows/enable_password_changes_special_users.rb:64 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/tests/windows/enable_password_changes_special_users.rb:28 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/tests/windows/enable_password_changes_special_users.rb:28 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/dsl/structure.rb:124 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/logger.rb:239 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/dsl/structure.rb:123 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/tests/windows/enable_password_changes_special_users.rb:1 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/test_case.rb:133 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/test_case.rb:133 |
00:52:21.769 /usr/local/rvm/rubies/ruby-2.7.1/lib/ruby/2.7.0/benchmark.rb:308 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/test_case.rb:130 |
00:52:21.769 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/test_suite.rb:66 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/test_suite.rb:63 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/test_suite.rb:63 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/test_suite.rb:115 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/cli.rb:192 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/cli.rb:118 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/lib/beaker/subcommand.rb:199 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/thor-1.0.1/lib/thor/command.rb:27 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/thor-1.0.1/lib/thor/invocation.rb:127 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/thor-1.0.1/lib/thor.rb:392 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/thor-1.0.1/lib/thor/base.rb:485 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/gems/beaker-4.27.0/bin/beaker:7 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/bin/beaker:23 |
00:52:21.771 /var/lib/jenkins/workspace/imaging_win-81_x86_64_vmware_vcenter.cygwin_run_pa_component_acceptance_tests_packer/puppet/acceptance/.bundle/gems/ruby/2.7.0/bin/beaker:23 |
00:52:21.771 Begin teardown |
00:52:21.771 End teardown |
00:52:21.771 tests/windows/enable_password_changes_special_users.rb failed in 22.46 seconds
|