Changeset 18452 for trunk/Nebulous-Server/t/04_server_replicate_object.t
- Timestamp:
- Jul 9, 2008, 2:20:02 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/t/04_server_replicate_object.t
r17539 r18452 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 04_server_replicate_object.t,v 1.1 3 2008-05-06 22:10:58jhoblitt Exp $5 # $Id: 04_server_replicate_object.t,v 1.14 2008-07-10 00:20:02 jhoblitt Exp $ 6 6 7 7 use strict; 8 8 use warnings FATAL => qw( all ); 9 9 10 use Test::More tests => 19;10 use Test::More tests => 25; 11 11 12 12 use lib qw( ./t ./lib ); … … 110 110 Test::Nebulous->setup; 111 111 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 122 SKIP: { 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 129 Test::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 141 SKIP: { 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 148 Test::Nebulous->setup; 149 112 150 eval { 113 151 $neb->replicate_object('foo');
Note:
See TracChangeset
for help on using the changeset viewer.
