[Rt-commit] r7188 - rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT
ruz at bestpractical.com
ruz at bestpractical.com
Wed Mar 7 19:49:30 EST 2007
Author: ruz
Date: Wed Mar 7 19:49:30 2007
New Revision: 7188
Modified:
rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm
Log:
* switch to RT_DBA_{USER,PASSWORD} to be conistent with env vars used in rt-setup-database
Modified: rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm
==============================================================================
--- rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm (original)
+++ rt/branches/3.7-EXPERIMENTAL-TUNIS/lib/RT/Test.pm Wed Mar 7 19:49:30 2007
@@ -1,11 +1,13 @@
package RT::Test;
+
use strict;
+use warnings;
use Test::More;
-my $port;
use File::Temp;
my $config;
+my $port;
BEGIN {
# TODO: allocate a port dynamically
@@ -38,7 +40,7 @@
require RT::Handle;
# bootstrap with dba cred
my $dbh = _get_dbh(RT::Handle->get_system_dsn,
- $ENV{DB_DBA}, $ENV{DB_DBA_PASS});
+ $ENV{RT_DBA_USER}, $ENV{RT_DBA_PASSWORD});
my $db_type = RT->Config->Get('DatabaseType');
RT::Handle->drop_db( $dbh, { force => 1 } );
@@ -46,7 +48,7 @@
$dbh->disconnect;
$dbh = _get_dbh(RT::Handle->get_rt_dsn,
- $ENV{DB_DBA}, $ENV{DB_DBA_PASS});
+ $ENV{RT_DBA_USER}, $ENV{RT_DBA_PASSWORD});
RT->ConnectToDatabase;
$RT::Handle->insert_schema($dbh);
More information about the Rt-commit
mailing list