* Added new test to validate --stanza-list

This commit is contained in:
Franck Joncourt 2013-07-30 22:54:10 +02:00
parent ccee56b998
commit 836921a9ea
3 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,8 @@
[default]
KEY testkey
[stanza_1]
KEY testkey_1
[stanza_2]
KEY testkey_2

View File

@ -140,6 +140,7 @@ our %cf = (
'rc_hmac_sha512_key' => "$conf_dir/fwknoprc_hmac_sha512_key",
'rc_hmac_sha512_short_key' => "$conf_dir/fwknoprc_hmac_sha512_short_key",
'rc_hmac_sha512_long_key' => "$conf_dir/fwknoprc_hmac_sha512_long_key",
'rc_stanza_list' => "$conf_dir/fwknoprc_stanza_list",
'base64_key_access' => "$conf_dir/base64_key_access.conf",
'custom_input_chain' => "$conf_dir/custom_input_chain_fwknopd.conf",
'custom_nat_chain' => "$conf_dir/custom_nat_chain_fwknopd.conf",

View File

@ -787,4 +787,14 @@
'positive_output_matches' => [qr/Value\s.*out\sof\srange/],
'fatal' => $NO
},
{
'category' => 'basic operations',
'subcategory' => 'client',
'detail' => '--stanza-list',
'function' => \&generic_exec,
'cmdline' => $default_client_args . " --stanza-list --rc-file $cf{'rc_stanza_list'}",
'positive_output_matches' => [qr/The\sfollowing\sstanzas\sare\sconfigured/i, qr/stanza_1/, qr/stanza_2/],
'negative_output_matches' => [qr/default/],
'fatal' => $NO
},
);