IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 1, 2008, 3:51:29 PM (18 years ago)
Author:
jhoblitt
Message:

centralize test DB dsn/user/pass into Test::Nebulous

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/conf/startup.pl.in

    r10581 r16281  
    33
    44use lib qw( @ServerRoot@/../lib );
     5use lib qw( @ServerRoot@ );
    56
    67use Apache::DBI;
     
    910use Nebulous::Server::Apache;
    1011use Nebulous::Server;
     12use Test::Nebulous;
    1113
    12 my $dsn         = "DBI:mysql:database=test:host=localhost";
    13 my $dbuser      = "test";
    14 my $dbpasswd    = "";
    15 
    16 Apache::DBI->connect_on_init( $dsn, $dbuser, $dbpasswd );
     14Apache::DBI->connect_on_init( $NEB_DB, $NEB_USER, $NEB_PASS );
    1715Nebulous::Server::SOAP->new_on_init(
    18     dsn         => $dsn,
    19     dbuser      => $dbuser,
    20     dbpasswd    => $dbpasswd,
     16    dsn         => $NEB_DB,
     17    dbuser      => $NEB_USER,
     18    dbpasswd    => $NEB_PASS,
    2119    log_level   => 'all',
    2220);
Note: See TracChangeset for help on using the changeset viewer.