Files
infix/test/infamy
Joachim Wiberg a0a4051c8a test/infamy: fix xpath_to_uri() to handle multiple predicates
The xpath_to_uri() method only processed the first predicate in XPath
expressions with multiple [key='value'] patterns.  Each re.sub() call
was performed on the original xpath instead of the result the previous
substitutions, causing subsequent predicates to be ignored.

Example XPath that would fail:

    /infix-firewall:firewall/zone[name='untrusted']/interface[.='e2']

Would incorrectly convert to:

    /infix-firewall:firewall/zone[name='untrusted']/interface=e2

Instead of the correct RESTCONF URL:

    /infix-firewall:firewall/zone=untrusted/interface=e2

Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
2025-09-28 22:02:58 +02:00
..
2025-05-13 16:58:46 +02:00
2025-09-28 21:35:31 +02:00
2024-10-16 19:01:40 +02:00
2025-02-12 10:41:46 +01:00
2024-12-18 14:55:00 +01:00
2024-09-05 07:04:58 +02:00
2024-12-03 16:29:28 +01:00
2024-12-03 16:29:28 +01:00
2025-01-22 15:53:41 +01:00
2025-09-05 16:34:11 +02:00
2024-02-23 14:01:23 +01:00
2024-10-23 10:08:10 +02:00