IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

add volume.allocate field and logic to use it

File:
1 edited

Legend:

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

    r13092 r13130  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.13 2007-05-01 02:52:04 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.14 2007-05-02 20:14:46 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 8;
     10use Test::More tests => 10;
    1111
    1212use lib qw( ./t ./lib );
     
    5757
    5858eval {
     59    $neb->create_object("foo", 'node03');
     60};
     61like($@, qr/node03 is not available/, "request volume with allocate = FALSE");
     62
     63Test::Nebulous->setup;
     64
     65eval {
     66    $neb->create_object("foo", 'node04');
     67};
     68like($@, qr/node04 is not available/, "request volume this is full");
     69
     70Test::Nebulous->setup;
     71
     72eval {
    5973    $neb->create_object("foo", 99);
    6074};
Note: See TracChangeset for help on using the changeset viewer.