diff options
author | Matt Clay <matt@mystile.com> | 2016-10-13 18:09:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-13 18:09:25 +0200 |
commit | 75e4645ee70434e2706845ca9fe96d5823616eea (patch) | |
tree | 360f27f11eeb33ba993ae3f30764589b3981e99c /test/integration/targets/ping | |
parent | Split out var_blending test into targets dir. (#17996) (diff) | |
download | ansible-75e4645ee70434e2706845ca9fe96d5823616eea.tar.xz ansible-75e4645ee70434e2706845ca9fe96d5823616eea.zip |
Migrate Linux CI roles to test targets. (#17997)
Diffstat (limited to 'test/integration/targets/ping')
-rw-r--r-- | test/integration/targets/ping/tasks/main.yml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/test/integration/targets/ping/tasks/main.yml b/test/integration/targets/ping/tasks/main.yml new file mode 100644 index 0000000000..d7cbe64aff --- /dev/null +++ b/test/integration/targets/ping/tasks/main.yml @@ -0,0 +1,37 @@ +# test code for the ping module +# (c) 2014, James Cammarata <jcammarata@ansible.com> + +# This file is part of Ansible +# +# Ansible is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Ansible is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with Ansible. If not, see <http://www.gnu.org/licenses/>. + +- name: ping the test + ping: + register: result + +- name: assert the ping worked + assert: + that: + - "result.changed == false" + - "result.ping == 'pong'" + +- name: ping with data + ping: data="testing" + register: result + +- name: assert the ping worked with data + assert: + that: + - "result.changed == false" + - "result.ping == 'testing'" |