diff options
author | Oliver Tappe | 2007-11-09 16:54:04 +0100 |
---|---|---|
committer | Oliver Tappe | 2007-11-09 16:54:04 +0100 |
commit | bf6beb5f4374938b20af65af76003376d9ea0ffd (patch) | |
tree | 256ba47b2976b0782317112d99fd0ee3c67312ae /config-db/t/01-basics.t | |
parent | * added default debconf database for openslx systems based on (diff) | |
download | core-bf6beb5f4374938b20af65af76003376d9ea0ffd.tar.gz core-bf6beb5f4374938b20af65af76003376d9ea0ffd.tar.xz core-bf6beb5f4374938b20af65af76003376d9ea0ffd.zip |
* started to work on configDB-tests
git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1407 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'config-db/t/01-basics.t')
-rw-r--r-- | config-db/t/01-basics.t | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/config-db/t/01-basics.t b/config-db/t/01-basics.t new file mode 100644 index 00000000..fdc7a052 --- /dev/null +++ b/config-db/t/01-basics.t @@ -0,0 +1,20 @@ +use Test::More qw(no_plan); + +use lib '/opt/openslx/lib'; + +# basic stuff +use_ok(OpenSLX::ConfigDB); + +# connecting and disconnecting +ok(my $configDB = OpenSLX::ConfigDB->new, 'can create object'); +isa_ok($configDB, 'OpenSLX::ConfigDB'); + +{ + # create a second object - should work and yield different objects + ok(my $configDB2 = OpenSLX::ConfigDB->new, 'can create another object'); + cmp_ok($configDB, 'ne', $configDB2, 'should have two different objects now'); +} + +ok($configDB->connect(), 'connecting'); +ok($configDB->disconnect(), 'disconnecting'); + |