Clustericious
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
t/clustericious_app.t view on Meta::CPAN
$t->get_ok("/autotest.yml")
->status_is(200);
note $t->tx->res->text;
};
$t->get_ok('/autotest_not_found')
->status_is(404);
note $t->tx->res->text;
my($out,$err,$ret) = capture {
local @ARGV = 'routes';
local $ENV{MOJO_APP} = 'SomeService';
Clustericious::Commands->start;
};
note "[routes]\n$out" if $out;
note "[err]\n$err" if $err;
$t->get_ok('/bogus/not/here')
->status_is(404)
->content_like(qr{^NOT FOUND: "/bogus/not/here"});
t/clustericious_helloworld.t view on Meta::CPAN
isa_ok $client, 'Clustericious::HelloWorld::Client';
subtest '/status' => sub {
my $status = $client->status;
is $status->{app_name} , 'Clustericious::HelloWorld', 'app_name';
};
};
my($out,$err,$ret) = capture {
local @ARGV = 'routes';
local $ENV{MOJO_APP} = 'Clustericious::HelloWorld';
Clustericious::Commands->start;
};
note "[routes]\n$out" if $out;
note "[err]\n$err" if $err;
__END__
@@ etc/Hello-World.conf
---
t/clustericious_log_commandline.t view on Meta::CPAN
chdir 'corpus/log_commandline/' or die "Can't chdir corpus/log_commandline/: $!";
unlink 'mylog.output'; # clean up from prior test
local $/ = "% "; # Yeah, I know...
foreach my $sample (<sample*.pl>)
{
(my $output = $sample) =~ s/pl$/output/;
local @ARGV = $output;
while (my $case = <>)
{
chomp $case;
next if $case eq '';
$case =~ s/^(.*)$//m;
my $command = $1;
$case =~ s/^\s*//;
view all matches for this distributionview release on metacpan - search on metacpan
( run in 0.485 second using v1.00-cache-2.02-grep-82fe00e-cpan-da92000dfeb )