[Test suite] Adds tests for invalid server and client cmd lines involving --key-gen
This commit is contained in:
parent
74d3515218
commit
6a8a554851
@ -77,6 +77,54 @@
|
||||
'positive_output_matches' => [qr/^KEY_BASE64\:?\s\S{10}/,
|
||||
qw/HMAC_KEY_BASE64\:?\s\S{10}/],
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael+HMAC',
|
||||
'subcategory' => 'client',
|
||||
'detail' => '--key-gen invalid (1)',
|
||||
'function' => \&generic_exec,
|
||||
'cmdline' => "$fwknopCmd --key-gen --key-len 0",
|
||||
'positive_output_matches' => [qr/Invalid\skey\slength/],
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael+HMAC',
|
||||
'subcategory' => 'server',
|
||||
'detail' => '--key-gen invalid (1)',
|
||||
'function' => \&generic_exec,
|
||||
'cmdline' => "$fwknopdCmd --key-gen --key-len 0",
|
||||
'positive_output_matches' => [qr/Invalid\skey\slength/],
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael+HMAC',
|
||||
'subcategory' => 'client',
|
||||
'detail' => '--key-gen invalid (2)',
|
||||
'function' => \&generic_exec,
|
||||
'cmdline' => "$fwknopCmd --key-gen --hmac-digest-type md4",
|
||||
'positive_output_matches' => [qr/Invalid\shmac\sdigest\stype/],
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael+HMAC',
|
||||
'subcategory' => 'server',
|
||||
'detail' => '--key-gen invalid (2)',
|
||||
'function' => \&generic_exec,
|
||||
'cmdline' => "$fwknopdCmd --key-gen --hmac-digest-type md4",
|
||||
'positive_output_matches' => [qr/Invalid\shmac\sdigest\stype/],
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael+HMAC',
|
||||
'subcategory' => 'client',
|
||||
'detail' => '--key-gen invalid (3)',
|
||||
'function' => \&generic_exec,
|
||||
'cmdline' => "$fwknopCmd --key-gen --hmac-key-len 0",
|
||||
'positive_output_matches' => [qr/Invalid\shmac\skey\slength/],
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael+HMAC',
|
||||
'subcategory' => 'server',
|
||||
'detail' => '--key-gen invalid (3)',
|
||||
'function' => \&generic_exec,
|
||||
'cmdline' => "$fwknopdCmd --key-gen --hmac-key-len 0",
|
||||
'positive_output_matches' => [qr/Invalid\shmac\skey\slength/],
|
||||
},
|
||||
{
|
||||
'category' => 'Rijndael+HMAC',
|
||||
'subcategory' => 'client',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user