Commit graph

75 commits

Author SHA1 Message Date
Colin Kuskie
4b974d644b Restore original Darwin buffer hack. 2009-09-24 19:49:30 -07:00
Graham Knop
532f8ece6b set library path before loading WebGUI modules in WebGUI::Test 2009-09-24 07:52:18 -05:00
Colin Kuskie
1ccb468914 Add a method to unmock the logger. 2009-09-23 15:56:59 -07:00
Graham Knop
bb77bc484e fix warnings in IOB test 2009-09-23 17:10:00 -05:00
Graham Knop
328f3dfcec test cleanups 2009-09-23 16:48:04 -05:00
Colin Kuskie
323edd888e More tests for bug fix #11009.
Abstract out making a session in WebGUI::Test.  Update POD
in Shop/Address.  Add tests for newBySession, showing that
the previous commit that allows update to update addressBookId
actually fixed the bug in question.
2009-09-21 19:44:43 -07:00
Graham Knop
86bacc54c6 some small test library cleanups 2009-09-16 18:28:31 -05:00
Colin Kuskie
716da0440f Make Test.pm search order the same as preload.perl 2009-09-15 13:23:10 -07:00
Colin Kuskie
632e1e1ba2 Remove debug code. 2009-09-10 08:42:33 -07:00
Graham Knop
e6f38dcf44 add new API for mocking assets in tests 2009-09-09 12:14:07 -05:00
Colin Kuskie
c189c6967b Read preload.custom for extra lib paths in tests. 2009-09-09 09:54:19 -07:00
Colin Kuskie
8fd0be0dc4 Purge tests before cleaning up version tags. Fix a leaky test. 2009-09-04 19:59:26 -07:00
Colin Kuskie
838ae00af5 Provide a way for tests to purge assets with all their (hidden and unreachable)
version tags.  Fix Survey.t that was leaking versionTags.
2009-09-01 22:30:07 +00:00
Colin Kuskie
f69df9b7ca Enable tests to work around HTTP cookie fetching. Finally! 2009-08-14 01:38:44 +00:00
Colin Kuskie
6137b681f3 Unify the list of protected groups into Group->vitalGroup. Refactor
WebGUI::Test and Operation/Group to use that list.
2009-07-05 20:36:46 +00:00
Colin Kuskie
64e78690d9 Fix a test that is leaking a workflow. Add workflow cleanup code to WebGUI::Test. 2009-06-20 01:51:06 +00:00
Doug Bell
b26e0bae9f Added getMailFromQueue so we can loop over mail that got queued 2009-06-05 02:27:59 +00:00
Doug Bell
e99c78cb58 refactor Mail/Send test to make test smtp server useful 2009-06-05 02:26:40 +00:00
Colin Kuskie
e88a5e2493 Forward port version tag fix. 2009-05-25 15:35:45 +00:00
Colin Kuskie
4a7d704bfc Forward port version tag tracking and leak fix. 2009-05-25 15:32:59 +00:00
Colin Kuskie
abb6ff29d5 Make sure that we don't delete things that have already been deleted. 2009-05-20 03:05:45 +00:00
Colin Kuskie
7f9dacb0d0 Always delete fresh copies of cached objects... 2009-05-20 01:31:45 +00:00
Colin Kuskie
fa888ef434 Add mailQueue tracking to WEBGUI_TEST_DEBUG 2009-05-20 00:50:18 +00:00
Colin Kuskie
268a926d01 Remove duplicate sub that crept in there. 2009-05-18 21:04:52 +00:00
Colin Kuskie
d8a1623ea0 adding FilePump 2009-05-18 16:03:50 +00:00
Colin Kuskie
8e3891a7bd Merge branch 'master' of git://github.com/pdonelan/webgui into filepump 2009-05-16 14:44:27 -07:00
Colin Kuskie
ac77f6f1da Add tagsToRollback to WebGUI::Test 2009-05-14 22:18:52 -07:00
Colin Kuskie
19b333067e Prevent default groups from being deleted. 2009-05-07 16:04:47 +00:00
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