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
c0c9ff23
Commit
c0c9ff23
authored
10 years ago
by
Chris Church
Committed by
Matt Martz
10 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix win_ping integration test.
parent
21ba529f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
34 deletions
+24
-34
test/integration/roles/test_win_ping/tasks/main.yml
+24
-34
No files found.
test/integration/roles/test_win_ping/tasks/main.yml
View file @
c0c9ff23
...
...
@@ -22,45 +22,35 @@
-
"
not
win_ping_with_data_result|changed"
-
"
win_ping_with_data_result.ping
==
'blah'"
-
name
:
test ping.ps1 with data
ping.ps1
:
data=bleep
register
:
ping_ps1
_result
#- name: test local ping (should use default ping)
# local_action: ping
# register: local_ping
_result
-
name
:
check ping.ps1 result
assert
:
that
:
-
"
not
ping_ps1_result|failed"
-
"
not
ping_ps1_result|changed"
-
"
ping_ps1_result.ping
==
'bleep'"
#- name: test ping.ps1 with invalid args
# ping.ps1: arg=invalid
# register: ping_ps1_invalid_args_result
#- name: check that ping.ps1 with invalid args fails
#- name: check local ping result
# assert:
# that:
# - "ping_ps1_invalid_args_result|failed"
# - "ping_ps1_invalid_args_result.msg"
# that:
# - "not local_ping_result|failed"
# - "not local_ping_result|changed"
# - "local_ping_result.ping == 'pong'"
-
name
:
test
local ping (should use default ping)
local_action
:
ping
register
:
local_ping
_result
-
name
:
test
win_ping.ps1 with data
win_ping.ps1
:
data=bleep
register
:
win_ping_ps1
_result
-
name
:
check
local ping result
-
name
:
check
win_ping.ps1 result with data
assert
:
that
:
-
"
not
local_ping
_result|failed"
-
"
not
local_ping
_result|changed"
-
"
local_ping_result.ping
==
'pong
'"
-
"
not
win_ping_ps1
_result|failed"
-
"
not
win_ping_ps1
_result|changed"
-
"
win_ping_ps1_result.ping
==
'bleep
'"
-
name
:
test ping (should use ping.ps1)
action
:
ping
register
:
ping_result
#- name: test win_ping with invalid args
# win_ping: arg=invalid
# register: win_ping_ps1_invalid_args_result
#- name: check that win_ping.ps1 with invalid args fails
# assert:
# that:
# - "win_ping_ps1_invalid_args_result|failed"
# - "win_ping_ps1_invalid_args_result.msg"
-
name
:
check ping result
assert
:
that
:
-
"
not
ping_result|failed"
-
"
not
ping_result|changed"
-
"
ping_result.ping
==
'pong'"
This diff is collapsed.
Click to expand it.
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