IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 30, 2008, 4:26:33 PM (18 years ago)
Author:
jhoblitt
Message:

fix issues causes by adding fkey's to the instance table

File:
1 edited

Legend:

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

    r16223 r16265  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.22 2008-01-25 02:06:08 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.23 2008-01-31 02:26:33 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 65;
     10use Test::More tests => 67;
    1111
    1212use lib qw( ./t ./lib );
     
    239239Test::Nebulous->setup;
    240240
     241{
     242    # volume name override
     243    # OK because the volume arg overrides the key's  implied volume
     244    my $uri = $neb->create_object("neb://99/foo", "node01");
     245
     246    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     247    ok(-e $path, "file exists");
     248    ok($neb->find_instances("foo"), 'object key exists');
     249    uri_scheme_ok($uri, 'file');
     250}
     251
     252Test::Nebulous->setup;
     253
    241254eval {
    242255    $neb->create_object("foo");
     
    326339
    327340eval {
    328     # volume name override
    329     $neb->create_object("neb://99/foo", "node01");
    330 };
    331 like($@, qr/is not a valid volume name/, "volume name doesn't exist");
    332 
    333 Test::Nebulous->setup;
    334 
    335 eval {
    336341    $neb->create_object();
    337342};
Note: See TracChangeset for help on using the changeset viewer.