Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ansible
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenEdx
ansible
Commits
56f4bf44
Commit
56f4bf44
authored
Sep 30, 2014
by
Chris Church
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add integration tests for win_user module.
parent
e6fa169a
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
test/integration/roles/test_win_user/defaults/main.yml
+5
-0
test/integration/roles/test_win_user/files/lockout_user.ps1
+17
-0
test/integration/roles/test_win_user/tasks/main.yml
+0
-0
test/integration/test_winrm.yml
+1
-0
No files found.
test/integration/roles/test_win_user/defaults/main.yml
0 → 100644
View file @
56f4bf44
---
test_win_user_name
:
test_win_user
test_win_user_password
:
"
T35Tus3rP@ssW0rd"
test_win_user_password2
:
"
pa55wOrd4te5tU53R!"
test/integration/roles/test_win_user/files/lockout_user.ps1
0 → 100644
View file @
56f4bf44
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
}
}
test/integration/roles/test_win_user/tasks/main.yml
0 → 100644
View file @
56f4bf44
This diff is collapsed.
Click to expand it.
test/integration/test_winrm.yml
View file @
56f4bf44
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment