Changeset 17650
- Timestamp:
- May 12, 2008, 5:55:08 PM (18 years ago)
- Location:
- trunk/Nebulous-Server
- Files:
-
- 3 edited
-
Changes (modified) (1 diff)
-
lib/Nebulous/Server.pm (modified) (3 diffs)
-
t/09_server_stat_object.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r17620 r17650 2 2 3 3 0.10 4 - change Nebulous::Server::stat() to not die when passed a non-existant key 4 5 - change listxattr_object() to return an arrayref 5 6 - change default log level to 'WARN' -
trunk/Nebulous-Server/lib/Nebulous/Server.pm
r17620 r17650 1 1 # Copyright (c) 2004-2008 Joshua Hoblitt 2 2 # 3 # $Id: Server.pm,v 1.6 6 2008-05-10 01:15:13jhoblitt Exp $3 # $Id: Server.pm,v 1.67 2008-05-13 03:55:08 jhoblitt Exp $ 4 4 5 5 package Nebulous::Server; … … 1076 1076 { 1077 1077 type => SCALAR, 1078 callbacks => {1079 'is valid object key' => sub { $self->_is_valid_object_key($_[0]) },1080 },1081 1078 }, 1082 1079 ); … … 1087 1084 1088 1085 $log->debug("entered - @_"); 1086 1087 # does this key exist? 1088 return unless ($self->_is_valid_object_key($key)); 1089 1089 1090 1090 # ignore volume -
trunk/Nebulous-Server/t/09_server_stat_object.t
r17072 r17650 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 09_server_stat_object.t,v 1.1 3 2008-03-20 21:10:14jhoblitt Exp $5 # $Id: 09_server_stat_object.t,v 1.14 2008-05-13 03:55:08 jhoblitt Exp $ 6 6 7 7 use strict; … … 49 49 Test::Nebulous->setup; 50 50 51 eval{52 $neb->stat_object("foo");53 };54 like($@, qr/is valid object key/, "object does not exist"); 51 { 52 my $stat = $neb->stat_object("foo"); 53 is($stat, undef, "object does not exist"); 54 } 55 55 56 56 Test::Nebulous->setup;
Note:
See TracChangeset
for help on using the changeset viewer.
