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

(-)a/t/db_dependent/Auth.t (-3 lines)
Lines 29-37 BEGIN { Link Here
29
my $schema  = Koha::Database->schema;
29
my $schema  = Koha::Database->schema;
30
my $builder = t::lib::TestBuilder->new;
30
my $builder = t::lib::TestBuilder->new;
31
31
32
# FIXME: SessionStorage defaults to mysql, but it seems to break transaction
33
# handling
34
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
35
t::lib::Mocks::mock_preference( 'GDPR_Policy', '' ); # Disabled
32
t::lib::Mocks::mock_preference( 'GDPR_Policy', '' ); # Disabled
36
33
37
# To silence useless warnings
34
# To silence useless warnings
(-)a/t/db_dependent/Koha/REST/Plugin/Auth/IdP.t (-4 lines)
Lines 77-86 use Koha::Database; Link Here
77
my $schema  = Koha::Database->new()->schema();
77
my $schema  = Koha::Database->new()->schema();
78
my $builder = t::lib::TestBuilder->new;
78
my $builder = t::lib::TestBuilder->new;
79
79
80
# FIXME: sessionStorage defaults to mysql, but it seems to break transaction handling
81
# this affects the other REST api tests
82
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
83
84
subtest 'auth.register helper' => sub {
80
subtest 'auth.register helper' => sub {
85
    plan tests => 6;
81
    plan tests => 6;
86
82
(-)a/t/db_dependent/Koha_ExternalContent_OverDrive.t (-2 lines)
Lines 18-25 BEGIN { Link Here
18
18
19
use_ok('Koha::ExternalContent::OverDrive');
19
use_ok('Koha::ExternalContent::OverDrive');
20
20
21
t::lib::Mocks::mock_preference('SessionStorage','tmp');
22
23
t::lib::Mocks::mock_preference('OverDriveClientKey', 'DUMMY');
21
t::lib::Mocks::mock_preference('OverDriveClientKey', 'DUMMY');
24
t::lib::Mocks::mock_preference('OverDriveClientSecret', 'DUMMY');
22
t::lib::Mocks::mock_preference('OverDriveClientSecret', 'DUMMY');
25
t::lib::Mocks::mock_preference('OverDriveLibraryID', 'DUMMY');
23
t::lib::Mocks::mock_preference('OverDriveLibraryID', 'DUMMY');
(-)a/t/db_dependent/Search/History.t (-4 lines)
Lines 23-32 my $schema = Koha::Database->new->schema; Link Here
23
$schema->storage->txn_begin;
23
$schema->storage->txn_begin;
24
my $dbh = C4::Context->dbh;
24
my $dbh = C4::Context->dbh;
25
25
26
# FIXME: SessionStorage defaults to mysql, but it seems to break transaction
27
# handling
28
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
29
30
use_ok('Koha::DateUtils');
26
use_ok('Koha::DateUtils');
31
use_ok('C4::Search::History', qw( add get delete get_from_session ));
27
use_ok('C4::Search::History', qw( add get delete get_from_session ));
32
28
(-)a/t/db_dependent/api/v1/auth.t (-4 lines)
Lines 30-39 use Koha::Database; Link Here
30
my $schema  = Koha::Database->new->schema;
30
my $schema  = Koha::Database->new->schema;
31
my $builder = t::lib::TestBuilder->new;
31
my $builder = t::lib::TestBuilder->new;
32
32
33
# FIXME: sessionStorage defaults to mysql, but it seems to break transaction handling
34
# this affects the other REST api tests
35
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
36
37
my $remote_address = '127.0.0.1';
33
my $remote_address = '127.0.0.1';
38
my $t              = Test::Mojo->new('Koha::REST::V1');
34
my $t              = Test::Mojo->new('Koha::REST::V1');
39
my $tx;
35
my $tx;
(-)a/t/db_dependent/api/v1/auth_authenticate_api_request.t (-5 lines)
Lines 36-46 my $builder = t::lib::TestBuilder->new(); Link Here
36
my $remote_address = '127.0.0.1';
36
my $remote_address = '127.0.0.1';
37
my $tx;
37
my $tx;
38
38
39
# FIXME: CGI::Session::Driver::DBI explicitly sets AutoCommit=1 [1] which breaks the rollback in out tests.
40
# Until we change into some other library, set SessionStorage to 'tmp'
41
# [1] https://metacpan.org/source/CGI::Session::Driver::DBI#L28
42
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
43
44
subtest 'token-based tests' => sub {
39
subtest 'token-based tests' => sub {
45
40
46
    if ( can_load( modules => { 'Net::OAuth2::AuthorizationServer' => undef } ) ) {
41
    if ( can_load( modules => { 'Net::OAuth2::AuthorizationServer' => undef } ) ) {
(-)a/t/db_dependent/api/v1/idp.t (-4 lines)
Lines 36-45 use Koha::Auth::Identity::Provider::Domains; Link Here
36
my $schema  = Koha::Database->new->schema;
36
my $schema  = Koha::Database->new->schema;
37
my $builder = t::lib::TestBuilder->new;
37
my $builder = t::lib::TestBuilder->new;
38
38
39
# FIXME: sessionStorage defaults to mysql, but it seems to break transaction handling
40
# this affects the other REST api tests
41
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
42
43
my $remote_address = '127.0.0.1';
39
my $remote_address = '127.0.0.1';
44
40
45
# use t::lib::IdP::ExternalIdP;
41
# use t::lib::IdP::ExternalIdP;
(-)a/t/db_dependent/api/v1/two_factor_auth.t (-5 lines)
Lines 29-38 use Koha::Database; Link Here
29
my $schema  = Koha::Database->new->schema;
29
my $schema  = Koha::Database->new->schema;
30
my $builder = t::lib::TestBuilder->new;
30
my $builder = t::lib::TestBuilder->new;
31
31
32
# FIXME: sessionStorage defaults to mysql, but it seems to break transaction handling
33
# this affects the other REST api tests
34
t::lib::Mocks::mock_preference( 'SessionStorage', 'tmp' );
35
36
my $remote_address = '127.0.0.1';
32
my $remote_address = '127.0.0.1';
37
my $t              = Test::Mojo->new('Koha::REST::V1');
33
my $t              = Test::Mojo->new('Koha::REST::V1');
38
34
39
- 

Return to bug 17427