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/Test/Nebulous.pm

    r13251 r16281  
    11# Copyright (C) 2004  Joshua Hoblitt
    22#
    3 # $Id: Nebulous.pm,v 1.15 2007-05-04 23:36:46 jhoblitt Exp $
     3# $Id: Nebulous.pm,v 1.16 2008-02-02 01:51:29 jhoblitt Exp $
    44
    55package Test::Nebulous;
    66
    77use strict;
     8
     9our $VERSION = '0.01';
     10
     11use base qw( Exporter );
    812
    913use DBI;
     
    1216use Nebulous::Server::SQL;
    1317
    14 my $dsn     = "DBI:mysql:database=test:host=localhost";
    15 my $user    = "test";
    16 my $passwd  = "";
     18our @EXPORT = qw( $NEB_DB $NEB_USER $NEB_PASS );
    1719
    18 my $dbh = DBI->connect( $dsn, $user, $passwd );
     20our $NEB_DB   = "DBI:mysql:database=nebulous:host=localhost";
     21our $NEB_USER = "nebulous";
     22our $NEB_PASS = '@neb@';
     23
     24my $dbh = DBI->connect( $NEB_DB, $NEB_USER, $NEB_PASS );
    1925my $sql = Nebulous::Server::SQL->new;
    2026
Note: See TracChangeset for help on using the changeset viewer.