Commit graph

47 commits

Author SHA1 Message Date
Colin Kuskie
004b8095a1 Add method to clean up test sessions. This has to be done
after ALL other types of objects have been cleaned up.
More test clean-up for users, groups and sessions.
2009-05-01 02:02:12 +00:00
Colin Kuskie
1b8ad91605 Add in StoryManager, 3 assets for managing news content in WebGUI.
Several small API changes to Keyword and AssetExportHtml to support StoryManager functionality.
2009-04-24 18:31:06 +00:00
Colin Kuskie
19f703dc9b Merge with HEAD, 10472 2009-04-24 17:12:17 +00:00
Colin Kuskie
6137a06bb9 Handle automatically cleaning up users at the end of a test. 2009-04-24 03:40:16 +00:00
Colin Kuskie
decde00451 Forward port auto storage deletion code for WebGUI::Test. 2009-04-13 17:36:23 +00:00
Colin Kuskie
314a12def2 Add an autoclean-up method to WebGUI::Test, and convert the Story test
to use it.
2009-04-13 17:33:42 +00:00
Colin Kuskie
1edaca4ed2 Merge up to 10305 2009-04-13 17:04:23 +00:00
Colin Kuskie
ddd06c2ede Provide a way for WebGUI::Test to register groups to clean up at
the end of a test.
Convert several tests to use that, including Post.t, which leaked Groups.
2009-04-13 02:45:03 +00:00
Colin Kuskie
75ad1c14ff Only clone the data from Setting. This prevents trying to close the
session dbh twice and getting odd warning messages.
2009-04-10 16:27:31 +00:00
Colin Kuskie
4c1307e3d0 merge to 10219 2009-04-08 16:35:31 +00:00
Colin Kuskie
4e78593395 Change tests to use the automatic backup of Settings in END blocks. 2009-03-30 20:41:02 +00:00
Colin Kuskie
4e2a8bab91 Bump up the version for Clone, since the new version works with
perl 5.10.
Have SurveyJSON use it instead of dclone.
2009-03-30 19:47:27 +00:00
Colin Kuskie
b61ef2c91f Provide a way for config file settings to be restored at the end of a test,
via the END block in WebGUI::Test.
2009-03-28 03:53:26 +00:00
Colin Kuskie
4cb5b5d83c Add an easy way to access a famous date. 2009-03-19 04:06:14 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
336cb209fd protect against premature test failure corrupting config, remove debug code 2008-09-30 17:07:26 +00:00
Colin Kuskie
7043f5d711 help the test track changes to Config.pm and how it handles paths 2008-09-30 16:11:11 +00:00
Colin Kuskie
afff4c4844 Back port Haarg's excellent fix for the lack
of query checking in the ErrorHandler test.
2008-09-11 23:16:19 +00:00
Colin Kuskie
5fc629993a when overriding Log::Log4perl for testing, set the is_debug flag to true 2008-08-21 23:45:00 +00:00
Colin Kuskie
5e97a877d5 Make the WEBGUI_CONFIG environment variable warning messages more instructive. 2008-07-18 17:28:41 +00:00
Colin Kuskie
1d4810f6b5 migrate some tests from errorHandler to log 2008-05-30 07:03:05 +00:00
Colin Kuskie
06f52bae9a Fix how logging gets intercepted. It used to be on by default, now it must be turned on. 2008-02-29 22:09:32 +00:00
Colin Kuskie
ecfba4699d forward porting Testing fix 2008-02-22 18:31:05 +00:00
Colin Kuskie
227be31be5 By default, every Session created by WebGUI::Test will have
a PseudoRequest object, instead of being blank.  Update
Storage.t to test this.
2008-02-09 04:22:39 +00:00
JT Smith
93b5ca16e4 updating copyright year 2008-02-07 23:28:18 +00:00
Colin Kuskie
3ff2dca9b5 Fix the POD for the file method. 2008-02-05 23:44:37 +00:00
Doug Bell
53ac4be8d1 Added a simple smtpd for testing
MERGE: Added ability for WebGUI::Test->getPage to work on Operations
MERGE: Fix for AdSpace and tests for Operation::AdSpace
Fixed Poll's use of JSON
Added tests for emailOverride
2008-02-05 19:34:09 +00:00
Colin Kuskie
ab476b36e5 POD for WebGUI::Test 2008-01-31 21:04:57 +00:00
Colin Kuskie
fc6fe216b0 Keep the session tracking, but hide it behind an environment
variable to keep the line noise down.  Also, add user and
group tracking.
2008-01-05 02:22:05 +00:00
Colin Kuskie
8b71032a98 add more diagnostics to help find the leaking session. These will be removed or hidden behind conditionals later 2008-01-02 21:08:48 +00:00
Doug Bell
4c70aa4c71 re-integrated photogallery branch 2007-12-18 13:05:41 +00:00
Doug Bell
5222ad6be1 merged with SVN HEAD 2007-12-18 12:22:37 +00:00
Colin Kuskie
5263e69c85 var->end already does a scratch->deleteAll 2007-11-02 04:15:57 +00:00
Colin Kuskie
0fa154d84f Add a missing use line in Session/Privilege.pm.
Try to completely clean up all session related stuff from each test.
2007-11-02 03:57:00 +00:00
Doug Bell
32b27d0954 more tests, started Photo development, changed some naming 2007-10-25 06:20:20 +00:00
Doug Bell
2d165c862e Added WebGUI::Test::Maker 2007-10-24 04:12:33 +00:00
Doug Bell
5746ded766 Added more tests. Cleaned up the OO of File and Image a bit (removed a healthy bit of unnecessary code from Image). Done with File and Image for the time being... 2007-10-09 07:36:54 +00:00
Colin Kuskie
efea7c9685 fix a typo in the AssetMetaData, and add code to WebGUI::Test to force all output onto STDOUT. Step 1 to smolder 2007-06-06 23:40:14 +00:00
Colin Kuskie
c6bde7eed9 By default, all Log::Log4Perl calls are mocked so that they can
be intercepted and tested.
Reworked Session/ErrorHandler.t to take account of this.
Updated Stow test coverage to 100%.
2007-04-06 22:50:53 +00:00
Colin Kuskie
9d0894b674 Add a new method to t/lib/WebGUI/Test.pm to return the path to the test
collateral.
Update all tests to use the new method.
Change testCodebase.pl to run long tests by default.  To disable the
long tests, use the --noLongTests switch.
2006-12-15 23:17:22 +00:00
kenperl
734ef2fc1e construct WEBGUI_LIB through WEBGUI_CONFIG 2006-01-25 09:03:06 +00:00
JT Smith
b045ac2d61 fixed test script 2006-01-23 04:01:07 +00:00
Christian Hansen
ba2774a146 Silence isnt numeric warning 2006-01-17 23:08:31 +00:00
Christian Hansen
5cd464b76c darwin fis is only for osvers < 8 2006-01-17 22:58:22 +00:00
Christian Hansen
392f79ce8c Fixed dyld issues with libapre2 on darwin 2006-01-17 22:28:32 +00:00
Christian Hansen
83d59837fd Ported all tests 2006-01-17 22:06:21 +00:00
Christian Hansen
3f6176397b Added WebGUI::Test and updated t/Config.t 2006-01-17 19:39:40 +00:00