Bugzilla – Attachment 178570 Details for
Bug 39190
Rework new (S)FTP classes to be polymorphic classes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39190: Add transport to test
Bug-39190-Add-transport-to-test.patch (text/plain), 4.10 KB, created by
Martin Renvoize (ashimema)
on 2025-02-24 13:14:58 UTC
(
hide
)
Description:
Bug 39190: Add transport to test
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-02-24 13:14:58 UTC
Size:
4.10 KB
patch
obsolete
>From 83cc288fbc516da06b1688099a50af6bf6290ead Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 14 Feb 2025 16:52:13 +0000 >Subject: [PATCH] Bug 39190: Add transport to test > >--- > 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.48.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39190
:
178555
|
178556
|
178557
|
178558
|
178559
|
178560
|
178561
|
178562
|
178563
|
178564
|
178565
|
178566
|
178567
|
178568
|
178569
|
178570
|
178571
|
179252
|
179253
|
179254
|
179255
|
179256
|
179257
|
179258
|
179259
|
179260
|
179261
|
179262
|
179263
|
179264
|
179265
|
179266
|
179267
|
179268
|
179396
|
179397
|
179398
|
179399
|
179400
|
179401
|
179402
|
179403
|
179404
|
179405
|
179406
|
179407
|
179408
|
179409
|
179410
|
179411
|
179412
|
179413
|
179589
|
179590
|
179591
|
179592
|
179593
|
179594
|
179595
|
179596
|
179597
|
179598
|
179599
|
179600
|
179601
|
179602
|
179603
|
179604
|
179605
|
179606
|
179646
|
179647
|
179648
|
179649
|
179650
|
179651
|
179652
|
179653
|
179654
|
179655
|
179656
|
179657
|
179658
|
179659
|
179660
|
179661
|
179662
|
179663
|
179992
|
179993
|
179994
|
179995
|
179996
|
179997
|
179998
|
179999
|
180000
|
180001
|
180002
|
180003
|
180004
|
180005
|
180006
|
180010
|
180011
|
180012
|
180013
|
180014
|
180015
|
180016
|
180017
|
180018
|
180019
|
180020
|
180021
|
180022
|
180023
|
180024
|
180025