IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2008, 12:35:52 PM (18 years ago)
Author:
jhoblitt
Message:

invert soft volume semantics

Location:
trunk/Nebulous-Server/t
Files:
4 edited

Legend:

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

    r19470 r19493  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.29 2008-09-10 23:53:23 bills Exp $
     5# $Id: 03_server_create_object.t,v 1.30 2008-09-11 22:35:52 jhoblitt Exp $
    66
    77use strict;
     
    353353
    354354eval {
    355     $neb->create_object("foo", '~node03');
    356 };
    357 like($@, qr/node03 is not available/, "request volume this is full");
    358 
    359 Test::Nebulous->setup;
    360 
    361 eval {
    362     $neb->create_object("neb://~node03/foo");
    363 };
    364 like($@, qr/node03 is not available/, "request volume this is full");
     355    $neb->create_object("foo", '~node07');
     356};
     357like($@, qr/node07 is not available/, "request volume this is full");
     358
     359Test::Nebulous->setup;
     360
     361eval {
     362    $neb->create_object("neb://~node07/foo");
     363};
     364like($@, qr/node07 is not available/, "request volume this is full");
    365365
    366366Test::Nebulous->setup;
  • trunk/Nebulous-Server/t/04_server_replicate_object.t

    r19431 r19493  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 04_server_replicate_object.t,v 1.15 2008-09-09 02:18:47 jhoblitt Exp $
     5# $Id: 04_server_replicate_object.t,v 1.16 2008-09-11 22:35:52 jhoblitt Exp $
    66
    77use strict;
     
    155155Test::Nebulous->setup;
    156156
    157 {
     157eval {
    158158    $neb->create_object('foo');
    159159    ok($neb->replicate_object('foo', 'bar'),'soft fake storage volume');
    160 }
     160};
    161161
    162162Test::Nebulous->setup;
  • trunk/Nebulous-Server/t/07_server_find_instances.t

    r19471 r19493  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 07_server_find_instances.t,v 1.15 2008-09-10 23:54:22 bills Exp $
     5# $Id: 07_server_find_instances.t,v 1.16 2008-09-11 22:35:52 jhoblitt Exp $
    66
    77use strict;
     
    121121eval {
    122122    $neb->create_object('foo');
    123     $neb->find_instances('foo', 'bar');
     123    $neb->find_instances('foo', '~bar');
    124124};
    125 like($@, qr/is valid volume name/, "storage volume does not exist");
     125like($@, qr/is not a valid volume name/, "storage volume does not exist");
    126126
    127127Test::Nebulous->setup;
  • trunk/Nebulous-Server/t/15_mounts.t

    r18389 r19493  
    33# Copryight (C) 2008  Joshua Hoblitt
    44#
    5 # $Id: 15_mounts.t,v 1.2 2008-07-01 00:28:07 jhoblitt Exp $
     5# $Id: 15_mounts.t,v 1.3 2008-09-11 22:35:52 jhoblitt Exp $
    66
    77use strict;
     
    2828    my $mounts = $neb->mounts();
    2929
    30     is(scalar @$mounts, 6, "number of rows");
     30    is(scalar @$mounts, 7, "number of rows");
    3131
    3232    my %row;
Note: See TracChangeset for help on using the changeset viewer.