View | Details | Raw Unified | Return to bug 39190
Collapse All | Expand All

(-)a/t/db_dependent/api/v1/sftp_servers.t (-25 / +33 lines)
Lines 24-29 use t::lib::TestBuilder; Link Here
24
use t::lib::Mocks;
24
use t::lib::Mocks;
25
25
26
use Koha::Database;
26
use Koha::Database;
27
use Koha::File::Transports;
27
28
28
my $schema  = Koha::Database->new->schema;
29
my $schema  = Koha::Database->new->schema;
29
my $builder = t::lib::TestBuilder->new;
30
my $builder = t::lib::TestBuilder->new;
Lines 67-75 subtest 'list() tests' => sub { Link Here
67
        {
68
        {
68
            class => 'Koha::File::Transports',
69
            class => 'Koha::File::Transports',
69
            value => {
70
            value => {
70
                password => undef,
71
                transport => 'sftp',
71
                key_file => undef,
72
                password  => undef,
72
                status   => undef,
73
                key_file  => undef,
74
                status    => undef,
73
            },
75
            },
74
        }
76
        }
75
    );
77
    );
Lines 81-89 subtest 'list() tests' => sub { Link Here
81
        {
83
        {
82
            class => 'Koha::File::Transports',
84
            class => 'Koha::File::Transports',
83
            value => {
85
            value => {
84
                password => undef,
86
                transport => 'sftp',
85
                key_file => undef,
87
                password  => undef,
86
                status   => undef,
88
                key_file  => undef,
89
                status    => undef,
87
            },
90
            },
88
        }
91
        }
89
    );
92
    );
Lines 108-116 subtest 'get() tests' => sub { Link Here
108
        {
111
        {
109
            class => 'Koha::File::Transports',
112
            class => 'Koha::File::Transports',
110
            value => {
113
            value => {
111
                password => undef,
114
                transport => 'sftp',
112
                key_file => undef,
115
                password  => undef,
113
                status   => undef,
116
                key_file  => undef,
117
                status    => undef,
114
            },
118
            },
115
        }
119
        }
116
    );
120
    );
Lines 143-151 subtest 'get() tests' => sub { Link Here
143
        {
147
        {
144
            class => 'Koha::File::Transports',
148
            class => 'Koha::File::Transports',
145
            value => {
149
            value => {
146
                password => undef,
150
                transport => 'sftp',
147
                key_file => undef,
151
                password  => undef,
148
                status   => undef,
152
                key_file  => undef,
153
                status    => undef,
149
            },
154
            },
150
        }
155
        }
151
    );
156
    );
Lines 190-198 subtest 'add() tests' => sub { Link Here
190
        {
195
        {
191
            class => 'Koha::File::Transports',
196
            class => 'Koha::File::Transports',
192
            value => {
197
            value => {
193
                password => undef,
198
                transport => 'sftp',
194
                key_file => undef,
199
                password  => undef,
195
                status   => undef,
200
                key_file  => undef,
201
                status    => undef,
196
            },
202
            },
197
        }
203
        }
198
    );
204
    );
Lines 277-285 subtest 'update() tests' => sub { Link Here
277
        {
283
        {
278
            class => 'Koha::File::Transports',
284
            class => 'Koha::File::Transports',
279
            value => {
285
            value => {
280
                password => undef,
286
                transport => 'sftp',
281
                key_file => undef,
287
                password  => undef,
282
                status   => undef,
288
                key_file  => undef,
289
                status    => undef,
283
            },
290
            },
284
        }
291
        }
285
    )->id;
292
    )->id;
Lines 329-337 subtest 'update() tests' => sub { Link Here
329
        {
336
        {
330
            class => 'Koha::File::Transports',
337
            class => 'Koha::File::Transports',
331
            value => {
338
            value => {
332
                password => undef,
339
                transport => 'sftp',
333
                key_file => undef,
340
                password  => undef,
334
                status   => undef,
341
                key_file  => undef,
342
                status    => undef,
335
            },
343
            },
336
        }
344
        }
337
    );
345
    );
Lines 382-390 subtest 'delete() tests' => sub { Link Here
382
        {
390
        {
383
            class => 'Koha::File::Transports',
391
            class => 'Koha::File::Transports',
384
            value => {
392
            value => {
385
                password => undef,
393
                transport => 'sftp',
386
                key_file => undef,
394
                password  => undef,
387
                status   => undef,
395
                key_file  => undef,
396
                status    => undef,
388
            },
397
            },
389
        }
398
        }
390
    )->id;
399
    )->id;
391
- 

Return to bug 39190