Permalink
Browse files

abstracted base AWS attributes into test config file

  • Loading branch information...
1 parent 0a7c89e commit 2d8786032068dfbf9ea5efeab1bed4a19954714b @barbie committed Nov 14, 2012
Showing with 12 additions and 6 deletions.
  1. +9 −2 t/12generate.t
  2. +3 −4 t/test-config.ini
View
@@ -31,11 +31,18 @@ my $TESTS = 71;
# Test Conditions
BEGIN {
+ # load config file
+ my $cfg = Config::IniFiles->new( -file => $config );
+
+ # configure databases
+ my $bucket = $cfg->val('MAIN','aws_bucket');
+ my $namespace = $cfg->val('MAIN','aws_namespace');
+
my $meta;
eval {
$meta = CPAN::Testers::Metabase::AWS->new(
- bucket => 'cpantesters',
- namespace => 'beta4',
+ bucket => $bucket,
+ namespace => $namespace,
);
};
diag('No AWS key') unless($meta);
View
@@ -1,10 +1,9 @@
[MAIN]
logfile=./test/cpanstats.log
poll_limit=1
-json_file=./test/recent.json
-rss_file=./test/recent.rss
-rss_limit=1000
-reportlink=http://www.cpantesters.org/cpan/report
+
+aws_bucket=cpantesters
+aws_namespace=beta4
[LITESTATS]
driver=SQLite

0 comments on commit 2d87860

Please sign in to comment.