Default db_schema to the username for DB2
[dbsrgits/DBIx-Class-Schema-Loader.git] / t / 13db2_common.t
CommitLineData
a78e3fed 1use strict;
c2849787 2use lib qw(t/lib);
fbd83464 3use dbixcsl_common_tests;
a78e3fed 4
9e978a19 5my $dsn = $ENV{DBICTEST_DB2_DSN} || '';
6my $user = $ENV{DBICTEST_DB2_USER} || '';
7my $password = $ENV{DBICTEST_DB2_PASS} || '';
a78e3fed 8
fbd83464 9my $tester = dbixcsl_common_tests->new(
af96f52e 10 vendor => 'DB2',
11 auto_inc_pk => 'INTEGER GENERATED BY DEFAULT AS IDENTITY NOT NULL PRIMARY KEY',
9e978a19 12 dsn => $dsn,
af96f52e 13 user => $user,
14 password => $password,
a78e3fed 15);
16
9e978a19 17if( !$dsn || !$user ) {
18 $tester->skip_tests('You need to set the DBICTEST_DB2_DSN, _USER, and _PASS environment variables');
a78e3fed 19}
20else {
21 $tester->run_tests();
22}