Bugzilla – Attachment 92231 Details for
Bug 23329
tracklinks.pl accepts any url from a parameter for proxying if not tracking
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23329: (RM follow-up) Restore DB after test
Bug-23329-RM-follow-up-Restore-DB-after-test.patch (text/plain), 1.64 KB, created by
Kyle M Hall (khall)
on 2019-08-15 13:26:15 UTC
(
hide
)
Description:
Bug 23329: (RM follow-up) Restore DB after test
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2019-08-15 13:26:15 UTC
Size:
1.64 KB
patch
obsolete
>From c4423adbeadbe1402e1e508a6785c1266bbcf211 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 15 Aug 2019 08:54:59 +0100 >Subject: [PATCH] Bug 23329: (RM follow-up) Restore DB after test > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > t/db_dependent/www/regressions.t | 11 +++++++++++ > 1 file changed, 11 insertions(+) > >diff --git a/t/db_dependent/www/regressions.t b/t/db_dependent/www/regressions.t >index 4d9a1e06a9..521a1204aa 100644 >--- a/t/db_dependent/www/regressions.t >+++ b/t/db_dependent/www/regressions.t >@@ -33,6 +33,14 @@ my $intranet = > $ENV{KOHA_INTRANET_URL} || C4::Context->preference("staffClientBaseURL"); > my $opac = $ENV{KOHA_OPAC_URL} || C4::Context->preference("OPACBaseURL"); > >+my $context = C4::Context->new(); >+my $db_name = $context->config("database"); >+my $db_host = $context->config("hostname"); >+my $db_port = $context->config("port") || ''; >+my $db_user = $context->config("user"); >+my $db_passwd = $context->config("pass"); >+`mysqldump --add-drop-table -u $db_user --password="$db_passwd" -h $db_host -P $db_port $db_name > dumpfile.sql`; >+ > my $t = Test::Mojo->new(); > my $schema = Koha::Database->new->schema; > my $builder = t::lib::TestBuilder->new; >@@ -131,3 +139,6 @@ subtest 'open redirection vulnerabilities in tracklinks' => sub { > $t->get_ok( $opac . $good_itemnumber ) > ->status_is( 302, "302 for itemnumber with matching URI" ); > }; >+ >+`mysql -u $db_user --password="$db_passwd" -h $db_host -P $db_port --database="$db_name" < dumpfile.sql`; >+`rm dumpfile.sql`; >-- >2.20.1 (Apple Git-117)
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 23329
:
91566
|
91572
|
91573
|
91759
|
91760
|
92109
|
92110
|
92111
|
92112
|
92187
|
92188
|
92198
|
92199
|
92200
|
92212
|
92213
|
92214
|
92215
|
92216
|
92217
|
92218
|
92219
|
92220
|
92223
|
92224
|
92225
|
92226
|
92227
|
92228
|
92229
|
92230
|
92231
|
92262
|
92263
|
92264
|
92265
|
92266
|
92267
|
92268
|
92269