<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
<p><font size="4">Now that syslog-ng has type hinting should the
pdbtool test also validate the types of any values specified for
a pattern.</font></p>
<p><br>
</p>
<p><font size="4"><rule id="pid1" class="myclass"
provider="me"><br>
<patterns><br>
<pattern>some pattern @NUMBER:mynum@ with
number</pattern><br>
</patterns><br>
<tags><br>
<tag>rate</tag><br>
</tags><br>
<values><br>
<value name="more"
type="integer">100A</value><br>
</values><br>
<examples><br>
<example><br>
<test_message program="</font><font size="4"><font
size="4">some pattern 123 with number</font></test_message><br>
<test_values><br>
<test_value name="mynum"
type="integer">123</test_value><br>
</test_values><br>
</example><br>
</examples><br>
</rule><br>
</font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">Currently the test_values are verified for both
the value, and the type that the pattern parses, however, none
of the values that are used to enrich this message are verified
for type.</font></p>
<p><font size="4">This results in a patterndb that passes
validation, yet will fail at the time the pattern matches a log
message.<br>
</font></p>
<p><br>
</p>
<p>comments?<br>
</p>
<pre class="moz-signature" cols="72">--
Evan</pre>
</body>
</html>