Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[test suite] minor hostname bugfix to get 'local NAT' test to work

  • Loading branch information...
commit c0aa346890e86ef3ddc4464280daa466bede8018 1 parent 72aaeb8
@mrash authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/test-fwknop.pl
View
5 test/test-fwknop.pl
@@ -981,7 +981,7 @@
'fwknopd_cmdline' => "LD_LIBRARY_PATH=$lib_dir $valgrind_str " .
"$fwknopdCmd -c $local_nat_fwknopd_conf -a $default_access_conf " .
"-d $default_digest_file -p $default_pid_file $intf_str",
- 'server_positive_output_matches' => [qr/to\:$fake_ip\:22/i,
+ 'server_positive_output_matches' => [qr/to\:$loopback_ip\:22/i,
qr/FWKNOP_INPUT.*dport\s22.*\sACCEPT/],
'server_negative_output_matches' => [qr/to\:$internal_nat_host\:22/i],
'fw_rule_created' => $NEW_RULE_REQUIRED,
@@ -2769,7 +2769,8 @@ ()
}
unless ($matched) {
push @write_lines, "[.] file_find_regex() " .
- "Did not match any regex in '@$re_ar' in file: $file\n";
+ "Did not match regex '$re' from regexs: '@$re_ar' " .
+ "within file: $file\n";
$found_all_regexs = 0;
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.