Changeset 13131 for trunk/Nebulous-Server/t/03_server_create_object.t
- Timestamp:
- May 2, 2007, 10:53:42 AM (19 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
r13130 r13131 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1.1 4 2007-05-02 20:14:46jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.15 2007-05-02 20:53:42 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 1 0;10 use Test::More tests => 12; 11 11 12 12 use lib qw( ./t ./lib ); … … 59 59 $neb->create_object("foo", 'node03'); 60 60 }; 61 like($@, qr/node03 is not available/, "request volume with allocate = FALSE");61 like($@, qr/node03 is not available/, "request volume this is full"); 62 62 63 63 Test::Nebulous->setup; … … 66 66 $neb->create_object("foo", 'node04'); 67 67 }; 68 like($@, qr/node04 is not available/, "request volume this is full"); 68 like($@, qr/node04 is not available/, "request volume with allocate = FALSE, available = FALSE"); 69 70 Test::Nebulous->setup; 71 72 eval { 73 $neb->create_object("foo", 'node05'); 74 }; 75 like($@, qr/node05 is not available/, "request volume with allocate = FALSE , available = TRUE"); 76 77 Test::Nebulous->setup; 78 79 eval { 80 $neb->create_object("foo", 'node06'); 81 }; 82 like($@, qr/node06 is not available/, "request volume with allocate = TRUE, available = FALSE"); 69 83 70 84 Test::Nebulous->setup;
Note:
See TracChangeset
for help on using the changeset viewer.
