We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae3144e commit f0fb759Copy full SHA for f0fb759
lib/MetaCPAN/Ingest.pm
@@ -107,7 +107,7 @@ sub author_dir ($pauseid) {
107
108
sub cpan_dir () {
109
my $config = config();
110
- my $cpan = $config->{cpan};
+ my $cpan = $ENV{INGEST_TEST} ? $config->{cpan_test} : $config->{cpan};
111
112
return path($cpan) if -d $cpan;
113
die
metacpan_ingest.conf
@@ -1,6 +1,7 @@
1
log4perl_file log4perl.conf
2
3
cpan /CPAN
4
+cpan_test test_data/fakecpan/
5
6
es_node "elasticsearch:9200"
7
t/00_setup.t
@@ -8,6 +8,8 @@ use MetaCPAN::ES;
8
use MetaCPAN::Mapper;
9
use MetaCPAN::Ingest qw< home >;
10
11
+$ENV{INGEST_TEST} = 1;
12
+
13
my $es = MetaCPAN::ES->new();
14
ok( $es->test, 'es is valid' );
15
0 commit comments