Commit graph

2504 commits

Author SHA1 Message Date
Colin Kuskie
248f77f3a9 Added more test in preparation for changing Group SQL query work.
Update documentation in User.pm and Group.pm.
Refactor Group.pm to use placholders.
Fix typo in getGroupsIn where wrong key in hash was accessed.
2006-03-13 04:43:05 +00:00
Colin Kuskie
9a6e77c4eb cleanup tests, make testCodebase.pl work with traditional --configFile syntax 2006-03-09 01:00:27 +00:00
Colin Kuskie
65590997b6 Fix error in TabForm POD (get vs getTab)
POD for WebGUI.pm
Table of Contents has tabbed interface
viewHelp filters tabs by the user's UI level
2006-03-06 16:30:11 +00:00
Colin Kuskie
c323789d64 Fix number of tests in Utility.t
Add help for dashboard and fix labels.
Remove startDate, endDate from Asset help.
Update Help template to show UI levels as data rather than content.
2006-03-03 05:28:53 +00:00
Colin Kuskie
4e9eb32635 Added a new set of tests for checking the integrity of the WebGUI database.
The first tests, Asset_diagnose.t checks that assetIds match in tables
asset, assetData and each Asset's default table.

Asset/Wobject/DataForm_diagnose.t adds tests for verifying DataForm
collateral tables, DataForm_field and DataForm_tab.  With a few
small changes, the test could also cover the DataForm data tables,
DataForm_entry and DataForm_entryData.

The tests are optimized to do a quick preliminary test, and if this
test fails, then an in-depth test is run.  This second test will
run a VERY VERY VERY long time, but will tell you exactly what's
missing from your tables.

The new tests require the module Test::Deep, for comparing data structures.
2006-02-26 04:03:10 +00:00
Colin Kuskie
9f4b73a946 Update label.t to pull the lib directory from WebGUI::Test
Set correct package name in i18n file.
2006-02-20 17:38:16 +00:00
Colin Kuskie
4260ecd7ce fixing tests broken during 6.9 upgrade cycle 2006-02-18 22:08:33 +00:00
Colin Kuskie
6fd7575eb9 Removed Utility test for base36, which no longer exists in WebGUI::Utility.pm
new i18n message for duplicate usernames.
2006-02-18 21:58:27 +00:00
Wouter van Oijen
9cf20110c8 added list of failed packages to output of syntaxCheck.t 2006-02-17 15:32:45 +00:00
Colin Kuskie
cd6759f311 Modify WebGUI IP fields to use CIDR format instead of a regular expression.
Multiple IPs are separated by commas, whitespace is ignored.
In groups, that affects the ipFilter field,  User::isInGroup.
In settings, that affects Settings::debugIp and Session::ErrorHandler::canShowDebug.

Fixed a bug in WebGUI::Utility::isInSubnet where Net::Subnets->check needs a scalar.

Modified t/User.t to use addresses in CIDR format.
2006-02-14 22:35:21 +00:00
Colin Kuskie
84fd39285f new user tests for valid userId 2006-02-14 06:52:58 +00:00
Colin Kuskie
346ebe97ba testing more default settings 2006-02-12 06:56:45 +00:00
Colin Kuskie
b4520939f1 13 more Group tests
WebGUI::Group->find returns first group, no guaranteed order of search
2006-02-12 06:11:23 +00:00
Colin Kuskie
23fa58ca11 4 more WebGUI::Group tests
More Operation::Group.pm subs without session calls fixed.
2006-02-12 05:50:06 +00:00
Colin Kuskie
acdd58aec6 Very beginning of Group test that cleans up after itself.
Operation/Group wasn't passing session var internally.
Fixed WebGUI::Group POD docs.
2006-02-12 05:37:37 +00:00
Colin Kuskie
b4ea20ef63 remove debugging code 2006-02-12 04:52:08 +00:00
Colin Kuskie
62a841ced9 Move 6.8's Group ipFilter test into User.t since isInGroup was moved into WebGUI::User.pm
forward port of ipFilter bugfix, typo
2006-02-10 20:31:26 +00:00
Colin Kuskie
67511cd89f merge of Snippet fix 2006-02-05 02:51:47 +00:00
kenperl
734ef2fc1e construct WEBGUI_LIB through WEBGUI_CONFIG 2006-01-25 09:03:06 +00:00
Colin Kuskie
a394f4f53e add 2nd dbh to test access on committed, uncommited data 2006-01-24 22:38:39 +00:00
Colin Kuskie
9228412788 commit and rollback transaction tests 2006-01-24 21:27:42 +00:00
JT Smith
b045ac2d61 fixed test script 2006-01-23 04:01:07 +00:00
Colin Kuskie
f68c1ace5d Some content for Paginator stub. Not very much at all.
Session/Url.t fixed up.
2006-01-20 23:12:54 +00:00
Colin Kuskie
e1b42d2970 Added Test::MockObject tests to Session/Url to bypass request requirements.
Added stub for Paginator.t
2006-01-20 18:53:47 +00:00
Colin Kuskie
77df67e7c2 additional tests for Session::Url 2006-01-20 00:11:53 +00:00
Colin Kuskie
1ab3df1f30 beginnings of Session::Url testing 2006-01-19 00:19:49 +00:00
Matthew Wilson
6266be5b65 lots more fixes and enhanced User.t 2006-01-18 15:22:43 +00:00
JT Smith
ea14e9de4c adding base36 functions 2006-01-18 15:21:10 +00:00
Matthew Wilson
6f112057bb still more fixes. 2006-01-18 07:05:19 +00:00
Matthew Wilson
8f12dae29c more session fixes. 2006-01-18 06:26:40 +00:00
Daniel Maldonado
6c49511082 2006-01-18 04:16:18 +00:00
Matthew Wilson
29a75c50b8 increment number of tests. 2006-01-18 03:29:12 +00:00
Matthew Wilson
e33c7bebc3 an absolute slew of changes. 2006-01-18 01:45:55 +00:00
Colin Kuskie
9499e17cfd stricter template checking 2006-01-17 23:19:32 +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
Colin Kuskie
bf960218bf Move Macro utility module into t/lib
Break Macro.t into component tests
resolve conflicts from merge
prove passes on t/Macro
2006-01-17 22:16:12 +00:00
Christian Hansen
83d59837fd Ported all tests 2006-01-17 22:06:21 +00:00
Colin Kuskie
734484f48e insert macros into session config if not defined for testing 2006-01-17 22:05:17 +00:00
Christian Hansen
831f5a36e1 ported t/A-M to use WebGUI::Test 2006-01-17 21:22:11 +00:00
Christian Hansen
3f6176397b Added WebGUI::Test and updated t/Config.t 2006-01-17 19:39:40 +00:00
Colin Kuskie
76ef4da780 finish up basic Date macro test 2006-01-17 17:55:02 +00:00
JT Smith
3fd57a3559 more session related bug fixes 2006-01-17 05:36:56 +00:00
JT Smith
b1b4e50619 added a test for template 2006-01-17 05:09:57 +00:00
JT Smith
80a5518717 addding test for Template
fixed more session bugs
2006-01-17 03:57:18 +00:00
Colin Kuskie
4085c7baf4 Broke Macro tests into chunks.
Added additional test to AdminText, checking for Admin mode on and off
2006-01-16 18:48:50 +00:00
Colin Kuskie
f9e4c2c26d breaking macro test into component parts 2006-01-16 18:31:41 +00:00
Colin Kuskie
3e1cfcccbe add Admin text test 2006-01-16 18:30:16 +00:00
JT Smith
fab9f722e8 updating copyright year 2006-01-16 17:32:54 +00:00