diff --git a/test/conf/fwknoprc_stanza_list b/test/conf/fwknoprc_stanza_list new file mode 100644 index 00000000..36dcd9f3 --- /dev/null +++ b/test/conf/fwknoprc_stanza_list @@ -0,0 +1,8 @@ +[default] +KEY testkey + +[stanza_1] +KEY testkey_1 + +[stanza_2] +KEY testkey_2 diff --git a/test/test-fwknop.pl b/test/test-fwknop.pl index 1e81a6ce..d818ab24 100755 --- a/test/test-fwknop.pl +++ b/test/test-fwknop.pl @@ -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", diff --git a/test/tests/basic_operations.pl b/test/tests/basic_operations.pl index d00d7fcd..404c92bd 100644 --- a/test/tests/basic_operations.pl +++ b/test/tests/basic_operations.pl @@ -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 + }, );