Index: /trunk/Nebulous-Server/Changes
===================================================================
--- /trunk/Nebulous-Server/Changes	(revision 16353)
+++ /trunk/Nebulous-Server/Changes	(revision 16354)
@@ -2,4 +2,5 @@
 
 0.07
+    - pickup test DB settings from the env.
     - add neb-ls -l|-1 option
     - add neb-fsck
Index: /trunk/Nebulous-Server/lib/Nebulous/Server.pm
===================================================================
--- /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 16353)
+++ /trunk/Nebulous-Server/lib/Nebulous/Server.pm	(revision 16354)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: Server.pm,v 1.51 2008-01-31 02:26:33 jhoblitt Exp $
+# $Id: Server.pm,v 1.52 2008-02-07 22:18:51 jhoblitt Exp $
 
 package Nebulous::Server;
@@ -861,6 +861,15 @@
     $log->debug( "entered - @_" );
 
+    unless ($pattern) {
+        $log->debug( "leaving" );
+        return [];
+    }
+
+    # attempt to strip off neb:// if it exists
+    if ($pattern =~ m|^neb:|) {
+        $pattern = parse_neb_key($pattern);        
+    }
+
     my $query;
-
     eval {
         $query = $db->prepare_cached( $sql->find_objects );
Index: /trunk/Nebulous/Changes
===================================================================
--- /trunk/Nebulous/Changes	(revision 16353)
+++ /trunk/Nebulous/Changes	(revision 16354)
@@ -2,4 +2,5 @@
 
 0.07
+    - pickup test DB settings from the env.
     - add neb-ls -l|-1 option
     - add neb-fsck
Index: /trunk/Nebulous/lib/Nebulous/Server.pm
===================================================================
--- /trunk/Nebulous/lib/Nebulous/Server.pm	(revision 16353)
+++ /trunk/Nebulous/lib/Nebulous/Server.pm	(revision 16354)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: Server.pm,v 1.51 2008-01-31 02:26:33 jhoblitt Exp $
+# $Id: Server.pm,v 1.52 2008-02-07 22:18:51 jhoblitt Exp $
 
 package Nebulous::Server;
@@ -861,6 +861,15 @@
     $log->debug( "entered - @_" );
 
+    unless ($pattern) {
+        $log->debug( "leaving" );
+        return [];
+    }
+
+    # attempt to strip off neb:// if it exists
+    if ($pattern =~ m|^neb:|) {
+        $pattern = parse_neb_key($pattern);        
+    }
+
     my $query;
-
     eval {
         $query = $db->prepare_cached( $sql->find_objects );
Index: /trunk/Nebulous/lib/Nebulous/Util.pm
===================================================================
--- /trunk/Nebulous/lib/Nebulous/Util.pm	(revision 16353)
+++ /trunk/Nebulous/lib/Nebulous/Util.pm	(revision 16354)
@@ -1,5 +1,5 @@
 # Copyright (c) 2004  Joshua Hoblitt
 #
-# $Id: Util.pm,v 1.9 2008-01-23 22:46:44 jhoblitt Exp $
+# $Id: Util.pm,v 1.10 2008-02-07 22:18:51 jhoblitt Exp $
 
 package Nebulous::Util;
@@ -83,4 +83,5 @@
 {
     my $text = shift;
+    return unless defined $text;
 
     # white space is not allowed
Index: /trunk/Nebulous/t/Test/Nebulous.pm
===================================================================
--- /trunk/Nebulous/t/Test/Nebulous.pm	(revision 16353)
+++ /trunk/Nebulous/t/Test/Nebulous.pm	(revision 16354)
@@ -1,5 +1,5 @@
 # Copyright (C) 2004  Joshua Hoblitt
 #
-# $Id: Nebulous.pm,v 1.16 2008-02-02 01:51:29 jhoblitt Exp $
+# $Id: Nebulous.pm,v 1.17 2008-02-07 22:17:45 jhoblitt Exp $
 
 package Test::Nebulous;
@@ -18,7 +18,7 @@
 our @EXPORT = qw( $NEB_DB $NEB_USER $NEB_PASS );
 
-our $NEB_DB   = "DBI:mysql:database=nebulous:host=localhost";
-our $NEB_USER = "nebulous";
-our $NEB_PASS = '@neb@';
+our $NEB_DB     = $ENV{'NEB_DB'}   || "DBI:mysql:database=test:host=localhost";
+our $NEB_USER   = $ENV{'NEB_USER'} || "test";
+our $NEB_PASS   = $ENV{'NEB_PASS'} || '';
 
 my $dbh = DBI->connect( $NEB_DB, $NEB_USER, $NEB_PASS );
