jsnapy icon indicating copy to clipboard operation
jsnapy copied to clipboard

Feature: Ability to use device info as context variables in test case definition

Open ydnath opened this issue 9 years ago • 0 comments

Consider the following request from @jessicagarrison:

-Start automation@automation:~/jsnapy$ jsnapy --snapcheck -f audit_config.yml Connecting to device 100.a.b.c ................ Taking snapshot of get-config............ **************************** Device: 100.a.b.c **************************** -------FROM HERE Tests Included: test_config ************************* RPC is get-config ************************* PASS | All "//system/services/ssh" exists at xpath "//configuration" [ 1 matched ] PASS | All "//system/services/netconf/ssh" exists at xpath "//configuration" [ 1 matched ] ERROR: NTP is not properly configured with ntp.juniper.net on 100.a.b.c -------TO HERE

The IP address needs to match the IP address in the YAML file not the router configuration. I want to copy the IP from after “Device:”. Can I do this? -End

This request is about using the device config info specified in YAML to be available as context info to be used in test case definition. for example ${DEV_IP} ${HOSTNAME} etc

ydnath avatar Sep 08 '16 05:09 ydnath