Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/inventory
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[junos]
local_test ansible_host=x.x.x.x ansible_user=xyz ansible_pass=xyz ansible_ssh_pass=xyz ansible_port=22 ansible_connection=local
pyez_test ansible_host=x.x.x.x ansible_user=xyz ansible_pass=xuyz ansible_ssh_pass=xyz ansible_port=22 ansible_connection=juniper.device.pyez


[all:vars]
ansible_python_interpreter=<ansible_python_interpreter>
21 changes: 21 additions & 0 deletions tests/pb.juniper_junos_system.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
- name: Test juniper.device.system module
hosts: all
gather_facts: no

tasks:
- name: Reboot all REs of the device
juniper.device.system:
action: "reboot"
register: test1
ignore_errors: True
tags: [ test1 ]

- name: CHECK TEST 1
assert:
that:
- test1.reboot == true
tags: [ test1 ]

- name: Checking NETCONF connectivity
wait_for: host={{ ansible_ssh_host }} port=22 timeout=360