Changeset 16223
- Timestamp:
- Jan 24, 2008, 4:06:08 PM (18 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
Nebulous-Server/t/03_server_create_object.t (modified) (3 diffs)
-
Nebulous/t/03_server_create_object.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/t/03_server_create_object.t
r16221 r16223 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1.2 1 2008-01-25 01:53:28 jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.22 2008-01-25 02:06:08 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 6 4;10 use Test::More tests => 65; 11 11 12 12 use lib qw( ./t ./lib ); … … 229 229 { 230 230 # volume name override 231 my $uri = $neb->create_object("neb:// 99/foo", "node01");231 my $uri = $neb->create_object("neb://node02/foo", "node01"); 232 232 233 233 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); … … 321 321 $neb->create_object("neb://99/foo"); 322 322 }; 323 like($@, qr/is not available/, "volume name doesn't exist"); 323 like($@, qr/is not a valid volume name/, "volume name doesn't exist"); 324 325 Test::Nebulous->setup; 326 327 eval { 328 # volume name override 329 $neb->create_object("neb://99/foo", "node01"); 330 }; 331 like($@, qr/is not a valid volume name/, "volume name doesn't exist"); 324 332 325 333 Test::Nebulous->setup; -
trunk/Nebulous/t/03_server_create_object.t
r16221 r16223 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1.2 1 2008-01-25 01:53:28 jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.22 2008-01-25 02:06:08 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 6 4;10 use Test::More tests => 65; 11 11 12 12 use lib qw( ./t ./lib ); … … 229 229 { 230 230 # volume name override 231 my $uri = $neb->create_object("neb:// 99/foo", "node01");231 my $uri = $neb->create_object("neb://node02/foo", "node01"); 232 232 233 233 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); … … 321 321 $neb->create_object("neb://99/foo"); 322 322 }; 323 like($@, qr/is not available/, "volume name doesn't exist"); 323 like($@, qr/is not a valid volume name/, "volume name doesn't exist"); 324 325 Test::Nebulous->setup; 326 327 eval { 328 # volume name override 329 $neb->create_object("neb://99/foo", "node01"); 330 }; 331 like($@, qr/is not a valid volume name/, "volume name doesn't exist"); 324 332 325 333 Test::Nebulous->setup;
Note:
See TracChangeset
for help on using the changeset viewer.
