Some minor cleanup pending next release.
Kip Hampton
11 years ago
161 | 161 |
}
|
162 | 162 |
|
163 | 163 |
my $matcher_class = $self->matcher_class || 'Magpie::Matcher';
|
164 | |
|
|
164 |
|
165 | 165 |
try {
|
166 | 166 |
Plack::Util::load_class($matcher_class);
|
167 | 167 |
}
|
|
178 | 178 |
);
|
179 | 179 |
|
180 | 180 |
$pipeline = $matcher->construct_pipeline($pipeline);
|
181 | |
|
|
181 |
|
182 | 182 |
if ($self->debug) {
|
183 | 183 |
Plack::Util::load_class('Data::Dumper::Concise');
|
184 | 184 |
my $message = 'PIPELINE: ' . Data::Dumper::Concise::Dumper($pipeline);
|
|
185 |
#warn 'STACK ' . Data::Dumper::Concise::Dumper(\@STACK);
|
185 | 186 |
warn $message . "\n";
|
186 | 187 |
$req->logger({ level => 'debug', message => $message, });
|
187 | |
}
|
|
188 |
}
|
188 | 189 |
|
189 | 190 |
my $m = Magpie::Machine->new( plack_request => $req, );
|
190 | 191 |
|
30 | 30 |
done_testing();
|
31 | 31 |
__END__
|
32 | 32 |
|
33 | |
# these are added by the Handler classes:
|
34 | |
ok( $m->assets->has_service('othervar'), 'asset added in handler.' );
|
35 | |
|
36 | |
my $other = $m->resolve_asset( service => 'othervar' );
|
37 | |
|
38 | |
is( $other, 'other value', 'correct value passed');
|
39 | |
|
40 | |
# check a few common internals
|
41 | |
my $resource = $m->resolve_internal_asset( service => 'default_resource' );
|
42 | |
ok( $resource );
|
43 | |
isa_ok($resource, 'Magpie::Resource::Abstract');
|
44 | |
|
45 | |
done_testing();
|
26 | 26 |
}
|
27 | 27 |
{
|
28 | 28 |
my $res = $cb->(GET "http://localhost/api/widget/aabbccdd/part/OU812");
|
29 | |
like $res->content, qr|pathmadness__long_path::widget_pathmadness__part_id::OU812__widget_id::aabbccdd_|;
|
|
29 |
like $res->content, qr|pathmadness__part_id::OU812__widget_id::aabbccdd_|;
|
30 | 30 |
}
|
31 | 31 |
|
32 | 32 |
};
|