@@ -8,29 +8,28 @@ use MetaCPAN::ES;
88use MetaCPAN::Mapper;
99use MetaCPAN::Ingest qw< home > ;
1010
11- my $es = MetaCPAN::ES-> new();
11+ my $es = MetaCPAN::ES-> new();
12+ ok( $es -> test, ' es is valid' );
13+
1214my $mapper = MetaCPAN::Mapper-> new();
15+ ok( $mapper -> test, ' mapper is valid' );
1316
1417my $home = home();
1518my $d_bin = $home -> child(' bin' );
1619my $d_test = $home -> child(' test_data' );
1720my $d_fakecpan = $d_test -> child(' fakecpan' );
1821my $d_authors = $d_fakecpan -> child(' authors' );
1922my $d_modules = $d_fakecpan -> child(' modules' );
23+ my $d_indices = $d_fakecpan -> child(' indices' );
2024
2125# === Files
2226
23- my @files = qw<
24- 00whois.xml
25- 02packages.details.txt.gz
26- 06perms.txt
27- > ;
28-
2927subtest ' Check Files' => sub {
3028 ok( $d_authors -> child(' 00whois.xml' ), " Found 00whois.xml" );
3129 ok( $d_modules -> child(' 02packages.details.txt.gz' ),
3230 " Found 02packages.details.txt.gz" );
3331 ok( $d_modules -> child(' 06perms.txt' ), " Found 06perms.txt" );
32+ ok( $d_indices -> child(' find-ls.gz' ), " Found find-ls.gz" );
3433};
3534
3635my @packages = qw<
@@ -73,9 +72,10 @@ subtest 'Check Index' => sub {
7372subtest ' Author Indexing' => sub {
7473 my $author_script = $d_bin -> child(' author.pl' );
7574 my $whois_file = $d_authors -> child(' 00whois.xml' );
75+ my $findls_file = $d_indices -> child(' find-ls.gz' );
7676
7777 # run the author indexing script
78- ` perl $author_script -whois_file $whois_file ` ;
78+ ` perl $author_script -whois_file $whois_file -findls_file $findls_file ` ;
7979
8080 my $es_author = MetaCPAN::ES-> new( index => ' author' );
8181 ok( $es_author -> exists ( index => ' author' , id => ' OALDERS' ),
0 commit comments