Blame tests/field_regex_while_regex_support_is_disabled.sh
|
Packit |
1422b7 |
# added 2014-11-14 by singh.janmejay
|
|
Packit |
1422b7 |
# This file is part of the liblognorm project, released under ASL 2.0
|
|
Packit |
1422b7 |
. $srcdir/exec.sh
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
test_def $0 "field regex, while regex support is disabled"
|
|
Packit |
1422b7 |
add_rule 'rule=:%first:regex:[a-z]+%'
|
|
Packit |
1422b7 |
execute 'foo'
|
|
Packit |
1422b7 |
assert_output_contains '"originalmsg": "foo"'
|
|
Packit |
1422b7 |
assert_output_contains '"unparsed-data": "foo"'
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
|
|
Packit |
1422b7 |
cleanup_tmp_files
|
|
Packit |
1422b7 |
|