IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13273


Ignore:
Timestamp:
May 4, 2007, 4:25:09 PM (19 years ago)
Author:
jhoblitt
Message:

add/fix xattr tests

Location:
trunk
Files:
4 edited

Legend:

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

    r13269 r13273  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.18 2007-05-05 01:41:29 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.19 2007-05-05 02:25:09 jhoblitt Exp $
    66
    77use strict;
     
    1212use lib qw( ./t ./lib );
    1313
     14use File::ExtAttr qw( getfattr );
    1415use Nebulous::Server;
    1516use Nebulous::Util qw( :standard );
     
    1718use Test::URI;
    1819use URI::Split qw( uri_split );
    19 use File::ExtAttr qw( getfattr );
    2020
    2121my $neb = Nebulous::Server->new(
     
    3535    uri_scheme_ok($uri, 'file');
    3636
    37     is(getfattr($path, 'nebulous_key'), 'foo', 'nebulous_key xattr');
     37    is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    3838}
    3939
     
    4848    uri_scheme_ok($uri, 'file');
    4949
    50     is(getfattr($path, 'nebulous_key'), '/foo', 'nebulous_key xattr');
     50    is(getfattr($path, 'user.nebulous_key'), '/foo', 'user.nebulous_key xattr');
    5151}
    5252
     
    6161    uri_scheme_ok($uri, 'file');
    6262
    63     is(getfattr($path, 'nebulous_key'), '/foo/', 'nebulous_key xattr');
     63    is(getfattr($path, 'user.nebulous_key'), '/foo/', 'user.nebulous_key xattr');
    6464}
    6565
     
    7474    uri_scheme_ok($uri, 'file');
    7575
    76     is(getfattr($path, 'nebulous_key'), 'foo/', 'nebulous_key xattr');
     76    is(getfattr($path, 'user.nebulous_key'), 'foo/', 'user.nebulous_key xattr');
    7777}
    7878
     
    8787    uri_scheme_ok($uri, 'file');
    8888
    89     is(getfattr($path, 'nebulous_key'), 'foo/bar', 'nebulous_key xattr');
     89    is(getfattr($path, 'user.nebulous_key'), 'foo/bar', 'user.nebulous_key xattr');
    9090}
    9191
     
    100100    uri_scheme_ok($uri, 'file');
    101101
    102     is(getfattr($path, 'nebulous_key'), '/foo/bar', 'nebulous_key xattr');
     102    is(getfattr($path, 'user.nebulous_key'), '/foo/bar', 'user.nebulous_key xattr');
    103103}
    104104
  • trunk/Nebulous-Server/t/04_server_replicate_object.t

    r13173 r13273  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 04_server_replicate_object.t,v 1.8 2007-05-03 01:44:24 jhoblitt Exp $
     5# $Id: 04_server_replicate_object.t,v 1.9 2007-05-05 02:25:09 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 12;
     10use Test::More tests => 16;
    1111
    1212use lib qw( ./t ./lib );
    1313
     14use File::ExtAttr qw( getfattr );
    1415use Nebulous::Server;
    1516use Nebulous::Util qw( :standard );
     
    3435    ok(-e $path, "file exists");
    3536    uri_scheme_ok($uri, 'file');
     37
     38    is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    3639}
    3740
     
    4649    ok(-e $path, "file exists");
    4750    uri_scheme_ok($uri, 'file');
     51
     52    is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    4853}
    4954
     
    6065        ok(-e $path, "file exists");
    6166        uri_scheme_ok($uri1, 'file');
     67
     68        is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    6269    }
    6370
     
    6673        ok(-e $path, "file exists");
    6774        uri_scheme_ok($uri2, 'file');
     75
     76        is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    6877    }
    6978}
  • trunk/Nebulous/t/03_server_create_object.t

    r13269 r13273  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 03_server_create_object.t,v 1.18 2007-05-05 01:41:29 jhoblitt Exp $
     5# $Id: 03_server_create_object.t,v 1.19 2007-05-05 02:25:09 jhoblitt Exp $
    66
    77use strict;
     
    1212use lib qw( ./t ./lib );
    1313
     14use File::ExtAttr qw( getfattr );
    1415use Nebulous::Server;
    1516use Nebulous::Util qw( :standard );
     
    1718use Test::URI;
    1819use URI::Split qw( uri_split );
    19 use File::ExtAttr qw( getfattr );
    2020
    2121my $neb = Nebulous::Server->new(
     
    3535    uri_scheme_ok($uri, 'file');
    3636
    37     is(getfattr($path, 'nebulous_key'), 'foo', 'nebulous_key xattr');
     37    is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    3838}
    3939
     
    4848    uri_scheme_ok($uri, 'file');
    4949
    50     is(getfattr($path, 'nebulous_key'), '/foo', 'nebulous_key xattr');
     50    is(getfattr($path, 'user.nebulous_key'), '/foo', 'user.nebulous_key xattr');
    5151}
    5252
     
    6161    uri_scheme_ok($uri, 'file');
    6262
    63     is(getfattr($path, 'nebulous_key'), '/foo/', 'nebulous_key xattr');
     63    is(getfattr($path, 'user.nebulous_key'), '/foo/', 'user.nebulous_key xattr');
    6464}
    6565
     
    7474    uri_scheme_ok($uri, 'file');
    7575
    76     is(getfattr($path, 'nebulous_key'), 'foo/', 'nebulous_key xattr');
     76    is(getfattr($path, 'user.nebulous_key'), 'foo/', 'user.nebulous_key xattr');
    7777}
    7878
     
    8787    uri_scheme_ok($uri, 'file');
    8888
    89     is(getfattr($path, 'nebulous_key'), 'foo/bar', 'nebulous_key xattr');
     89    is(getfattr($path, 'user.nebulous_key'), 'foo/bar', 'user.nebulous_key xattr');
    9090}
    9191
     
    100100    uri_scheme_ok($uri, 'file');
    101101
    102     is(getfattr($path, 'nebulous_key'), '/foo/bar', 'nebulous_key xattr');
     102    is(getfattr($path, 'user.nebulous_key'), '/foo/bar', 'user.nebulous_key xattr');
    103103}
    104104
  • trunk/Nebulous/t/04_server_replicate_object.t

    r13173 r13273  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 04_server_replicate_object.t,v 1.8 2007-05-03 01:44:24 jhoblitt Exp $
     5# $Id: 04_server_replicate_object.t,v 1.9 2007-05-05 02:25:09 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 12;
     10use Test::More tests => 16;
    1111
    1212use lib qw( ./t ./lib );
    1313
     14use File::ExtAttr qw( getfattr );
    1415use Nebulous::Server;
    1516use Nebulous::Util qw( :standard );
     
    3435    ok(-e $path, "file exists");
    3536    uri_scheme_ok($uri, 'file');
     37
     38    is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    3639}
    3740
     
    4649    ok(-e $path, "file exists");
    4750    uri_scheme_ok($uri, 'file');
     51
     52    is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    4853}
    4954
     
    6065        ok(-e $path, "file exists");
    6166        uri_scheme_ok($uri1, 'file');
     67
     68        is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    6269    }
    6370
     
    6673        ok(-e $path, "file exists");
    6774        uri_scheme_ok($uri2, 'file');
     75
     76        is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
    6877    }
    6978}
Note: See TracChangeset for help on using the changeset viewer.