diff --git a/bin/helper/osh-groupCreate b/bin/helper/osh-groupCreate index a3c6ec9..43c3cd1 100755 --- a/bin/helper/osh-groupCreate +++ b/bin/helper/osh-groupCreate @@ -45,7 +45,7 @@ if (!$group || !$owner) { HEXIT('ERR_MISSING_PARAMETER', msg => "Missing argument 'group' or 'owner'"); } if ($no_key && ($algo || $size || $encrypted)) { - EXIT('ERR_INVALID_PARAMETER', msg => "Can't specify 'no-key' along with 'algo', 'size' or 'encrypted'"); + HEXIT('ERR_INVALID_PARAMETER', msg => "Can't specify 'no-key' along with 'algo', 'size' or 'encrypted'"); } if (!$no_key && (!$algo || !$size)) { HEXIT('ERR_MISSING_PARAMETER', msg => "Missing argument 'algo' or 'size'"); diff --git a/tests/functional/tests.d/350-groups.sh b/tests/functional/tests.d/350-groups.sh index b73a24f..b116578 100644 --- a/tests/functional/tests.d/350-groups.sh +++ b/tests/functional/tests.d/350-groups.sh @@ -98,6 +98,9 @@ testsuite_groups() plgfail a0_fail_create_group_reserved_2 $a0 --osh groupCreate --group keytothegate --no-key --owner $account1 json .command groupCreate .error_code ERR_INVALID_PARAMETER + plgfail a0_fail_create_group_invalid_options $a0 --osh groupCreate --group invalid --no-key --algo ed25519 --owner $account1 + json .command groupCreate .error_code ERR_INVALID_PARAMETER + success a0_create_g1_with_a1_as_owner $a0 --osh groupCreate --group $group1 --algo rsa --size 4096 --owner $account1 contain "The public key of this group is" json $(cat <