-
Couldn't load subscription status.
- Fork 167
Closed
Description
root@masterhost:~/ansible_sanity_tests_check2/ansible-junos-stdlib/tests# cat pb.juniper_junos_rpc_json.yml
---
- name: Test juniper.device.rpc module
hosts: all
gather_facts: false
tasks:
#################
- name: "Execute single RPC get-software-information without any kwargs"
juniper.device.rpc:
rpcs:
- "get-software-information"
format: json
register: test1
tags: [test1]
- name: Check TEST 1
ansible.builtin.assert:
that:
- test1.msg == "The RPC executed successfully."
tags: [test1]
root@masterhost:~/ansible_sanity_tests_check2/ansible-junos-stdlib/tests# ansible-playbook -i inventory pb.juniper_junos_rpc_json.yml
[DEPRECATION WARNING]: [defaults]collections_paths option. Reason: does not fit var naming standard, use the singular form collections_path instead
Alternatives: none. This feature will be removed in version 2.19. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.
PLAY [Test juniper.device.rpc module] ***********************************************************************************************************************
TASK [Execute single RPC get-software-information without any kwargs] ***************************************************************************************
fatal: [local_connection_testcases]: FAILED! => {"attrs": null, "changed": false, "format": "json", "kwargs": null, "msg": "Unexpected response type <class 'dict'>.", "rpc": "get-software-information"}
PLAY RECAP **************************************************************************************************************************************************
local_connection_testcases : ok=0 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0