* Added new test to validate --stanza-list
This commit is contained in:
parent
ccee56b998
commit
836921a9ea
8
test/conf/fwknoprc_stanza_list
Normal file
8
test/conf/fwknoprc_stanza_list
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
[default]
|
||||||
|
KEY testkey
|
||||||
|
|
||||||
|
[stanza_1]
|
||||||
|
KEY testkey_1
|
||||||
|
|
||||||
|
[stanza_2]
|
||||||
|
KEY testkey_2
|
||||||
@ -140,6 +140,7 @@ our %cf = (
|
|||||||
'rc_hmac_sha512_key' => "$conf_dir/fwknoprc_hmac_sha512_key",
|
'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_short_key' => "$conf_dir/fwknoprc_hmac_sha512_short_key",
|
||||||
'rc_hmac_sha512_long_key' => "$conf_dir/fwknoprc_hmac_sha512_long_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",
|
'base64_key_access' => "$conf_dir/base64_key_access.conf",
|
||||||
'custom_input_chain' => "$conf_dir/custom_input_chain_fwknopd.conf",
|
'custom_input_chain' => "$conf_dir/custom_input_chain_fwknopd.conf",
|
||||||
'custom_nat_chain' => "$conf_dir/custom_nat_chain_fwknopd.conf",
|
'custom_nat_chain' => "$conf_dir/custom_nat_chain_fwknopd.conf",
|
||||||
|
|||||||
@ -787,4 +787,14 @@
|
|||||||
'positive_output_matches' => [qr/Value\s.*out\sof\srange/],
|
'positive_output_matches' => [qr/Value\s.*out\sof\srange/],
|
||||||
'fatal' => $NO
|
'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
|
||||||
|
},
|
||||||
);
|
);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user