Item2024: Extension unit tests fail because they run with empty CGI query object

pencil
Priority: Urgent
Current State: No Action Required
Released In: 1.1.0
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: ArthurClemens
Waiting For:
Last Change By: CrawfordCurrie
When running a unit test, anything that relies on getting info from the query object fails because it looks like this:
query=$VAR1 = bless( {
   'param_list' => [],
   'headers' => {},
   'cookies' => {},
   'secure' => 0,
   'path_info' => '/TemporaryEditTableFunctionsTestWebEditTableFunctions/TestTopicEditTableFunctions',
   'uri' => '',
   'uploads' => {},
   'remote_user' => undef,
   'remote_address' => '',
   'action' => '',
   'method' => undef,
   'server_port' => undef,
   'param' => {}
}, 'Unit::Request' );

-- ArthurClemens - 09 Sep 2009

Must be a trunk only problem as the tests run fine on Release01x00 branch

Changing target to minor.

It is important you set the right target.

-- KennethLavrsen - 13 Sep 2009

Since FSA there is no "CGI object" except by accident. Tests should not assume that there is a query object, all they can assume is that there's a Foswiki::Request.

I suspect the test.

-- CrawfordCurrie - 15 Nov 2009

No feedback since Arthur reported this, so closing no-action.

-- CrawfordCurrie - 21 Jun 2010

ItemTemplate edit

Summary Extension unit tests fail because they run with empty CGI query object
ReportedBy ArthurClemens
Codebase
SVN Range Foswiki-1.0.0, Thu, 08 Jan 2009, build 1878
AppliesTo Engine
Component
Priority Urgent
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease minor
ReleasedIn 1.1.0
Topic revision: r4 - 21 Jun 2010, CrawfordCurrie
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy