Changeset 40997 for branches/eam_branches/ipp-20191011
- Timestamp:
- Oct 28, 2019, 4:19:07 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20191011/Nebulous/t/50_client_create.t
r24357 r40997 10 10 use Apache::Test qw( -withtestmore ); 11 11 12 plan tests => 9;12 plan tests => 13; 13 13 14 14 use lib qw( ./t ./lib ); … … 19 19 use URI::Split qw( uri_split ); 20 20 21 # this returns the test apache server location 21 22 my $hostport = Apache::Test->config->{ 'hostport' }; 22 23 … … 30 31 31 32 my $uri = $neb->create("foo"); 33 if (not defined $uri) { die "failure to create basic file (does it already exist?)"; } 34 32 35 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 33 36 ok(-e $path, "good filename"); 37 34 38 uri_scheme_ok($uri, 'file'); 39 40 # need to remove the test entry we made above (create fails if file exists) 41 ok( $neb->delete( "foo" ), "delete object" ); 35 42 } 36 43 … … 48 55 ok(-e $path, "good filename"); 49 56 uri_scheme_ok($uri, 'file'); 57 58 # need to remove the test entry we made above (create fails if file exists) 59 ok( $neb->delete( "foo" ), "delete object" ); 50 60 } 51 61 … … 63 73 ok(-e $path, "good filename"); 64 74 uri_scheme_ok($uri, 'file'); 75 76 # need to remove the test entry we made above (create fails if file exists) 77 ok( $neb->delete( "foo" ), "delete object" ); 65 78 } 66 79 … … 74 87 $neb->create("foo"); 75 88 is($neb->create("foo"), undef, "object already exists"); 89 90 # need to remove the test entry we made above (create fails if file exists) 91 ok( $neb->delete( "foo" ), "delete object" ); 76 92 } 77 93
Note:
See TracChangeset
for help on using the changeset viewer.
