Changeset 12960
- Timestamp:
- Apr 23, 2007, 10:42:29 AM (19 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
-
Nebulous-Server/Build.PL (modified) (1 diff)
-
Nebulous-Server/t/03_server_create_object.t (modified) (10 diffs)
-
Nebulous-Server/t/04_server_replicate_object.t (modified) (7 diffs)
-
Nebulous/Build.PL (modified) (1 diff)
-
Nebulous/t/03_server_create_object.t (modified) (10 diffs)
-
Nebulous/t/04_server_replicate_object.t (modified) (7 diffs)
-
Nebulous/t/51_client_create.t (modified) (9 diffs)
-
Nebulous/t/51_client_open_create.t (modified) (9 diffs)
-
Nebulous/t/Test/Nebulous.pm (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Build.PL
r12580 r12960 97 97 'File::Temp' => 0, 98 98 'Test::More' => '0.49', 99 'Test::URI' => '1.06', 99 100 }, 100 101 recommends => { -
trunk/Nebulous-Server/t/03_server_create_object.t
r10546 r12960 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1.1 1 2006-12-08 03:29:19 jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.12 2007-04-23 20:42:29 jhoblitt Exp $ 6 6 7 7 use strict; … … 15 15 use Nebulous::Util qw( :standard ); 16 16 use Test::Nebulous; 17 use Test::URI; 18 use URI::Split qw( uri_split ); 17 19 18 20 my $neb = Nebulous::Server->new( … … 26 28 { 27 29 # key 28 my $uri = $neb->create_object( "foo");30 my $uri = $neb->create_object("foo"); 29 31 30 ok( -e _get_file_path( $uri ), "file exists" ); 31 like( $uri, qr/^file:\//, "valid URI" ); 32 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 33 ok(-e $path, "file exists"); 34 uri_scheme_ok($uri, 'file'); 32 35 } 33 36 … … 36 39 { 37 40 # key, class 38 my $uri = $neb->create_object( "foo", 0);41 my $uri = $neb->create_object("foo", 0); 39 42 40 ok( -e _get_file_path( $uri ), "file exists" ); 41 like( $uri, qr/^file:\//, "valid URI" ); 43 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 44 ok(-e $path, "file exists"); 45 uri_scheme_ok($uri, 'file'); 42 46 } 43 47 … … 46 50 { 47 51 # key, class, volume 48 my $uri = $neb->create_object( "foo", 0, "node01");52 my $uri = $neb->create_object("foo", 0, "node01"); 49 53 50 ok( -e _get_file_path( $uri ), "file exists" ); 51 like( $uri, qr/^file:\//, "valid URI" ); 54 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 55 ok(-e $path, "file exists"); 56 uri_scheme_ok($uri, 'file'); 52 57 } 53 58 … … 56 61 { 57 62 # key, class, volume, comment 58 my $uri = $neb->create_object( "foo", 0, "node01", "this is foo");63 my $uri = $neb->create_object("foo", 0, "node01", "this is foo"); 59 64 60 ok( -e _get_file_path( $uri ), "file exists" ); 61 like( $uri, qr/^file:\//, "valid URI" ); 65 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 66 ok(-e $path, "file exists"); 67 uri_scheme_ok($uri, 'file'); 62 68 } 63 69 … … 65 71 66 72 eval { 67 $neb->create_object( "foo");68 $neb->create_object( "foo");73 $neb->create_object("foo"); 74 $neb->create_object("foo"); 69 75 }; 70 like( $@, qr/Duplicate entry/, "object already exists");76 like($@, qr/Duplicate entry/, "object already exists"); 71 77 72 78 Test::Nebulous->setup; 73 79 74 80 { 75 my $uri = $neb->create_object( "foo", 1);81 my $uri = $neb->create_object("foo", 1); 76 82 77 ok( -e _get_file_path( $uri ), "class exists" ); 83 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 84 ok(-e $path, "class exists"); 78 85 } 79 86 … … 81 88 82 89 eval { 83 $neb->create_object( "foo", 99);90 $neb->create_object("foo", 99); 84 91 }; 85 like( $@, qr/did not pass the \'is valid class id\'/, "class doesn't exist");92 like($@, qr/did not pass the \'is valid class id\'/, "class doesn't exist"); 86 93 87 94 Test::Nebulous->setup; 88 95 89 96 eval { 90 $neb->create_object( 1, 0, 'node01', 'x' x 256);97 $neb->create_object(1, 0, 'node01', 'x' x 256); 91 98 }; 92 like( $@, qr/comment length/, "comment is too long");99 like($@, qr/comment length/, "comment is too long"); 93 100 94 101 Test::Nebulous->setup; … … 97 104 $neb->create_object(); 98 105 }; 99 like( $@, qr/2 - 4 were expected/, "no params");106 like($@, qr/2 - 4 were expected/, "no params"); 100 107 101 108 Test::Nebulous->setup; … … 104 111 $neb->create_object( 1, 0, 'node01', 1, 1 ); 105 112 }; 106 like( $@, qr/2 - 4 were expected/, "too many params");113 like($@, qr/2 - 4 were expected/, "too many params"); 107 114 108 115 Test::Nebulous->cleanup; -
trunk/Nebulous-Server/t/04_server_replicate_object.t
r10546 r12960 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 04_server_replicate_object.t,v 1. 6 2006-12-08 03:29:19 jhoblitt Exp $5 # $Id: 04_server_replicate_object.t,v 1.7 2007-04-23 20:42:29 jhoblitt Exp $ 6 6 7 7 use strict; … … 15 15 use Nebulous::Util qw( :standard ); 16 16 use Test::Nebulous; 17 use Test::URI; 18 use URI::Split qw( uri_split ); 17 19 18 20 my $neb = Nebulous::Server->new( … … 26 28 { 27 29 # key 28 $neb->create_object( "foo");29 my $uri = $neb->replicate_object( "foo");30 $neb->create_object("foo"); 31 my $uri = $neb->replicate_object("foo"); 30 32 31 ok( -e _get_file_path( $uri ), "file exists" ); 32 like( $uri, qr/^file:\//, "valid URI" ); 33 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 34 ok(-e $path, "file exists"); 35 uri_scheme_ok($uri, 'file'); 33 36 } 34 37 … … 37 40 { 38 41 # key, $volume 39 $neb->create_object( "foo");40 my $uri = $neb->replicate_object( "foo", "node01");42 $neb->create_object("foo"); 43 my $uri = $neb->replicate_object("foo", "node01"); 41 44 42 ok( -e _get_file_path( $uri ), "file exists" ); 43 like( $uri, qr/^file:\//, "valid URI" ); 45 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 46 ok(-e $path, "file exists"); 47 uri_scheme_ok($uri, 'file'); 44 48 } 45 49 … … 48 52 { 49 53 # key, $volume 50 $neb->create_object( "foo");51 my $uri1 = $neb->replicate_object( "foo", "node01");52 my $uri2 = $neb->replicate_object( "foo", "node02");54 $neb->create_object("foo"); 55 my $uri1 = $neb->replicate_object("foo", "node01"); 56 my $uri2 = $neb->replicate_object("foo", "node02"); 53 57 54 ok( -e _get_file_path( $uri1 ), "file exists" ); 55 ok( -e _get_file_path( $uri2 ), "file exists" ); 56 like( $uri1, qr/^file:\//, "valid URI" ); 57 like( $uri2, qr/^file:\//, "valid URI" ); 58 { 59 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri1); 60 ok(-e $path, "file exists"); 61 uri_scheme_ok($uri1, 'file'); 62 } 63 64 { 65 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri2); 66 ok(-e $path, "file exists"); 67 uri_scheme_ok($uri2, 'file'); 68 } 58 69 } 59 70 … … 61 72 62 73 eval { 63 $neb->replicate_object( "foo");74 $neb->replicate_object("foo"); 64 75 }; 65 like( $@, qr/storage object does not exist/, "storage object does not exist");76 like($@, qr/storage object does not exist/, "storage object does not exist"); 66 77 67 78 Test::Nebulous->setup; … … 70 81 $neb->replicate_object(); 71 82 }; 72 like( $@, qr/1 - 2 were expected/, "no params");83 like($@, qr/1 - 2 were expected/, "no params"); 73 84 74 85 Test::Nebulous->setup; 75 86 76 87 eval { 77 $neb->replicate_object( 1, 2, 3);88 $neb->replicate_object(1, 2, 3); 78 89 }; 79 like( $@, qr/1 - 2 were expected/, "too many params");90 like($@, qr/1 - 2 were expected/, "too many params"); 80 91 81 92 Test::Nebulous->cleanup; -
trunk/Nebulous/Build.PL
r12580 r12960 97 97 'File::Temp' => 0, 98 98 'Test::More' => '0.49', 99 'Test::URI' => '1.06', 99 100 }, 100 101 recommends => { -
trunk/Nebulous/t/03_server_create_object.t
r10546 r12960 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 03_server_create_object.t,v 1.1 1 2006-12-08 03:29:19 jhoblitt Exp $5 # $Id: 03_server_create_object.t,v 1.12 2007-04-23 20:42:29 jhoblitt Exp $ 6 6 7 7 use strict; … … 15 15 use Nebulous::Util qw( :standard ); 16 16 use Test::Nebulous; 17 use Test::URI; 18 use URI::Split qw( uri_split ); 17 19 18 20 my $neb = Nebulous::Server->new( … … 26 28 { 27 29 # key 28 my $uri = $neb->create_object( "foo");30 my $uri = $neb->create_object("foo"); 29 31 30 ok( -e _get_file_path( $uri ), "file exists" ); 31 like( $uri, qr/^file:\//, "valid URI" ); 32 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 33 ok(-e $path, "file exists"); 34 uri_scheme_ok($uri, 'file'); 32 35 } 33 36 … … 36 39 { 37 40 # key, class 38 my $uri = $neb->create_object( "foo", 0);41 my $uri = $neb->create_object("foo", 0); 39 42 40 ok( -e _get_file_path( $uri ), "file exists" ); 41 like( $uri, qr/^file:\//, "valid URI" ); 43 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 44 ok(-e $path, "file exists"); 45 uri_scheme_ok($uri, 'file'); 42 46 } 43 47 … … 46 50 { 47 51 # key, class, volume 48 my $uri = $neb->create_object( "foo", 0, "node01");52 my $uri = $neb->create_object("foo", 0, "node01"); 49 53 50 ok( -e _get_file_path( $uri ), "file exists" ); 51 like( $uri, qr/^file:\//, "valid URI" ); 54 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 55 ok(-e $path, "file exists"); 56 uri_scheme_ok($uri, 'file'); 52 57 } 53 58 … … 56 61 { 57 62 # key, class, volume, comment 58 my $uri = $neb->create_object( "foo", 0, "node01", "this is foo");63 my $uri = $neb->create_object("foo", 0, "node01", "this is foo"); 59 64 60 ok( -e _get_file_path( $uri ), "file exists" ); 61 like( $uri, qr/^file:\//, "valid URI" ); 65 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 66 ok(-e $path, "file exists"); 67 uri_scheme_ok($uri, 'file'); 62 68 } 63 69 … … 65 71 66 72 eval { 67 $neb->create_object( "foo");68 $neb->create_object( "foo");73 $neb->create_object("foo"); 74 $neb->create_object("foo"); 69 75 }; 70 like( $@, qr/Duplicate entry/, "object already exists");76 like($@, qr/Duplicate entry/, "object already exists"); 71 77 72 78 Test::Nebulous->setup; 73 79 74 80 { 75 my $uri = $neb->create_object( "foo", 1);81 my $uri = $neb->create_object("foo", 1); 76 82 77 ok( -e _get_file_path( $uri ), "class exists" ); 83 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 84 ok(-e $path, "class exists"); 78 85 } 79 86 … … 81 88 82 89 eval { 83 $neb->create_object( "foo", 99);90 $neb->create_object("foo", 99); 84 91 }; 85 like( $@, qr/did not pass the \'is valid class id\'/, "class doesn't exist");92 like($@, qr/did not pass the \'is valid class id\'/, "class doesn't exist"); 86 93 87 94 Test::Nebulous->setup; 88 95 89 96 eval { 90 $neb->create_object( 1, 0, 'node01', 'x' x 256);97 $neb->create_object(1, 0, 'node01', 'x' x 256); 91 98 }; 92 like( $@, qr/comment length/, "comment is too long");99 like($@, qr/comment length/, "comment is too long"); 93 100 94 101 Test::Nebulous->setup; … … 97 104 $neb->create_object(); 98 105 }; 99 like( $@, qr/2 - 4 were expected/, "no params");106 like($@, qr/2 - 4 were expected/, "no params"); 100 107 101 108 Test::Nebulous->setup; … … 104 111 $neb->create_object( 1, 0, 'node01', 1, 1 ); 105 112 }; 106 like( $@, qr/2 - 4 were expected/, "too many params");113 like($@, qr/2 - 4 were expected/, "too many params"); 107 114 108 115 Test::Nebulous->cleanup; -
trunk/Nebulous/t/04_server_replicate_object.t
r10546 r12960 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 04_server_replicate_object.t,v 1. 6 2006-12-08 03:29:19 jhoblitt Exp $5 # $Id: 04_server_replicate_object.t,v 1.7 2007-04-23 20:42:29 jhoblitt Exp $ 6 6 7 7 use strict; … … 15 15 use Nebulous::Util qw( :standard ); 16 16 use Test::Nebulous; 17 use Test::URI; 18 use URI::Split qw( uri_split ); 17 19 18 20 my $neb = Nebulous::Server->new( … … 26 28 { 27 29 # key 28 $neb->create_object( "foo");29 my $uri = $neb->replicate_object( "foo");30 $neb->create_object("foo"); 31 my $uri = $neb->replicate_object("foo"); 30 32 31 ok( -e _get_file_path( $uri ), "file exists" ); 32 like( $uri, qr/^file:\//, "valid URI" ); 33 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 34 ok(-e $path, "file exists"); 35 uri_scheme_ok($uri, 'file'); 33 36 } 34 37 … … 37 40 { 38 41 # key, $volume 39 $neb->create_object( "foo");40 my $uri = $neb->replicate_object( "foo", "node01");42 $neb->create_object("foo"); 43 my $uri = $neb->replicate_object("foo", "node01"); 41 44 42 ok( -e _get_file_path( $uri ), "file exists" ); 43 like( $uri, qr/^file:\//, "valid URI" ); 45 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 46 ok(-e $path, "file exists"); 47 uri_scheme_ok($uri, 'file'); 44 48 } 45 49 … … 48 52 { 49 53 # key, $volume 50 $neb->create_object( "foo");51 my $uri1 = $neb->replicate_object( "foo", "node01");52 my $uri2 = $neb->replicate_object( "foo", "node02");54 $neb->create_object("foo"); 55 my $uri1 = $neb->replicate_object("foo", "node01"); 56 my $uri2 = $neb->replicate_object("foo", "node02"); 53 57 54 ok( -e _get_file_path( $uri1 ), "file exists" ); 55 ok( -e _get_file_path( $uri2 ), "file exists" ); 56 like( $uri1, qr/^file:\//, "valid URI" ); 57 like( $uri2, qr/^file:\//, "valid URI" ); 58 { 59 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri1); 60 ok(-e $path, "file exists"); 61 uri_scheme_ok($uri1, 'file'); 62 } 63 64 { 65 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri2); 66 ok(-e $path, "file exists"); 67 uri_scheme_ok($uri2, 'file'); 68 } 58 69 } 59 70 … … 61 72 62 73 eval { 63 $neb->replicate_object( "foo");74 $neb->replicate_object("foo"); 64 75 }; 65 like( $@, qr/storage object does not exist/, "storage object does not exist");76 like($@, qr/storage object does not exist/, "storage object does not exist"); 66 77 67 78 Test::Nebulous->setup; … … 70 81 $neb->replicate_object(); 71 82 }; 72 like( $@, qr/1 - 2 were expected/, "no params");83 like($@, qr/1 - 2 were expected/, "no params"); 73 84 74 85 Test::Nebulous->setup; 75 86 76 87 eval { 77 $neb->replicate_object( 1, 2, 3);88 $neb->replicate_object(1, 2, 3); 78 89 }; 79 like( $@, qr/1 - 2 were expected/, "too many params");90 like($@, qr/1 - 2 were expected/, "too many params"); 80 91 81 92 Test::Nebulous->cleanup; -
trunk/Nebulous/t/51_client_create.t
r5667 r12960 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 51_client_create.t,v 1. 1 2005-12-03 02:52:31jhoblitt Exp $5 # $Id: 51_client_create.t,v 1.2 2007-04-23 20:42:29 jhoblitt Exp $ 6 6 7 7 use strict; … … 10 10 use Apache::Test qw( -withtestmore ); 11 11 12 plan tests => 7;12 plan tests => 11; 13 13 14 14 use lib qw( ./t ./lib ); 15 15 16 #use Nebulous::Client trace => 'debug'; 16 17 use Nebulous::Client; 17 use Nebulous::Util qw( :standard );18 18 use Test::Nebulous; 19 use Test::URI; 20 use URI::Split qw( uri_split ); 19 21 20 22 my $hostport = Apache::Test->config->{ 'hostport' }; … … 28 30 ); 29 31 30 my $ filename = $neb->create( "foo");32 my $uri = $neb->create("foo"); 31 33 32 ok( -e $filename, "good filename" ); 34 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 35 ok(-e $path, "good filename"); 36 uri_scheme_ok($uri, 'file'); 33 37 } 34 38 … … 41 45 ); 42 46 43 my $ filename = $neb->create( "foo", 0);47 my $uri = $neb->create("foo", 0); 44 48 45 ok( -e $filename, "good filename" ); 49 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 50 ok(-e $path, "good filename"); 51 uri_scheme_ok($uri, 'file'); 46 52 } 47 53 … … 54 60 ); 55 61 56 my $ filename = $neb->create( "foo", 0, "node01");62 my $uri = $neb->create("foo", 0, "node01"); 57 63 58 ok( -e $filename, "good filename" ); 64 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 65 ok(-e $path, "good filename"); 66 uri_scheme_ok($uri, 'file'); 59 67 } 60 68 … … 67 75 ); 68 76 69 my $ filename = $neb->create( "foo", 0, "node01", "this is foo");77 my $uri = $neb->create("foo", 0, "node01", "this is foo"); 70 78 71 ok( -e $filename, "good filename" ); 79 my ($scheme, $auth, $path, $query, $frag) = uri_split($uri); 80 ok(-e $path, "good filename"); 81 uri_scheme_ok($uri, 'file'); 72 82 } 73 83 … … 79 89 ); 80 90 81 $neb->create( "foo");82 is( $neb->create( "foo" ), undef, "object already exists");91 $neb->create("foo"); 92 is($neb->create("foo"), undef, "object already exists"); 83 93 } 84 94 … … 92 102 $neb->create(); 93 103 }; 94 like( $@, qr/2 - 4 were expected/, "no params");104 like($@, qr/2 - 4 were expected/, "no params"); 95 105 96 106 Test::Nebulous->setup; … … 101 111 ); 102 112 103 $neb->create( 1, 2, 3, 4, 5);113 $neb->create(1, 2, 3, 4, 5); 104 114 }; 105 like( $@, qr/2 - 4 were expected/, "too many params");115 like($@, qr/2 - 4 were expected/, "too many params"); 106 116 107 117 Test::Nebulous->cleanup; -
trunk/Nebulous/t/51_client_open_create.t
r5667 r12960 3 3 # Copryight (C) 2004-2005 Joshua Hoblitt 4 4 # 5 # $Id: 51_client_open_create.t,v 1. 1 2005-12-03 02:52:31jhoblitt Exp $5 # $Id: 51_client_open_create.t,v 1.2 2007-04-23 20:42:29 jhoblitt Exp $ 6 6 7 7 use strict; … … 14 14 use lib qw( ./t ./lib ); 15 15 16 #use Nebulous::Client trace => 'debug'; 16 17 use Nebulous::Client; 17 use Nebulous::Util qw( :standard );18 18 use Test::Nebulous; 19 19 … … 28 28 ); 29 29 30 my $fh = $neb->open_create( "foo");30 my $fh = $neb->open_create("foo"); 31 31 32 is( ref $fh, 'GLOB', "good filehandle");32 is(ref $fh, 'GLOB', "good filehandle"); 33 33 } 34 34 … … 43 43 my $fh = $neb->open_create( "foo", 0 ); 44 44 45 is( ref $fh, 'GLOB', "good filehandle");45 is(ref $fh, 'GLOB', "good filehandle"); 46 46 } 47 47 … … 54 54 ); 55 55 56 my $fh = $neb->open_create( "foo", 0, "node01");56 my $fh = $neb->open_create("foo", 0, "node01"); 57 57 58 is( ref $fh, 'GLOB', "good filehandle");58 is(ref $fh, 'GLOB', "good filehandle"); 59 59 } 60 60 … … 67 67 ); 68 68 69 my $fh = $neb->open_create( "foo", 0, "node01", "this is foo");69 my $fh = $neb->open_create("foo", 0, "node01", "this is foo"); 70 70 71 is( ref $fh, 'GLOB', "good filehandle");71 is(ref $fh, 'GLOB', "good filehandle"); 72 72 } 73 73 … … 79 79 ); 80 80 81 $neb->open_create( "foo");82 is( $neb->open_create( "foo" ), undef, "object already exists");81 $neb->open_create("foo"); 82 is($neb->open_create("foo"), undef, "object already exists"); 83 83 } 84 84 … … 92 92 $neb->open_create(); 93 93 }; 94 like( $@, qr/2 - 4 were expected/, "no params");94 like($@, qr/2 - 4 were expected/, "no params"); 95 95 96 96 Test::Nebulous->setup; … … 101 101 ); 102 102 103 $neb->open_create( 1, 2, 3, 4, 5);103 $neb->open_create(1, 2, 3, 4, 5); 104 104 }; 105 like( $@, qr/2 - 4 were expected/, "too many params");105 like($@, qr/2 - 4 were expected/, "too many params"); 106 106 107 107 Test::Nebulous->cleanup; -
trunk/Nebulous/t/Test/Nebulous.pm
r5497 r12960 1 1 # Copyright (C) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Nebulous.pm,v 1. 8 2005-11-10 21:30:32jhoblitt Exp $3 # $Id: Nebulous.pm,v 1.9 2007-04-23 20:42:29 jhoblitt Exp $ 4 4 5 5 package Test::Nebulous; … … 37 37 38 38 # FIXME 39 $dbh->do( qq{ INSERT INTO volume VALUES (1,'node01',?) }, undef, 'file:' . $dir1);40 $dbh->do( qq{ INSERT INTO volume VALUES (2,'node02',?) }, undef, 'file:' . $dir2);39 $dbh->do(qq{ INSERT INTO volume VALUES (1,'node01',?) }, undef, $dir1); 40 $dbh->do(qq{ INSERT INTO mount VALUES (?, 10e10, 10e7) }, undef, $dir1); 41 41 42 $dbh->do( qq{ INSERT INTO class VALUES (0, 0, "regular data") } ); 43 $dbh->do( qq{ INSERT INTO class VALUES (1, 1, "special data") } ); 42 $dbh->do(qq{ INSERT INTO volume VALUES (2,'node02',?) }, undef, $dir2); 43 $dbh->do(qq{ INSERT INTO mount VALUES (?, 10e10, 10e10) }, undef, $dir2); 44 45 $dbh->do(qq{ INSERT INTO class VALUES (0, 0, "regular data") }); 46 $dbh->do(qq{ INSERT INTO class VALUES (1, 1, "special data") }); 44 47 } 45 48
Note:
See TracChangeset
for help on using the changeset viewer.
