From b0c0242054cd8832052c98d84b52fdfc68d6b5f6 Mon Sep 17 00:00:00 2001 From: Jonathan Bennett Date: Wed, 25 May 2016 09:31:06 -0500 Subject: [PATCH] [Test suite] Add a couple of tests for --no-home-dir --- test/tests/basic_operations.pl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/test/tests/basic_operations.pl b/test/tests/basic_operations.pl index 3b909d55..30c69171 100644 --- a/test/tests/basic_operations.pl +++ b/test/tests/basic_operations.pl @@ -128,6 +128,25 @@ 'cmdline' => "$fwknopCmd -A tcp/22 -a $fake_ip -D $loopback_ip " . "--get-key $local_key_file --save-args-file too_long.args " . "-A tcp/22 "x300 }, + { + 'category' => 'basic operations', + 'subcategory' => 'client', + 'detail' => 'no-home-dir (1)', + 'function' => \&generic_exec, + 'positive_output_matches' => [qr/must\sset\s\-\-rc\-file\spath/], + 'exec_err' => $YES, + 'cmdline' => "$fwknopCmd -A tcp/22 -a $fake_ip -D $loopback_ip " . + "--get-key $local_key_file --no-home-dir --save-rc-stanza -A tcp/22 " + }, + { + 'category' => 'basic operations', + 'subcategory' => 'client', + 'detail' => 'no-home-dir (2)', + 'function' => \&generic_exec, + 'exec_err' => $NO, + 'cmdline' => "$fwknopCmd -A tcp/22 -a $fake_ip -D $loopback_ip " . + "--get-key $local_key_file -A tcp/22 " + }, { 'category' => 'basic operations',