IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3016 for trunk/Nebulous/t


Ignore:
Timestamp:
Jan 14, 2005, 6:02:12 PM (22 years ago)
Author:
jhoblitt
Message:

update database scheme for mysql 4.1 syntax

Location:
trunk/Nebulous/t
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/t/09_server_stat_object.t

    r2872 r3016  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 09_server_stat_object.t,v 1.3 2005-01-03 23:55:29 jhoblitt Exp $
     5# $Id: 09_server_stat_object.t,v 1.4 2005-01-15 04:02:12 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 12;
     10use Test::More tests => 13;
    1111
    1212use lib qw( ./t ./lib );
     
    3131    my $info = $idata->stat_object( "foo" );
    3232
    33     is( scalar @$info, 7, "number of columns" );
     33    is( scalar @$info, 8, "number of columns" );
    3434}
    3535
     
    4141    my $info = $idata->stat_object( "foo" );
    4242
    43     is( scalar @$info, 7,                       "number of columns" );
     43    is( scalar @$info, 8,                       "number of columns" );
    4444    is( @$info[0], 1,                           "so_id" );
    4545    is( @$info[1], "foo",                       "ext_id" );
     
    4949    is( @$info[5], undef,                       "write lock" );
    5050    like( @$info[6], qr/....-..-.. ..:..:../,   "epoch" );
     51    like( @$info[6], qr/....-..-.. ..:..:../,   "mtime" );
    5152}
    5253
  • trunk/Nebulous/t/23_client_stat.t

    r2893 r3016  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 23_client_stat.t,v 1.1 2005-01-04 22:02:43 jhoblitt Exp $
     5# $Id: 23_client_stat.t,v 1.2 2005-01-15 04:02:12 jhoblitt Exp $
    66
    77use strict;
     
    1010use Apache::Test qw( -withtestmore );
    1111
    12 plan tests => 12;
     12plan tests => 13;
    1313
    1414use lib qw( ./t ./lib );
     
    3030    my $info = $idata->stat( "foo" );
    3131
    32     is( scalar @$info, 7, "number of columns" );
     32    is( scalar @$info, 8, "number of columns" );
    3333}
    3434
     
    4343    my $info = $idata->stat( "foo" );
    4444
    45     is( scalar @$info, 7,                       "number of columns" );
     45    is( scalar @$info, 8,                       "number of columns" );
    4646    is( @$info[0], 1,                           "so_id" );
    4747    is( @$info[1], "foo",                       "ext_id" );
     
    5151    is( @$info[5], undef,                       "write lock" );
    5252    like( @$info[6], qr/....-..-.. ..:..:../,   "epoch" );
     53    like( @$info[6], qr/....-..-.. ..:..:../,   "mtime" );
    5354}
    5455
  • trunk/Nebulous/t/Test/Nebulous.pm

    r2785 r3016  
    11# Copyright (C) 2004  Joshua Hoblitt
    22#
    3 # $Id: Nebulous.pm,v 1.1.1.1 2004-12-22 02:16:23 jhoblitt Exp $
     3# $Id: Nebulous.pm,v 1.2 2005-01-15 04:02:12 jhoblitt Exp $
    44
    55package Test::IData;
     
    6868    read_lock TINYINT DEFAULT 0 NOT NULL,
    6969    write_lock ENUM( 'write' ),
    70     epoch TIMESTAMP NOT NULL,
     70    epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     71    mtime TIMESTAMP,
    7172    PRIMARY KEY(so_id),
    7273    KEY(ext_id(64)),
     
    7879    ins_id BIGINT NOT NULL AUTO_INCREMENT,
    7980    so_id BIGINT NOT NULL,
    80     uri VARCHAR(255) BINARY NOT NULL UNIQUE,
    81     sha1sum CHAR(40),
     81    uri VARCHAR(255) BINARY NOT NULL,
     82    sha1sum CHAR(40) ASCII,
    8283    assigned_location BOOL,
    83     epoch TIMESTAMP NOT NULL,
    84     atime TIMESTAMP NOT NULL,
     84    epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     85    mtime TIMESTAMP,
    8586    PRIMARY KEY(ins_id),
    8687    KEY(so_id),
Note: See TracChangeset for help on using the changeset viewer.