IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2008, 2:37:27 PM (18 years ago)
Author:
jhoblitt
Message:

allow ->replicate() volume param to be undef

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/52_client_replicate.t

    r5667 r19715  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 52_client_replicate.t,v 1.1 2005-12-03 02:52:31 jhoblitt Exp $
     5# $Id: 52_client_replicate.t,v 1.2 2008-09-24 00:36:56 jhoblitt Exp $
    66
    77use strict;
     
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 11;
     12plan tests => 13;
    1313
    1414use lib qw( ./t ./lib );
     
    4545
    4646    my $uri = $neb->replicate( "foo", "node01" );
     47
     48    ok( $uri, "good replication" );
     49    ok( -e _get_file_path( $uri ), "file exists" );
     50}
     51
     52Test::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 );
    4762
    4863    ok( $uri, "good replication" );
Note: See TracChangeset for help on using the changeset viewer.