Changeset 19715
- Timestamp:
- Sep 23, 2008, 2:37:27 PM (18 years ago)
- Location:
- trunk/Nebulous
- Files:
-
- 3 edited
-
Changes (modified) (1 diff)
-
lib/Nebulous/Client.pm (modified) (2 diffs)
-
t/52_client_replicate.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/Changes
r18858 r19715 2 2 3 3 0.10 4 - allow ->replicate() volume param to be undef 4 5 - fix ->delete() still work if the neb implies a volume on which there is 5 6 no instance -
trunk/Nebulous/lib/Nebulous/Client.pm
r19497 r19715 1 1 # Copyright (c) 2004-2008 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1. 59 2008-09-11 23:02:23jhoblitt Exp $3 # $Id: Client.pm,v 1.60 2008-09-24 00:36:56 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 191 191 { 192 192 # volume 193 type => SCALAR ,193 type => SCALAR|UNDEF, 194 194 optional => 1, 195 195 }, -
trunk/Nebulous/t/52_client_replicate.t
r5667 r19715 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 52_client_replicate.t,v 1. 1 2005-12-03 02:52:31jhoblitt Exp $5 # $Id: 52_client_replicate.t,v 1.2 2008-09-24 00:36:56 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use Apache::Test qw( -withtestmore ); 11 11 12 plan tests => 1 1;12 plan tests => 13; 13 13 14 14 use lib qw( ./t ./lib ); … … 45 45 46 46 my $uri = $neb->replicate( "foo", "node01" ); 47 48 ok( $uri, "good replication" ); 49 ok( -e _get_file_path( $uri ), "file exists" ); 50 } 51 52 Test::Nebulous->setup; 53 54 { 55 # key, $volume = undef (same as saying no volume) 56 my $neb = Nebulous::Client->new( 57 proxy => "http://$hostport/nebulous", 58 ); 59 $neb->create( "neb://node01/foo" ); 60 61 my $uri = $neb->replicate( "neb://node01/foo", undef ); 47 62 48 63 ok( $uri, "good replication" );
Note:
See TracChangeset
for help on using the changeset viewer.
