X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F13db2_common.t;h=1619968155cf882fba52c486ccb8ac0d4a432dd1;hb=9e978a19c9486474511d003abcf63d0a559d20f5;hp=cee99b2d435e71fd0d9be4095fb42c3953fa8e87;hpb=9b046d97d04d7adf9a43167666d8793a54eb6a62;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/t/13db2_common.t b/t/13db2_common.t index cee99b2..1619968 100644 --- a/t/13db2_common.t +++ b/t/13db2_common.t @@ -2,20 +2,22 @@ use strict; use lib qw( . ./t ); use dbixcsl_common_tests; -my $database = $ENV{DB2_NAME} || ''; -my $user = $ENV{DB2_USER} || ''; -my $password = $ENV{DB2_PASS} || ''; +my $dsn = $ENV{DBICTEST_DB2_DSN} || ''; +my $user = $ENV{DBICTEST_DB2_USER} || ''; +my $password = $ENV{DBICTEST_DB2_PASS} || ''; my $tester = dbixcsl_common_tests->new( - vendor => 'DB2', - auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', - dsn => "dbi:DB2:$database", - user => $user, - password => $password, + vendor => 'DB2', + auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY', + dsn => $dsn, + user => $user, + password => $password, + db_schema => $user, + drop_db_schema => 1, ); -if( !$database || !$user ) { - $tester->skip_tests('You need to set the DB2_NAME, DB2_USER and DB2_PASS environment variables'); +if( !$dsn || !$user ) { + $tester->skip_tests('You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables'); } else { $tester->run_tests();