Skip to content

Commit 835fec3

Browse files
committed
Added river test
1 parent 8fd475b commit 835fec3

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

t/00_setup.t

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,18 @@ subtest 'Cover Indexing' => sub {
147147
"Found cover data for HTML-Parser-3.83" );
148148
};
149149

150+
subtest 'River Indexing' => sub {
151+
my $river_script = $d_bin->child('river.pl');
152+
my $river_file = $d_test->child('river-of-cpan.json');
153+
154+
# run the river indexing script
155+
`perl $river_script -json $river_file`;
156+
157+
my $es_distribution = MetaCPAN::ES->new( index => 'distribution' );
158+
my $dist = $es_distribution->get( id => 'HTML-Parser' );
159+
ok( exists $dist->{_source}{river}, "Found River entry" );
160+
};
161+
150162
subtest 'Contributor Indexing' => sub {
151163
my $contributor_script = $d_bin->child('contributor.pl');
152164

0 commit comments

Comments
 (0)