Commit 56f4bf44 by Chris Church

Add integration tests for win_user module.

parent e6fa169a
---
test_win_user_name: test_win_user
test_win_user_password: "T35Tus3rP@ssW0rd"
test_win_user_password2: "pa55wOrd4te5tU53R!"
trap
{
Write-Error -ErrorRecord $_
exit 1;
}
$username = $args[0]
[void][system.reflection.assembly]::LoadWithPartialName('System.DirectoryServices.AccountManagement')
$pc = New-Object -TypeName System.DirectoryServices.AccountManagement.PrincipalContext 'Machine', $env:COMPUTERNAME
For ($i = 1; $i -le 10; $i++) {
try {
$pc.ValidateCredentials($username, 'b@DP@ssw0rd')
}
catch {
break
}
}
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
- { role: test_win_msi, tags: test_win_msi } - { role: test_win_msi, tags: test_win_msi }
- { role: test_win_service, tags: test_win_service } - { role: test_win_service, tags: test_win_service }
- { role: test_win_feature, tags: test_win_feature } - { role: test_win_feature, tags: test_win_feature }
- { role: test_win_user, tags: test_win_user }
- { role: test_win_file, tags: test_win_file } - { role: test_win_file, tags: test_win_file }
- { role: test_win_copy, tags: test_win_copy } - { role: test_win_copy, tags: test_win_copy }
- { role: test_win_template, tags: test_win_template } - { role: test_win_template, tags: test_win_template }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment