X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=trunk%2Ft%2Faggregate%2Flive_engine_response_status.t;fp=trunk%2Ft%2Faggregate%2Flive_engine_response_status.t;h=0000000000000000000000000000000000000000;hb=f436bc1bece2bcc2a04138068e5c22e70d9d6d35;hp=a37c9b66bd294de885174f7af1401d7917c49696;hpb=e28a6876ad3e11890226e5bab6df4b0725e0981e;p=catagits%2FCatalyst-Runtime.git diff --git a/trunk/t/aggregate/live_engine_response_status.t b/trunk/t/aggregate/live_engine_response_status.t deleted file mode 100644 index a37c9b6..0000000 --- a/trunk/t/aggregate/live_engine_response_status.t +++ /dev/null @@ -1,55 +0,0 @@ -#!perl - -use strict; -use warnings; - -use FindBin; -use lib "$FindBin::Bin/../lib"; - -use Test::More tests => 30; -use Catalyst::Test 'TestApp'; - -{ - ok( my $response = request('http://localhost/engine/response/status/s200'), 'Request' ); - ok( $response->is_success, 'Response Successful 2xx' ); - is( $response->code, 200, 'Response Code' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->header('X-Catalyst-Action'), 'engine/response/status/s200', 'Test Action' ); - like( $response->content, qr/^200/, 'Response Content' ); -} - -{ - ok( my $response = request('http://localhost/engine/response/status/s400'), 'Request' ); - ok( $response->is_error, 'Response Client Error 4xx' ); - is( $response->code, 400, 'Response Code' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->header('X-Catalyst-Action'), 'engine/response/status/s400', 'Test Action' ); - like( $response->content, qr/^400/, 'Response Content' ); -} - -{ - ok( my $response = request('http://localhost/engine/response/status/s403'), 'Request' ); - ok( $response->is_error, 'Response Client Error 4xx' ); - is( $response->code, 403, 'Response Code' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->header('X-Catalyst-Action'), 'engine/response/status/s403', 'Test Action' ); - like( $response->content, qr/^403/, 'Response Content' ); -} - -{ - ok( my $response = request('http://localhost/engine/response/status/s404'), 'Request' ); - ok( $response->is_error, 'Response Client Error 4xx' ); - is( $response->code, 404, 'Response Code' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->header('X-Catalyst-Action'), 'engine/response/status/s404', 'Test Action' ); - like( $response->content, qr/^404/, 'Response Content' ); -} - -{ - ok( my $response = request('http://localhost/engine/response/status/s500'), 'Request' ); - ok( $response->is_error, 'Response Server Error 5xx' ); - is( $response->code, 500, 'Response Code' ); - is( $response->content_type, 'text/plain', 'Response Content-Type' ); - is( $response->header('X-Catalyst-Action'), 'engine/response/status/s500', 'Test Action' ); - like( $response->content, qr/^500/, 'Response Content' ); -}