<div dir="ltr"><br><br><div class="gmail_quote">On Wed, Aug 13, 2008 at 9:25 PM, Bryan Kearney <span dir="ltr"><<a href="mailto:bkearney@redhat.com">bkearney@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Raphaël Pinson wrote:<br>
<SNIP><div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
For get, I'd expect to test the value of the node. For match, I'd expect to test the array of nodes returned, for example testing how many nodes matched the expression.<br>
<br>
e.g.<br>
If get returns no value, it means the value of the node is empty.<br>
If match returns no value, it means there is no such node.<br>
</blockquote>
<br></div>
I have updated the module [1] and it support the following onlyif syntax:<br>
<br>
# onlyif syntax:<br>
#   get [AUGEAS_PATH] [COMPARATOR] [STRING]<br>
#   match [MATCH_PATH] size [COMPARATOR] [INT]<br>
#   match [MATCH_PATH] include [STRING]<br>
#   match [MATCH_PATH] == [AN_ARRAY]<br>
#<br>
# where<br>
#   AUGEAS_PATH is a valid path scoped by the context<br>
#   MATCH_PATH is a valid match syntax scoped by the context<br>
#   COMPARATOR is in the set [> >= != == <= <]<br>
#   STRING is a string<br>
#   INT is a number<br>
#   AN_ARRAY is in the form ['a string', 'another']<br>
<br>
You can see the test script using this here[2].<br>
<br>
Comments/critics welcome.</blockquote><div><br><br>That looks great. I'm looking forward to testing it.<br><br><br>Raphael<br></div></div></div>