Changeset 16265 for trunk/Nebulous-Server/t/03_server_create_object.t
- Timestamp:
- Jan 30, 2008, 4:26:33 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous-Server/t/03_server_create_object.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/t/03_server_create_object.t
r16223 r16265 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1.2 2 2008-01-25 02:06:08jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.23 2008-01-31 02:26:33 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 6 5;10 use Test::More tests => 67; 11 11 12 12 use lib qw( ./t ./lib ); … … 239 239 Test::Nebulous->setup; 240 240 241 { 242 # volume name override 243 # OK because the volume arg overrides the key's implied volume 244 my $uri = $neb->create_object("neb://99/foo", "node01"); 245 246 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 247 ok(-e $path, "file exists"); 248 ok($neb->find_instances("foo"), 'object key exists'); 249 uri_scheme_ok($uri, 'file'); 250 } 251 252 Test::Nebulous->setup; 253 241 254 eval { 242 255 $neb->create_object("foo"); … … 326 339 327 340 eval { 328 # volume name override329 $neb->create_object("neb://99/foo", "node01");330 };331 like($@, qr/is not a valid volume name/, "volume name doesn't exist");332 333 Test::Nebulous->setup;334 335 eval {336 341 $neb->create_object(); 337 342 };
Note:
See TracChangeset
for help on using the changeset viewer.
