[test suite] added tests for setting gpg recipient, signer, and homedir via the client rc file
This commit is contained in:
parent
ac587f3c63
commit
88e1e0e099
7
test/conf/fwknoprc_gpg_args_hmac_key
Normal file
7
test/conf/fwknoprc_gpg_args_hmac_key
Normal file
@ -0,0 +1,7 @@
|
||||
[default]
|
||||
HMAC_DIGEST_TYPE sha256
|
||||
HMAC_KEY_BASE64 Yh+xizBnl6FotC5ec7FanVGClRMlsOAPh2u6eovnerfBVKwaVKzjGoblFMHMc593TNyi0dWn4opLoTIV9q/ttg==
|
||||
GPG_HOMEDIR conf/client-gpg
|
||||
GPG_SIGNER 6A3FAD56
|
||||
GPG_RECIPIENT 361BBAD4
|
||||
USE_GPG Y
|
||||
7
test/conf/fwknoprc_gpg_args_no_pw_hmac_key
Normal file
7
test/conf/fwknoprc_gpg_args_no_pw_hmac_key
Normal file
@ -0,0 +1,7 @@
|
||||
[default]
|
||||
HMAC_DIGEST_TYPE sha256
|
||||
HMAC_KEY_BASE64 Yh+xizBnl6FotC5ec7FanVGClRMlsOAPh2u6eovnerfBVKwaVKzjGoblFMHMc593TNyi0dWn4opLoTIV9q/ttg==
|
||||
GPG_HOMEDIR conf/client-gpg-no-pw
|
||||
GPG_SIGNER 6A3FAD56
|
||||
GPG_RECIPIENT 361BBAD4
|
||||
USE_GPG Y
|
||||
@ -116,6 +116,8 @@ our %cf = (
|
||||
'rc_hmac_b64_key' => "$conf_dir/fwknoprc_default_hmac_base64_key",
|
||||
'rc_hmac_b64_key2' => "$conf_dir/fwknoprc_hmac_key2",
|
||||
'rc_gpg_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_hmac_key",
|
||||
'rc_gpg_args_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_args_hmac_key",
|
||||
'rc_gpg_args_no_pw_hmac_b64_key' => "$conf_dir/fwknoprc_gpg_args_no_pw_hmac_key",
|
||||
'rc_hmac_simple_key' => "$conf_dir/fwknoprc_hmac_simple_keys",
|
||||
'rc_hmac_invalid_type' => "$conf_dir/fwknoprc_hmac_invalid_type",
|
||||
'rc_hmac_invalid_type' => "$conf_dir/fwknoprc_hmac_invalid_type",
|
||||
|
||||
@ -11,20 +11,33 @@
|
||||
'fatal' => $NO
|
||||
},
|
||||
|
||||
### no password GPG testing
|
||||
{
|
||||
'category' => 'GPG+HMAC',
|
||||
'subcategory' => 'client+server',
|
||||
'detail' => 'complete cycle (tcp/22 ssh)',
|
||||
'function' => \&spa_cycle,
|
||||
'cmdline' => "$default_client_gpg_args "
|
||||
. "--rc-file $cf{'rc_gpg_hmac_b64_key'}",
|
||||
'fwknopd_cmdline' => $default_server_gpg_args_hmac,
|
||||
'cmdline' => $default_client_gpg_args
|
||||
. " --rc-file $cf{'rc_gpg_hmac_b64_key'}",
|
||||
'fwknopd_cmdline' => $default_server_gpg_args_hmac,
|
||||
'fw_rule_created' => $NEW_RULE_REQUIRED,
|
||||
'fw_rule_removed' => $NEW_RULE_REMOVED,
|
||||
'key_file' => $cf{'rc_gpg_hmac_b64_key'},
|
||||
'fatal' => $NO
|
||||
},
|
||||
{
|
||||
'category' => 'GPG+HMAC',
|
||||
'subcategory' => 'client+server',
|
||||
'detail' => 'gpg args from rc file',
|
||||
'function' => \&spa_cycle,
|
||||
'cmdline' => $default_client_args
|
||||
. " --rc-file $cf{'rc_gpg_args_hmac_b64_key'}",
|
||||
'fwknopd_cmdline' => $default_server_gpg_args_hmac,
|
||||
'fw_rule_created' => $NEW_RULE_REQUIRED,
|
||||
'fw_rule_removed' => $NEW_RULE_REMOVED,
|
||||
'key_file' => $cf{'rc_gpg_args_hmac_b64_key'},
|
||||
'fatal' => $NO
|
||||
},
|
||||
|
||||
{
|
||||
'category' => 'GPG+HMAC',
|
||||
'subcategory' => 'client+server',
|
||||
|
||||
@ -14,6 +14,20 @@
|
||||
'key_file' => $cf{'rc_hmac_b64_key'},
|
||||
'fatal' => $NO
|
||||
},
|
||||
{
|
||||
'category' => 'GPG (no pw) HMAC',
|
||||
'subcategory' => 'client+server',
|
||||
'detail' => 'gpg args from rc file',
|
||||
'function' => \&spa_cycle,
|
||||
'cmdline' => "$default_client_gpg_args_no_homedir "
|
||||
. " --rc-file $cf{'rc_gpg_args_no_pw_hmac_b64_key'}",
|
||||
'fwknopd_cmdline' => $default_server_gpg_args_no_pw_hmac,
|
||||
'fw_rule_created' => $NEW_RULE_REQUIRED,
|
||||
'fw_rule_removed' => $NEW_RULE_REMOVED,
|
||||
'key_file' => $cf{'rc_gpg_args_no_pw_hmac_b64_key'},
|
||||
'fatal' => $NO
|
||||
},
|
||||
|
||||
{
|
||||
'category' => 'GPG (no pw) HMAC',
|
||||
'subcategory' => 'client+server',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user