HomePhorge

(maint) Error message is different under Windows 2012r2
b5a00d0abdbcUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(maint) Error message is different under Windows 2012r2

Previously, the test was expecting a failed logon to raise an error
whose message contained:

unknown user name or bad password.

This is correct in 2008r2 and earlier, but it appears Windows 2012
changed the error message to be:

The user name or password is incorrect.

This commit updates the test to not be sensitive to the message
text. Instead we verify that the exception contains the correct Win32
error code (ERROR_LOGON_FAILURE).

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUc682c5af464d: (PUP-2521) Remove reference to windows-pr ERROR_FILE_NOT_FOUND constant
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPUb5a00d0abdbc: (maint) Error message is different under Windows 2012r2 (authored by Josh Cooper <josh@puppetlabs.com>).Jul 8 2014, 12:56 AM