Commit graph

183 commits

Author SHA1 Message Date
Graham Knop
65a58eed62 Revert "Fix a bug with session counting for WEBGUI_TEST_DEBUG"
This reverts commit f53af08e27.
2009-10-07 17:48:31 -05:00
Colin Kuskie
5f29c5bcdd Comment cleanup 2009-10-07 08:36:48 -07:00
daviddelikat
3ed18c775b setting aside test for a bit to do some coding 2009-10-06 00:18:27 -05:00
Colin Kuskie
16ac69c0d7 Add cleanup for shopping carts. 2009-09-25 19:44:46 -07:00
Colin Kuskie
f53af08e27 Fix a bug with session counting for WEBGUI_TEST_DEBUG
Store an offset for the session created by the test, which will exist
when initial counts are taken.  And delay final counts as late
as possible, after the session has been closed.  This prevents
a bunch of delta: -1's from showing up.
2009-09-25 19:25:49 -07:00
Graham Knop
9b74ab24cf remove attempted apache hack in tests 2009-09-25 11:33:20 -05:00
Colin Kuskie
79f84aec68 Restore original Darwin buffer hack. 2009-09-24 19:57:42 -07:00
Graham Knop
81336e3ee6 only report test debug counts if there was a leak 2009-09-24 18:55:23 -05:00
Graham Knop
b6c1837756 fix and clean up export test 2009-09-24 18:55:23 -05:00
Colin Kuskie
e61140af5b Duplicate sessions before cleaning them up to handle fatal'ed sessions. 2009-09-24 13:57:00 -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
1671aefee5 Write a test that says that loading Form plugins from a place other than /data/WebGUI/lib/WebGUI works. 2009-09-08 17:05:00 -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
18a52b9aa2 Refactor out the JSON collateral code from FilePump/Bundle.pm to make an aspect
that can be used by assets, operations and any other modules in WebGUI.
2009-08-26 15:42:18 +00:00
Colin Kuskie
f69df9b7ca Enable tests to work around HTTP cookie fetching. Finally! 2009-08-14 01:38:44 +00:00
Martin Kamerbeek
46829ac970 Adding return JSON on specific requeest feature to template. 2009-08-10 12:42:33 +00:00
Colin Kuskie
2daed0d1cc Fix test. Inheritance wasn't working with the package defined inside
the test.
2009-07-22 00:20:44 +00:00
Colin Kuskie
5e4db3adb4 Provide a framework for CSRF protection, with tests.
Add CSRF protection to Asset editSave, AssetManager, VersionTags and Group operations.
2009-07-06 16:58:57 +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
12c6299159 Document the className option for preparing Maker/Permission. 2009-05-27 17:26:10 +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
Doug Bell
de47c22eff fixed pseudorequest "Cannot use undefined value as a HASH reference" 2009-05-17 02:55:31 +00:00
Colin Kuskie
8e3891a7bd Merge branch 'master' of git://github.com/pdonelan/webgui into filepump 2009-05-16 14:44:27 -07:00
Doug Bell
18bb51bc2b fixed PseudoRequest to do param list correctly 2009-05-15 18:10:18 +00:00
Doug Bell
1f96d708bf user-services 2009-05-15 18:03:03 +00:00
Doug Bell
00b2709365 fixed PseudoRequest to do param list correctly 2009-05-15 18:02:49 +00: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
676bc7f145 Adding in pseudo-module for Crud serialization testing. 2009-05-07 15:38:49 +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
c8fe4092a2 Many more RssAspect tests. 2009-04-25 00:16:27 +00:00