IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17644


Ignore:
Timestamp:
May 12, 2008, 2:16:15 PM (18 years ago)
Author:
jhoblitt
Message:

check that ->create() accepts volume == undef

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/51_client_create.t

    r16281 r17644  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 51_client_create.t,v 1.4 2008-02-02 01:51:29 jhoblitt Exp $
     5# $Id: 51_client_create.t,v 1.5 2008-05-13 00:16:15 jhoblitt Exp $
    66
    77use strict;
     
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 7;
     12plan tests => 9;
    1313
    1414use lib qw( ./t ./lib );
     
    5454
    5555{
     56    # key, volume == undef
     57    my $neb = Nebulous::Client->new(
     58        proxy => "http://$hostport/nebulous",
     59    );
     60
     61    my $uri = $neb->create("foo", undef);
     62
     63    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     64    ok(-e $path, "good filename");
     65    uri_scheme_ok($uri, 'file');
     66}
     67
     68Test::Nebulous->setup;
     69
     70{
    5671    my $neb = Nebulous::Client->new(
    5772        proxy => "http://$hostport/nebulous",
Note: See TracChangeset for help on using the changeset viewer.