I had also looked at https://mojolicious.narkive.com/5XGiHXfh/test-mojo-with-uploading-files.
I had implemented the changes as below to no avail. The code I used is " $t->post_ok( $request_url, $upload )->status_is(200, q{Success in upload} );" The uploaded files still do not get shown in my logs... The code in its entirety is as below: my $t = Test::Mojo->new('EMU'); my $header = Mojo::Headers->new->from_hash( $t->app->conf->get('test_default_headers') ); my $base_url = q{/api/wow/v6/muz}; my $user_info = $t->app->conf->get('test_userinfo'); { my $file_1 = Mojo::Asset::File->new(); $file_1->add_chunk(' this is a test '); my $file_2 = Mojo::Asset::File->new(); $file_2->add_chunk(' this is another test '); my $userinfo = 'adm...@mytestdomain.com.au:dropThePasswordHere'; my $specifc_device_scenario = { 'url' => join(q{/}, $base_url, q{deviceTypes}, q{Polycom_VVX101},q{files}), 'header' => $header, 'contents' => [ 'format' => q{json}, 'file' => [ 'deviceTypeFile' => $file_1, 'deviceTypeFile' => $file_2, ], ], 'method' => [ 'post', ], 'content-type' => q{application/octet-stream}, }; $header->content_type($specifc_device_scenario->{'content-type'}); my $request_url = Mojo::URL->new( $specifc_device_scenario->{'url'})->userinfo( $userinfo ); $request_url->query( $specifc_device_scenario->{'contents'} ); my $upload = { 'file' => { 'deviceTypeFile' => $file_1, 'deviceTypeFile' => $file_2, } }; $t->post_ok( $request_url, $upload )->status_is(200, q{Success in upload} ); } -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to mojolicious+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/mojolicious/65034395-360d-401b-b9a2-bb86b5563501n%40googlegroups.com.