Skip to content

Commit

Permalink
[test suite] add complete cycle DESTINATION test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrash committed Dec 1, 2014
1 parent e1694c7 commit cf84f01
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile.am
Expand Up @@ -315,6 +315,7 @@ EXTRA_DIST = \
test/conf/ipt_snat_no_translate_ip_fwknopd.conf \
test/conf/firewd_snat_no_translate_ip_fwknopd.conf \
test/conf/destination_rule_fwknopd.conf \
test/conf/hmac_spa_destination_access.conf \
test/conf/spa_replay.pcap \
test/conf/fcs_spa.pcap \
test/fko-wrapper/Makefile \
Expand Down
5 changes: 5 additions & 0 deletions test/conf/hmac_spa_destination_access.conf
@@ -0,0 +1,5 @@
SOURCE ANY
DESTINATION ANY
KEY_BASE64 wzNP62oPPgEc+kXDPQLHPOayQBuNbYUTPP+QrErNDmg=
HMAC_KEY_BASE64 Yh+xizBnl6FotC5ec7FanVGClRMlsOAPh2u6eovnerfBVKwaVKzjGoblFMHMc593TNyi0dWn4opLoTIV9q/ttg==
FW_ACCESS_TIMEOUT 3
2 changes: 2 additions & 0 deletions test/test-fwknop.pl
Expand Up @@ -388,6 +388,8 @@
'hmac_simple_keys_access' => "$conf_dir/hmac_simple_keys_access.conf",
'hmac_invalid_type_access' => "$conf_dir/hmac_invalid_type_access.conf",
'hmac_cygwin_access' => "$conf_dir/hmac_no_b64_cygwin_access.conf",
'spa_destnation' => "$conf_dir/destination_rule_fwknopd.conf",
'hmac_spa_destination_access' => "$conf_dir/hmac_spa_destination_access.conf",
'exp_access' => "$conf_dir/expired_stanza_access.conf",
'future_exp_access' => "$conf_dir/future_expired_stanza_access.conf",
'exp_epoch_access' => "$conf_dir/expired_epoch_stanza_access.conf",
Expand Down
13 changes: 13 additions & 0 deletions test/tests/rijndael_hmac.pl
Expand Up @@ -83,6 +83,19 @@
'key_file' => $cf{'rc_hmac_b64_key'},
'client_cycles_per_server_instance' => 3,
},
{
'category' => 'Rijndael+HMAC',
'subcategory' => 'client+server',
'detail' => 'complete cycle DESTINATION',
'function' => \&spa_cycle,
'cmdline' => $default_client_hmac_args,
'fwknopd_cmdline' => "$fwknopdCmd -c $cf{'spa_destnation'} -a $cf{'hmac_access'} " .
"-d $default_digest_file -p $default_pid_file $intf_str",
'fw_rule_created' => $NEW_RULE_REQUIRED,
'fw_rule_removed' => $NEW_RULE_REMOVED,
'key_file' => $cf{'rc_hmac_b64_key'},
'server_positive_output_matches' => [qr/\b$fake_ip\s.*$loopback_ip\b/],
},

{
'category' => 'Rijndael+HMAC',
Expand Down

0 comments on commit cf84f01

Please sign in to comment.