IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2007, 4:52:04 PM (19 years ago)
Author:
jhoblitt
Message:

remove $class_id & $comment params from Nebulous::Server->create() and Nebulous::Client->create*() and all supporting functions and tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/63_client_stat.t

    r5667 r13092  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 63_client_stat.t,v 1.1 2005-12-03 02:52:31 jhoblitt Exp $
     5# $Id: 63_client_stat.t,v 1.2 2007-05-01 02:52:04 jhoblitt Exp $
    66
    77use strict;
     
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 13;
     12plan tests => 11;
    1313
    1414use lib qw( ./t ./lib );
     
    3030    my $info = $neb->stat( "foo" );
    3131
    32     is( scalar @$info, 8, "number of columns" );
     32    is( scalar @$info, 6, "number of columns" );
    3333}
    3434
     
    3939        proxy => "http://$hostport/nebulous",
    4040    );
    41     $neb->create( "foo", 0, "node01", "foobar" );
     41    $neb->create( "foo", "node01" );
    4242
    4343    my $info = $neb->stat( "foo" );
    4444
    45     is( scalar @$info, 8,                       "number of columns" );
     45    is( scalar @$info, 6,                       "number of columns" );
    4646    is( @$info[0], 1,                           "so_id" );
    4747    is( @$info[1], "foo",                       "ext_id" );
    48     is( @$info[2], 0,                           "class_id" );
    49     is( @$info[3], "foobar",                    "comment" );
    50     is( @$info[4], 0,                           "read lock" );
    51     is( @$info[5], undef,                       "write lock" );
    52     like( @$info[6], qr/....-..-.. ..:..:../,   "epoch" );
    53     like( @$info[6], qr/....-..-.. ..:..:../,   "mtime" );
     48    is( @$info[2], 0,                           "read lock" );
     49    is( @$info[3], undef,                       "write lock" );
     50    like( @$info[4], qr/....-..-.. ..:..:../,   "epoch" );
     51    like( @$info[5], qr/....-..-.. ..:..:../,   "mtime" );
    5452}
    5553
Note: See TracChangeset for help on using the changeset viewer.