IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18858 for trunk/Nebulous/t


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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.