IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

add volume.available field and logic to use it

File:
1 edited

Legend:

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

    r13130 r13131  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.14 2007-05-02 20:14:46 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.15 2007-05-02 20:53:42 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 10;
     10use Test::More tests => 12;
    1111
    1212use lib qw( ./t ./lib );
     
    5959    $neb->create_object("foo", 'node03');
    6060};
    61 like($@, qr/node03 is not available/, "request volume with allocate = FALSE");
     61like($@, qr/node03 is not available/, "request volume this is full");
    6262
    6363Test::Nebulous->setup;
     
    6666    $neb->create_object("foo", 'node04');
    6767};
    68 like($@, qr/node04 is not available/, "request volume this is full");
     68like($@, qr/node04 is not available/, "request volume with allocate = FALSE, available = FALSE");
     69
     70Test::Nebulous->setup;
     71
     72eval {
     73    $neb->create_object("foo", 'node05');
     74};
     75like($@, qr/node05 is not available/, "request volume with allocate = FALSE , available = TRUE");
     76
     77Test::Nebulous->setup;
     78
     79eval {
     80    $neb->create_object("foo", 'node06');
     81};
     82like($@, qr/node06 is not available/, "request volume with allocate = TRUE, available = FALSE");
    6983
    7084Test::Nebulous->setup;
Note: See TracChangeset for help on using the changeset viewer.