Changeset 18858
- Timestamp:
- Aug 1, 2008, 1:55:26 PM (18 years ago)
- Location:
- trunk/Nebulous
- Files:
-
- 3 edited
-
Changes (modified) (1 diff)
-
lib/Nebulous/Client.pm (modified) (2 diffs)
-
t/59_client_delete.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/Changes
r18463 r18858 2 2 3 3 0.10 4 - fix ->delete() still work if the neb implies a volume on which there is 5 no instance 4 6 - retry all calls to open() 5 7 -
trunk/Nebulous/lib/Nebulous/Client.pm
r18463 r18858 1 1 # Copyright (c) 2004-2008 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1.5 7 2008-07-10 23:21:27jhoblitt Exp $3 # $Id: Client.pm,v 1.58 2008-08-01 23:55:26 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 783 783 $log->debug( "entered - @_" ); 784 784 785 my $locations = $self->find_instances( $key );785 my $locations = $self->find_instances( $key, 'any' ); 786 786 787 787 return undef unless $locations; -
trunk/Nebulous/t/59_client_delete.t
r5667 r18858 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 59_client_delete.t,v 1. 1 2005-12-03 02:52:31jhoblitt Exp $5 # $Id: 59_client_delete.t,v 1.2 2008-08-01 23:55:26 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use Apache::Test qw( -withtestmore ); 11 11 12 plan tests => 7;12 plan tests => 9; 13 13 14 14 use lib qw( ./t ./lib ); … … 57 57 proxy => "http://$hostport/nebulous", 58 58 ); 59 $neb->create( "neb://node01/foo" ); 60 61 ok( $neb->delete( "neb://node02/foo" ), "delete object" ); 62 63 my $locations = $neb->find_instances( "foo" ); 64 65 is( $locations, undef, "no instances" ); 66 } 67 68 Test::Nebulous->setup; 69 70 { 71 my $neb = Nebulous::Client->new( 72 proxy => "http://$hostport/nebulous", 73 ); 59 74 60 75 is( $neb->delete( "foo" ), undef, "delete non-existant object" );
Note:
See TracChangeset
for help on using the changeset viewer.
