--- trunk/t/5_Node.t 2006/01/05 15:38:34 32 +++ trunk/t/5_Node.t 2006/01/05 22:16:21 37 @@ -3,12 +3,15 @@ use strict; use blib; -use Test::More tests => 10; +use Test::More tests => 12; use Test::Exception; use Data::Dumper; BEGIN { use_ok('Search::Estraier') }; +# name of node for test +my $test_node = 'Search-Estraier'; + ok(my $node = new Search::Estraier::Node, 'new'); isa_ok($node, 'Search::Estraier::Node'); @@ -23,3 +26,22 @@ ok($node->set_auth('foo','bar'), 'set_auth'); cmp_ok($node->status, '==', -1, 'status'); + +my $nodelist; +foreach my $url (qw{?action=nodelist http://localhost/master_ui?action=nodelist}) { + cmp_ok( + $node->shuttle_url( $url, 'text/plain', undef, \$nodelist) + ,'==', 200, 'nodelist'); +} + +my $draft = <<'_END_OF_DRAFT_'; +@uri=data001 +@title=Material Girl + +Living in a material world +And I am a material girl +You know that we are living in a material world +And I am a material girl +_END_OF_DRAFT_ + +diag "draft:\n$draft";