Changeset 4873
- Timestamp:
- Aug 24, 2005, 3:40:04 PM (21 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
-
Nebulous-Server/t/02_server_setup.t (modified) (3 diffs)
-
Nebulous-Server/t/03_server_create_object.t (modified) (2 diffs)
-
Nebulous-Server/t/04_server_replicate_object.t (modified) (2 diffs)
-
Nebulous-Server/t/05_server_lock_object.t (modified) (2 diffs)
-
Nebulous-Server/t/06_server_unlock_object.t (modified) (2 diffs)
-
Nebulous-Server/t/07_server_find_instances.t (modified) (2 diffs)
-
Nebulous-Server/t/08_server_delete_instance.t (modified) (2 diffs)
-
Nebulous-Server/t/09_server_stat_object.t (modified) (2 diffs)
-
Nebulous/t/02_server_setup.t (modified) (3 diffs)
-
Nebulous/t/03_server_create_object.t (modified) (2 diffs)
-
Nebulous/t/04_server_replicate_object.t (modified) (2 diffs)
-
Nebulous/t/05_server_lock_object.t (modified) (2 diffs)
-
Nebulous/t/06_server_unlock_object.t (modified) (2 diffs)
-
Nebulous/t/07_server_find_instances.t (modified) (2 diffs)
-
Nebulous/t/08_server_delete_instance.t (modified) (2 diffs)
-
Nebulous/t/09_server_stat_object.t (modified) (2 diffs)
-
Nebulous/t/conf/startup.pl.in (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/t/02_server_setup.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 02_server_setup.t,v 1. 3 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 02_server_setup.t,v 1.4 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 19 19 ok( 20 Nebulous::Server-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 Nebulous::Server->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ), 25 25 "connect", … … 29 29 30 30 eval { 31 Nebulous::Server-> setup(32 "DBI:mysql:database=foobar:host=localhost",33 "baz",34 "boo",31 Nebulous::Server->init( 32 dsn => "DBI:mysql:database=foobar:host=localhost", 33 dbuser => "baz", 34 dbpasswd =>"boo", 35 35 ); 36 36 }; -
trunk/Nebulous-Server/t/03_server_create_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous-Server/t/04_server_replicate_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 04_server_replicate_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 04_server_replicate_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous-Server/t/05_server_lock_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 05_server_lock_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 05_server_lock_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous-Server/t/06_server_unlock_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 06_server_unlock_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 06_server_unlock_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous-Server/t/07_server_find_instances.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 07_server_find_instances.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 07_server_find_instances.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous-Server/t/08_server_delete_instance.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 08_server_delete_instance.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 08_server_delete_instance.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous-Server/t/09_server_stat_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 09_server_stat_object.t,v 1. 5 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 09_server_stat_object.t,v 1.6 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/02_server_setup.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 02_server_setup.t,v 1. 3 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 02_server_setup.t,v 1.4 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 19 19 ok( 20 Nebulous::Server-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 Nebulous::Server->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ), 25 25 "connect", … … 29 29 30 30 eval { 31 Nebulous::Server-> setup(32 "DBI:mysql:database=foobar:host=localhost",33 "baz",34 "boo",31 Nebulous::Server->init( 32 dsn => "DBI:mysql:database=foobar:host=localhost", 33 dbuser => "baz", 34 dbpasswd =>"boo", 35 35 ); 36 36 }; -
trunk/Nebulous/t/03_server_create_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/04_server_replicate_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 04_server_replicate_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 04_server_replicate_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/05_server_lock_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 05_server_lock_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 05_server_lock_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/06_server_unlock_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 06_server_unlock_object.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 06_server_unlock_object.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/07_server_find_instances.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 07_server_find_instances.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 07_server_find_instances.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/08_server_delete_instance.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 08_server_delete_instance.t,v 1. 4 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 08_server_delete_instance.t,v 1.5 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/09_server_stat_object.t
r4440 r4873 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 09_server_stat_object.t,v 1. 5 2005-06-30 02:35:06jhoblitt Exp $5 # $Id: 09_server_stat_object.t,v 1.6 2005-08-25 01:40:04 jhoblitt Exp $ 6 6 7 7 use strict; … … 18 18 my $neb = "Nebulous::Server"; 19 19 20 $neb-> setup(21 "DBI:mysql:database=test:host=localhost",22 "test",23 "",20 $neb->init( 21 dsn => "DBI:mysql:database=test:host=localhost", 22 dbuser => "test", 23 dbpasswd => "", 24 24 ); 25 25 -
trunk/Nebulous/t/conf/startup.pl.in
r4440 r4873 1 1 use strict; 2 use warnings FATAL => qw( all ); 2 3 3 4 use Apache::DBI; … … 6 7 use Nebulous::Server; 7 8 8 my $dsn = "DBI:mysql:database=test:host=localhost";9 my $dbuser = "test";10 my $dbpass = "";9 my $dsn = "DBI:mysql:database=test:host=localhost"; 10 my $dbuser = "test"; 11 my $dbpasswd = ""; 11 12 12 Apache::DBI->connect_on_init( $dsn, $dbuser, $dbpass ); 13 Nebulous::Server->setup( $dsn, $dbuser, $dbpass ); 13 Apache::DBI->connect_on_init( $dsn, $dbuser, $dbpasswd ); 14 Nebulous::Server->init( 15 dsn => $dsn, 16 dbuser => $dbuser, 17 dbpasswd => $dbpasswd, 18 log_level => 'all', 19 ); 14 20 15 21 1; 16
Note:
See TracChangeset
for help on using the changeset viewer.
