Skip to content

Unable to run xpath functions #174

@eeishaan

Description

@eeishaan

Due to improper splitting here (in check.py) the following test case is unable to run :

test_interfaces_terse:
  - command: show interfaces terse
  - iterate:
      id: ./name
      xpath: //physical-interface
      tests:
        - exists: ./name[contains(substring(.,1,3),'pfe')]

An error is produced which says that the xpath is invalid.
This can be reproduced by using xpath functions in the xpath specified with the operator( exists here )

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions