Changeset 41045
- Timestamp:
- Nov 5, 2019, 8:05:47 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20191011/Nebulous/t/56_client_find_instances.t
r41009 r41045 152 152 ); 153 153 $neb->create( "foo" ); 154 $neb->set_log_level ('DEBUG'); 154 155 155 156 my $locations = $neb->find_instances( "foo", undef ); … … 185 186 ); 186 187 $neb->create( "foo", "~node01" ); 188 $neb->set_log_level ('DEBUG'); 187 189 188 190 my $locations = $neb->find_instances( "neb://node01/foo", "~node02" ); … … 204 206 ); 205 207 $neb->create( "foo", "~node01" ); 208 $neb->set_log_level ('DEBUG'); 206 209 207 210 my $locations = $neb->find_instances( "neb://node01/foo", "~nobody" ); 208 209 is( scalar @$locations, 0, "found 0" ); 210 # like( @$locations[0], qr/file:/, "URIs match" ); 211 # ok( -e _get_file_path( @$locations[0] ), "URI matches file" ); 212 213 # the API used to return undef if we used a hard_volume but it was not there 214 # is($locations, undef, "no instances on specified volume" ); 211 is($locations, undef, "no instances on specified volume" ); 212 # is( scalar @$locations, 0, "found 0" ); 213 # under Ubuntu (Perl 5.26.1), @$locations evaluates to 0 if $locations is undef, 214 # but not under Gentoo (Perl 5.6.6) 215 215 } 216 216 … … 224 224 ); 225 225 $neb->create( "foo", "~node01" ); 226 $neb->set_log_level ('DEBUG'); 226 227 227 228 my $locations = $neb->find_instances( "neb://node01/foo", "~node04" );
Note:
See TracChangeset
for help on using the changeset viewer.
