IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 9, 2008, 2:20:02 PM (18 years ago)
Author:
jhoblitt
Message:

more any volume tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/t/04_server_replicate_object.t

    r17539 r18452  
    33# Copryight (C) 2004-2005  Joshua Hoblitt
    44#
    5 # $Id: 04_server_replicate_object.t,v 1.13 2008-05-06 22:10:58 jhoblitt Exp $
     5# $Id: 04_server_replicate_object.t,v 1.14 2008-07-10 00:20:02 jhoblitt Exp $
    66
    77use strict;
    88use warnings FATAL => qw( all );
    99
    10 use Test::More tests => 19;
     10use Test::More tests => 25;
    1111
    1212use lib qw( ./t ./lib );
     
    110110Test::Nebulous->setup;
    111111
     112{
     113    # key, $volume
     114    $neb->create_object("foo");
     115    my $uri1 = $neb->replicate_object("foo", "any");
     116
     117    {
     118        my ($scheme, $auth, $path, $query, $frag) = uri_split($uri1);
     119        ok(-e $path, "file exists");
     120        uri_scheme_ok($uri1, 'file');
     121
     122SKIP: {
     123    skip "requires xattr support", 1 unless $test_xattr;
     124        is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
     125}
     126    }
     127}
     128
     129Test::Nebulous->setup;
     130
     131{
     132    # key, $volume
     133    $neb->create_object("foo");
     134    my $uri1 = $neb->replicate_object("foo", "~any");
     135
     136    {
     137        my ($scheme, $auth, $path, $query, $frag) = uri_split($uri1);
     138        ok(-e $path, "file exists");
     139        uri_scheme_ok($uri1, 'file');
     140
     141SKIP: {
     142    skip "requires xattr support", 1 unless $test_xattr;
     143        is(getfattr($path, 'user.nebulous_key'), 'foo', 'user.nebulous_key xattr');
     144}
     145    }
     146}
     147
     148Test::Nebulous->setup;
     149
    112150eval {
    113151    $neb->replicate_object('foo');
Note: See TracChangeset for help on using the changeset viewer.