test compilation of all scripts and modules (#537)
* test compilation of all scripts and modules passes * try adding NetSNMP::default_store * try adding NetSNMP::default_store * travis test all branches * make Configuration.pm safe for tests * remove dep * try adding net-snmp * dist: xenial * try building Net-SNMP locally * no need for Try::Tiny * allow test to pass for DPP:p * better testing setup for session cookies * yay! working compile tests for ALL!
This commit is contained in:
@@ -66,9 +66,13 @@ if (setting('template_paths') and ref [] eq ref setting('template_paths')) {
|
||||
|
||||
# load cookie key from database
|
||||
setting('session_cookie_key' => undef);
|
||||
my $sessions = schema('netdisco')->resultset('Session');
|
||||
my $skey = $sessions->find({id => 'dancer_session_cookie_key'});
|
||||
setting('session_cookie_key' => $skey->get_column('a_session')) if $skey;
|
||||
setting('session_cookie_key' => 'this_is_for_testing_only')
|
||||
if $ENV{HARNESS_ACTIVE};
|
||||
eval {
|
||||
my $sessions = schema('netdisco')->resultset('Session');
|
||||
my $skey = $sessions->find({id => 'dancer_session_cookie_key'});
|
||||
setting('session_cookie_key' => $skey->get_column('a_session')) if $skey;
|
||||
};
|
||||
Dancer::Session::Cookie::init(session);
|
||||
|
||||
# workaround for https://github.com/PerlDancer/Dancer/issues/935
|
||||
|
||||
Reference in New Issue
Block a user