IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18858


Ignore:
Timestamp:
Aug 1, 2008, 1:55:26 PM (18 years ago)
Author:
jhoblitt
Message:

fix ->delete() still work if the neb implies a volume on which there is no instance

Location:
trunk/Nebulous
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/Changes

    r18463 r18858  
    22
    330.10
     4    - fix ->delete() still work if the neb implies a volume on which there is
     5      no instance
    46    - retry all calls to open()
    57
  • trunk/Nebulous/lib/Nebulous/Client.pm

    r18463 r18858  
    11# Copyright (c) 2004-2008  Joshua Hoblitt
    22#
    3 # $Id: Client.pm,v 1.57 2008-07-10 23:21:27 jhoblitt Exp $
     3# $Id: Client.pm,v 1.58 2008-08-01 23:55:26 jhoblitt Exp $
    44
    55package Nebulous::Client;
     
    783783    $log->debug( "entered - @_" );
    784784
    785     my $locations = $self->find_instances( $key );
     785    my $locations = $self->find_instances( $key, 'any' );
    786786
    787787    return undef unless $locations;
  • trunk/Nebulous/t/59_client_delete.t

    r5667 r18858  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 59_client_delete.t,v 1.1 2005-12-03 02:52:31 jhoblitt Exp $
     5# $Id: 59_client_delete.t,v 1.2 2008-08-01 23:55:26 jhoblitt Exp $
    66
    77use strict;
     
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 7;
     12plan tests => 9;
    1313
    1414use lib qw( ./t ./lib );
     
    5757        proxy => "http://$hostport/nebulous",
    5858    );
     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
     68Test::Nebulous->setup;
     69
     70{
     71    my $neb = Nebulous::Client->new(
     72        proxy => "http://$hostport/nebulous",
     73    );
    5974
    6075    is( $neb->delete( "foo" ), undef, "delete non-existant object" );
Note: See TracChangeset for help on using the changeset viewer.