From 7b246d0dc30eae531b7a70eabfb80f8f177e7d02 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 14 Feb 2025 16:52:13 +0000 Subject: [PATCH] Bug 39190: Add transport to test Signed-off-by: Kyle M Hall --- t/db_dependent/api/v1/sftp_servers.t | 57 ++++++++++++++++------------ 1 file changed, 33 insertions(+), 24 deletions(-) diff --git a/t/db_dependent/api/v1/sftp_servers.t b/t/db_dependent/api/v1/sftp_servers.t index 6e12e06b7ca..772833fff75 100755 --- a/t/db_dependent/api/v1/sftp_servers.t +++ b/t/db_dependent/api/v1/sftp_servers.t @@ -24,6 +24,7 @@ use t::lib::TestBuilder; use t::lib::Mocks; use Koha::Database; +use Koha::File::Transports; my $schema = Koha::Database->new->schema; my $builder = t::lib::TestBuilder->new; @@ -67,9 +68,10 @@ subtest 'list() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } ); @@ -81,9 +83,10 @@ subtest 'list() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } ); @@ -108,9 +111,10 @@ subtest 'get() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } ); @@ -143,9 +147,10 @@ subtest 'get() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } ); @@ -190,9 +195,10 @@ subtest 'add() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } ); @@ -277,9 +283,10 @@ subtest 'update() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } )->id; @@ -329,9 +336,10 @@ subtest 'update() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } ); @@ -382,9 +390,10 @@ subtest 'delete() tests' => sub { { class => 'Koha::File::Transports', value => { - password => undef, - key_file => undef, - status => undef, + transport => 'sftp', + password => undef, + key_file => undef, + status => undef, }, } )->id; -- 2.49.0