IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16223


Ignore:
Timestamp:
Jan 24, 2008, 4:06:08 PM (18 years ago)
Author:
jhoblitt
Message:

fix volume name override tests

Location:
trunk
Files:
2 edited

Legend:

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

    r16221 r16223  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.21 2008-01-25 01:53:28 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.22 2008-01-25 02:06:08 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 64;
     10use Test::More tests => 65;
    1111
    1212use lib qw( ./t ./lib );
     
    229229{
    230230    # volume name override
    231     my $uri = $neb->create_object("neb://99/foo", "node01");
     231    my $uri = $neb->create_object("neb://node02/foo", "node01");
    232232
    233233    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     
    321321    $neb->create_object("neb://99/foo");
    322322};
    323 like($@, qr/is not available/, "volume name doesn't exist");
     323like($@, qr/is not a valid volume name/, "volume name doesn't exist");
     324
     325Test::Nebulous->setup;
     326
     327eval {
     328    # volume name override
     329    $neb->create_object("neb://99/foo", "node01");
     330};
     331like($@, qr/is not a valid volume name/, "volume name doesn't exist");
    324332
    325333Test::Nebulous->setup;
  • trunk/Nebulous/t/03_server_create_object.t

    r16221 r16223  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.21 2008-01-25 01:53:28 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.22 2008-01-25 02:06:08 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 64;
     10use Test::More tests => 65;
    1111
    1212use lib qw( ./t ./lib );
     
    229229{
    230230    # volume name override
    231     my $uri = $neb->create_object("neb://99/foo", "node01");
     231    my $uri = $neb->create_object("neb://node02/foo", "node01");
    232232
    233233    my ($scheme, $auth, $path, $query, $frag) = uri_split($uri);
     
    321321    $neb->create_object("neb://99/foo");
    322322};
    323 like($@, qr/is not available/, "volume name doesn't exist");
     323like($@, qr/is not a valid volume name/, "volume name doesn't exist");
     324
     325Test::Nebulous->setup;
     326
     327eval {
     328    # volume name override
     329    $neb->create_object("neb://99/foo", "node01");
     330};
     331like($@, qr/is not a valid volume name/, "volume name doesn't exist");
    324332
    325333Test::Nebulous->setup;
Note: See TracChangeset for help on using the changeset viewer.