mirror of
https://github.com/versity/versitygw.git
synced 2026-01-10 13:27:21 +00:00
test: check_param_count
This commit is contained in:
@@ -47,8 +47,7 @@ delete_object() {
|
||||
|
||||
# shellcheck disable=SC2317
|
||||
delete_object_rest() {
|
||||
if [ $# -ne 2 ]; then
|
||||
log 2 "'delete_object_rest' requires bucket name, object name"
|
||||
if ! check_param_count "delete_object_rest" "bucket, key" 2 $#; then
|
||||
return 1
|
||||
fi
|
||||
if ! result=$(COMMAND_LOG="$COMMAND_LOG" BUCKET_NAME="$1" OBJECT_KEY="$2" OUTPUT_FILE="$TEST_FILE_FOLDER/result.txt" ./tests/rest_scripts/delete_object.sh 2>&1); then
|
||||
|
||||
@@ -40,8 +40,7 @@ log() {
|
||||
}
|
||||
|
||||
log_with_stack_ref() {
|
||||
if [[ $# -ne 3 ]]; then
|
||||
echo "log_with_stack_ref function requires level, message, stack reference"
|
||||
if ! check_log_params "log_with_stack_ref" "level, string, stack reference" 3 $#; then
|
||||
return 1
|
||||
fi
|
||||
# shellcheck disable=SC2153
|
||||
|
||||
Reference in New Issue
Block a user