Changeset 13173 for trunk/Nebulous-Server/t/04_server_replicate_object.t
- Timestamp:
- May 2, 2007, 3:44:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/t/04_server_replicate_object.t
r12960 r13173 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 04_server_replicate_object.t,v 1. 7 2007-04-23 20:42:29jhoblitt Exp $5 # $Id: 04_server_replicate_object.t,v 1.8 2007-05-03 01:44:24 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 1 1;10 use Test::More tests => 12; 11 11 12 12 use lib qw( ./t ./lib ); … … 72 72 73 73 eval { 74 $neb->replicate_object( "foo");74 $neb->replicate_object('foo'); 75 75 }; 76 like($@, qr/storage object does not exist/, "storage object does not exist"); 76 like($@, qr/is valid object key/, 'storage object does not exist'); 77 78 Test::Nebulous->setup; 79 80 eval { 81 $neb->create_object('foo'); 82 $neb->replicate_object('foo', 'bar'); 83 }; 84 like($@, qr/is valid volume name/, 'storage volume does not exist'); 77 85 78 86 Test::Nebulous->setup; … … 81 89 $neb->replicate_object(); 82 90 }; 83 like($@, qr/1 - 2 were expected/, "no params");91 like($@, qr/1 - 2 were expected/, 'no params'); 84 92 85 93 Test::Nebulous->setup; 86 94 87 95 eval { 88 $neb->replicate_object(1, 2, 3); 96 $neb->create_object('foo'); 97 $neb->replicate_object('foo', 'node01', 3); 89 98 }; 90 like($@, qr/1 - 2 were expected/, "too many params");99 like($@, qr/1 - 2 were expected/, 'too many params'); 91 100 92 101 Test::Nebulous->cleanup;
Note:
See TracChangeset
for help on using the changeset viewer.
