IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13205


Ignore:
Timestamp:
May 3, 2007, 2:42:53 PM (19 years ago)
Author:
jhoblitt
Message:

add tests for paths with '/' in them

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/t/03_server_create_object.t

    r13131 r13205  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.15 2007-05-02 20:53:42 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.16 2007-05-04 00:42:53 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 12;
     10use Test::More tests => 16;
    1111
    1212use lib qw( ./t ./lib );
     
    2929    # key
    3030    my $uri = $neb->create_object("foo");
     31
     32    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     33    ok(-e $path, "file exists");
     34    uri_scheme_ok($uri, 'file');
     35}
     36
     37Test::Nebulous->setup;
     38
     39{
     40    # key
     41    my $uri = $neb->create_object("/foo");
     42
     43    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     44    ok(-e $path, "file exists");
     45    uri_scheme_ok($uri, 'file');
     46}
     47
     48Test::Nebulous->setup;
     49
     50{
     51    # key
     52    my $uri = $neb->create_object("/foo/");
     53
     54    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     55    ok(-e $path, "file exists");
     56    uri_scheme_ok($uri, 'file');
     57}
     58
     59Test::Nebulous->setup;
     60
     61{
     62    # key
     63    my $uri = $neb->create_object("foo/");
     64
     65    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     66    ok(-e $path, "file exists");
     67    uri_scheme_ok($uri, 'file');
     68}
     69
     70Test::Nebulous->setup;
     71
     72{
     73    # key
     74    my $uri = $neb->create_object("foo/bar");
     75
     76    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     77    ok(-e $path, "file exists");
     78    uri_scheme_ok($uri, 'file');
     79}
     80
     81Test::Nebulous->setup;
     82
     83{
     84    # key
     85    my $uri = $neb->create_object("/foo/bar");
    3186
    3287    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
  • trunk/Nebulous/t/03_server_create_object.t

    r13131 r13205  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.15 2007-05-02 20:53:42 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.16 2007-05-04 00:42:53 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 12;
     10use Test::More tests => 16;
    1111
    1212use lib qw( ./t ./lib );
     
    2929    # key
    3030    my $uri = $neb->create_object("foo");
     31
     32    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     33    ok(-e $path, "file exists");
     34    uri_scheme_ok($uri, 'file');
     35}
     36
     37Test::Nebulous->setup;
     38
     39{
     40    # key
     41    my $uri = $neb->create_object("/foo");
     42
     43    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     44    ok(-e $path, "file exists");
     45    uri_scheme_ok($uri, 'file');
     46}
     47
     48Test::Nebulous->setup;
     49
     50{
     51    # key
     52    my $uri = $neb->create_object("/foo/");
     53
     54    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     55    ok(-e $path, "file exists");
     56    uri_scheme_ok($uri, 'file');
     57}
     58
     59Test::Nebulous->setup;
     60
     61{
     62    # key
     63    my $uri = $neb->create_object("foo/");
     64
     65    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     66    ok(-e $path, "file exists");
     67    uri_scheme_ok($uri, 'file');
     68}
     69
     70Test::Nebulous->setup;
     71
     72{
     73    # key
     74    my $uri = $neb->create_object("foo/bar");
     75
     76    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     77    ok(-e $path, "file exists");
     78    uri_scheme_ok($uri, 'file');
     79}
     80
     81Test::Nebulous->setup;
     82
     83{
     84    # key
     85    my $uri = $neb->create_object("/foo/bar");
    3186
    3287    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
Note: See TracChangeset for help on using the changeset viewer.