Changeset 19493 for trunk/Nebulous-Server/t
- Timestamp:
- Sep 11, 2008, 12:35:52 PM (18 years ago)
- Location:
- trunk/Nebulous-Server/t
- Files:
-
- 4 edited
-
03_server_create_object.t (modified) (2 diffs)
-
04_server_replicate_object.t (modified) (2 diffs)
-
07_server_find_instances.t (modified) (2 diffs)
-
15_mounts.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/t/03_server_create_object.t
r19470 r19493 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1. 29 2008-09-10 23:53:23 billsExp $5 # $Id: 03_server_create_object.t,v 1.30 2008-09-11 22:35:52 jhoblitt Exp $ 6 6 7 7 use strict; … … 353 353 354 354 eval { 355 $neb->create_object("foo", '~node0 3');356 }; 357 like($@, qr/node0 3is not available/, "request volume this is full");358 359 Test::Nebulous->setup; 360 361 eval { 362 $neb->create_object("neb://~node0 3/foo");363 }; 364 like($@, qr/node0 3is not available/, "request volume this is full");355 $neb->create_object("foo", '~node07'); 356 }; 357 like($@, qr/node07 is not available/, "request volume this is full"); 358 359 Test::Nebulous->setup; 360 361 eval { 362 $neb->create_object("neb://~node07/foo"); 363 }; 364 like($@, qr/node07 is not available/, "request volume this is full"); 365 365 366 366 Test::Nebulous->setup; -
trunk/Nebulous-Server/t/04_server_replicate_object.t
r19431 r19493 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 04_server_replicate_object.t,v 1.1 5 2008-09-09 02:18:47jhoblitt Exp $5 # $Id: 04_server_replicate_object.t,v 1.16 2008-09-11 22:35:52 jhoblitt Exp $ 6 6 7 7 use strict; … … 155 155 Test::Nebulous->setup; 156 156 157 {157 eval { 158 158 $neb->create_object('foo'); 159 159 ok($neb->replicate_object('foo', 'bar'),'soft fake storage volume'); 160 } 160 }; 161 161 162 162 Test::Nebulous->setup; -
trunk/Nebulous-Server/t/07_server_find_instances.t
r19471 r19493 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 07_server_find_instances.t,v 1.1 5 2008-09-10 23:54:22 billsExp $5 # $Id: 07_server_find_instances.t,v 1.16 2008-09-11 22:35:52 jhoblitt Exp $ 6 6 7 7 use strict; … … 121 121 eval { 122 122 $neb->create_object('foo'); 123 $neb->find_instances('foo', ' bar');123 $neb->find_instances('foo', '~bar'); 124 124 }; 125 like($@, qr/is valid volume name/, "storage volume does not exist");125 like($@, qr/is not a valid volume name/, "storage volume does not exist"); 126 126 127 127 Test::Nebulous->setup; -
trunk/Nebulous-Server/t/15_mounts.t
r18389 r19493 3 3 # Copryight (C) 2008 Joshua Hoblitt 4 4 # 5 # $Id: 15_mounts.t,v 1. 2 2008-07-01 00:28:07jhoblitt Exp $5 # $Id: 15_mounts.t,v 1.3 2008-09-11 22:35:52 jhoblitt Exp $ 6 6 7 7 use strict; … … 28 28 my $mounts = $neb->mounts(); 29 29 30 is(scalar @$mounts, 6, "number of rows");30 is(scalar @$mounts, 7, "number of rows"); 31 31 32 32 my %row;
Note:
See TracChangeset
for help on using the changeset viewer.
