1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
|
#!perl
use strict;
use warnings;
use FindBin;
BEGIN { require "$FindBin::Bin/test-helper-operation.pl" }
expect_operation_object_upload_abort (
'Client / named arguments' => \& client_object_upload_abort_named_arguments,
'Client / configuration hash' => \& client_object_upload_abort_configuration_hash,
);
had_no_warnings;
done_testing;
sub client_object_upload_abort_named_arguments {
my (%args) = @_;
build_default_client_object (%args)
->abort_multipart_upload (%args)
;
}
sub client_object_upload_abort_configuration_hash {
my (%args) = @_;
build_default_client_object (%args)
->abort_multipart_upload (\ %args)
;
}
sub expect_operation_object_upload_abort {
expect_operation_plan
implementations => +{ @_ },
expect_operation => 'Net::Amazon::S3::Operation::Object::Upload::Abort',
plan => {
"abort upload" => {
act_arguments => [
bucket => 'bucket-name',
key => 'some-key',
upload_id => 42,
],
},
}
}
|