You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to pass ansible variables to jsnapy test files?
Setup
(Please provide relevant configs, xml snapshots and related files (Be sure to remove sensitive info).)
jsnapy is installed as part of the juniper.device collection
Steps to Reproduce Issue
(Include debug logs if possible and relevant. Error trace would be helpful too)
Consider this inventory:
---
tests_include:
- bgp_summary
- bgp_neighbor
bgp_summary:
- rpc: get-bgp-summary-information
- item:
xpath: '//bgp-rib'
tests:
- is-gt: total-prefix-count, "{{ bgp_total-prefix-count }}"
err: "Test Failed!! value of total-prefix-count is not greater then "{{ bgp_total-prefix-count }}", it is equal to <{{post['total-prefix-count']}}>"
info: "Test succeeded!! value of total-prefix-count is not greater then "{{ bgp_total-prefix-count }}", it is equal to <{{post['total-prefix-count']}}>"
But jsnapy throws an error: Complete Message: could not convert string to float: '"{{ bgp_total-prefix-count }}"'
How can I pass ansible variables to jsnapy test files?
Versions Report
(Provided by running jsnapy --version. Please also mention python version.)
pip list | grep jsnapy
jsnapy 1.3.6
The text was updated successfully, but these errors were encountered:
Description of Issue/Question
How to pass ansible variables to jsnapy test files?
Setup
(Please provide relevant configs, xml snapshots and related files (Be sure to remove sensitive info).)
jsnapy is installed as part of the juniper.device collection
Steps to Reproduce Issue
(Include debug logs if possible and relevant. Error trace would be helpful too)
Consider this inventory:
task:
testfile:
But jsnapy throws an error:
Complete Message: could not convert string to float: '"{{ bgp_total-prefix-count }}"'
How can I pass ansible variables to jsnapy test files?
Versions Report
(Provided by running
jsnapy --version
. Please also mention python version.)The text was updated successfully, but these errors were encountered: