IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 8, 2008, 4:18:47 PM (18 years ago)
Author:
jhoblitt
Message:

start of inversion of soft volume semantics

File:
1 edited

Legend:

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

    r18452 r19431  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.27 2008-07-10 00:20:02 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.28 2008-09-09 02:18:47 jhoblitt Exp $
    66
    77use strict;
     
    353353
    354354eval {
    355     $neb->create_object("foo", 'node03');
     355    $neb->create_object("foo", '~node03');
    356356};
    357357like($@, qr/node03 is not available/, "request volume this is full");
     
    360360
    361361eval {
    362     $neb->create_object("neb://node03/foo");
     362    $neb->create_object("neb://~node03/foo");
    363363};
    364364like($@, qr/node03 is not available/, "request volume this is full");
     
    367367
    368368eval {
    369     $neb->create_object("foo", 'node04');
     369    $neb->create_object("foo", '~node04');
    370370};
    371371like($@, qr/node04 is not available/, "request volume with allocate = FALSE, available = FALSE");
     
    374374
    375375eval {
    376     $neb->create_object("neb://node04/foo");
     376    $neb->create_object("neb://~node04/foo");
    377377};
    378378like($@, qr/node04 is not available/, "request volume with allocate = FALSE, available = FALSE");
     
    381381
    382382eval {
    383     $neb->create_object("foo", 'node05');
     383    $neb->create_object("foo", '~node05');
    384384};
    385385like($@, qr/node05 is not available/, "request volume with allocate = FALSE , available = TRUE");
     
    388388
    389389eval {
    390     $neb->create_object("neb://node05/foo");
     390    $neb->create_object("neb://~node05/foo");
    391391};
    392392like($@, qr/node05 is not available/, "request volume with allocate = FALSE , available = TRUE");
     
    395395
    396396eval {
    397     $neb->create_object("foo", 'node06');
     397    $neb->create_object("foo", '~node06');
    398398};
    399399like($@, qr/node06 is not available/, "request volume with allocate = TRUE, available = FALSE");
     
    402402
    403403eval {
    404     $neb->create_object("neb://node06/foo");
     404    $neb->create_object("neb://~node06/foo");
    405405};
    406406like($@, qr/node06 is not available/, "request volume with allocate = TRUE, available = FALSE");
     
    408408Test::Nebulous->setup;
    409409
    410 eval {
    411     $neb->create_object("foo", 99);
    412 };
    413 like($@, qr/did not pass the \'is valid volume name\'/, "volume name doesn't exist");
     410{
     411    ok($neb->create_object("foo", 99));
     412}
     413
     414Test::Nebulous->setup;
     415
     416eval {
     417    $neb->create_object("foo", "~99");
     418};
     419like($@, qr/is not a valid volume name/, "volume name doesn't exist");
    414420
    415421Test::Nebulous->setup;
Note: See TracChangeset for help on using the changeset viewer.