Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enhancement request: allow operators to support comparisons values as xpath searches #303

Open
jnpr-bowen opened this issue Mar 13, 2018 · 0 comments

Comments

@jnpr-bowen
Copy link

Currently test operators like in-range require hard coding values for the range test. Would like to see those values be able to be expressed as xpath searches within the existing document. An example of what I would like to be able to express:

optics_check:
  - rpc: get-interface-optics-diagnostics-information
  - iterate:
      xpath: '/interface-information/physical-interface/optics-diagnostics'
      id: '../name'
      tests:
        - in-range: ./laser-rx-optical-power, ./laser-rx-power-low-warn-threshold, ./laser-rx-power-high-warn-threshold
          info: "Good: All laser receivers within warning thresholds."
          err: "Interface {{post[../name]}} laser is receiving out of range at {{post[./laser-rx-optical-power]}}. "
@jnpr-bowen jnpr-bowen changed the title enhancement request: allow operators do not support comparisons values to be xpath searches enhancement request: allow operators to support comparisons values as xpath searches Mar 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants