summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn R Barker <john@johnrbarker.com>2017-01-10 19:11:00 +0000
committerMatt Clay <matt@mystile.com>2017-01-10 11:11:00 -0800
commitec36b4968cd7989fbacbe8bd99a6e8c39ea0292a (patch)
tree194b85628eebb995f6981ec683a3b6008a6b13c0
parentf5c61650a78dbd4eef4ee3e114befcfbadb98a50 (diff)
downloadansible-ec36b4968cd7989fbacbe8bd99a6e8c39ea0292a.tar.gz
Junos aws (#20083)
* junos Use inventory_hostname_short * Basic Test for validating VyOS bringup in AWS
-rw-r--r--test/integration/targets/net_command/aliases1
-rw-r--r--test/integration/targets/net_command/tasks/main.yml35
2 files changed, 36 insertions, 0 deletions
diff --git a/test/integration/targets/net_command/aliases b/test/integration/targets/net_command/aliases
new file mode 100644
index 0000000000..1e984071f1
--- /dev/null
+++ b/test/integration/targets/net_command/aliases
@@ -0,0 +1 @@
+network/basics
diff --git a/test/integration/targets/net_command/tasks/main.yml b/test/integration/targets/net_command/tasks/main.yml
new file mode 100644
index 0000000000..18e936e665
--- /dev/null
+++ b/test/integration/targets/net_command/tasks/main.yml
@@ -0,0 +1,35 @@
+---
+# Test code for the net_command module.
+# (c) 2017, Red Hat
+
+# 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/>.
+
+
+# This is a placeholder test, will be fleshed out by gundalow at a later point
+
+- name: Check we can communicate using net_command
+ net_command: show version
+ connection: network_cli
+ register: result
+
+- debug:
+ msg: "{{ result.stdout }}"
+
+- name: Ensure output is valid
+ assert:
+ that:
+ - result.changed == true
+ - "'VyOS' in result.stdout"