Commit graph

50 commits

Author SHA1 Message Date
Colin Kuskie
683752354d File::Temp::tempdir does not exist. 2009-09-20 22:16:56 -07:00
Graham Knop
45603a026f fix Storage tests for limited permissions 2009-09-20 14:18:03 -05:00
Colin Kuskie
6634f3e337 Fix broken tests that were creating odd directories. 2009-08-24 03:39:04 +00:00
Colin Kuskie
9259e1db23 And restore the original method, and add tests to catch the approximation in Session/DateTime.t instead
of relying on Asset/Story.t
2009-07-24 00:12:56 +00:00
Colin Kuskie
a3d8c390bd Fix CDN working with GUID style, vs hex style, storage locations.
Add tests for geting a GUID storage location.
2009-07-23 21:51:45 +00:00
Colin Kuskie
0af4acdfad Allow storage locations to have subdirectories, just to support the ZipArchive. 2009-07-21 21:44:31 +00:00
Colin Kuskie
1d3d61e16f Add hex generation code to tempspace Storage objects. Otherwise, they return undef. 2009-07-02 16:01:03 +00:00
Colin Kuskie
67df78608d Add a method to Storage to return the hex value of the storageId.
Add a test for it.
Convert Storage to use that everywhere, instead of calculating and recalculating it.
2009-05-20 18:37:00 +00:00
Randall Schwartz
2fc4f3b54d CDN: perltidy on new/changed code 2009-05-14 00:35:41 +00:00
Randall Schwartz
acd3fded45 Content Delivery Network (CDN) - optional, for either uploads only or both uploads & extras (rfe 9134) 2009-05-13 21:12:05 +00:00
Colin Kuskie
703bce933c Remove debugging code. 2009-03-06 15:40:59 +00:00
Graham Knop
24da723629 updating copyright year 2009-02-20 23:47:30 +00:00
Graham Knop
6810712f6e remove remnants of caseInsensitiveOS in tests 2008-12-10 05:45:34 +00:00
Graham Knop
d6e00cab05 improved performance of file uploads and changed format of created uploads locations, avoiding case sensitivity problems 2008-11-12 01:17:33 +00:00
Graham Knop
8533cf8ae8 fixing test warnings, Storage should always return to the correct directory 2008-02-29 07:00:29 +00:00
Colin Kuskie
ed017f6007 Forward port diagnostics and $/ bug fix from 7.4 and Commerce branches. 2008-02-18 18:30:29 +00:00
Colin Kuskie
04da356822 take more advantage of getTestCollateralPath file concat 2008-02-09 04:44:15 +00:00
Colin Kuskie
b4483947cf take advantage of getTestCollateralPath concatenating files to the path for you 2008-02-09 04:25:07 +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
182f3ecfae increment plan for TODO test 2007-12-19 17:00:05 +00:00
Doug Bell
f8901ffe34 added TODO test to ensure that working with WebGUI::Storage doesnt chdir away 2007-12-18 21:26:14 +00:00
Doug Bell
53a1cbc7c2 fixes to the Gallery 2007-12-18 21:17:44 +00:00
Doug Bell
5222ad6be1 merged with SVN HEAD 2007-12-18 12:22:37 +00:00
Doug Bell
82e9bf8448 Finished? Ready for merge at least. 2007-12-17 22:22:06 +00:00
Colin Kuskie
41a8524daf remove mocking, since we new use PseudoRequest 2007-11-22 20:52:26 +00:00
Colin Kuskie
fd8cff2b8f coverage tests for getFileIconUrl for WebGUI::Storage.pm 2007-11-12 20:58:21 +00:00
Colin Kuskie
1cf78f5321 Finish up the file upload handling by PseudoRequest. If you
call $pseudoRequest->uploadFiles with a list of filenames, it will populate
the upload method with upload objects, so that Storage->getFileFromFormPost
will have an object with all the right methods.
t/Storage.t tests this incidently.  It occurs to me that we need tests
for our PseudoRequest module, and it needs POD, and it should probably
be rewritten using Class::InsideOut for good form.
2007-11-10 00:47:17 +00:00
Colin Kuskie
4de53b2de9 enable testing of $session->request->uploads through WebGUI::PseudoRequest. Now we need a good utility method for sending a list of files to a sub and having it return a list of filehandles to those files 2007-11-10 00:02:44 +00:00
Colin Kuskie
99d7037532 Fix a bug where storage objects allow deleting of files in other storage objects. 2007-07-23 16:24:37 +00:00
Colin Kuskie
83310ba311 update copyright on tests 2007-07-07 03:56:44 +00:00
Colin Kuskie
2a39d6a828 check part1, part2 and file path when caseInsensitiveOS=1 2007-07-05 23:09:25 +00:00
Colin Kuskie
36ed3f9209 Add a basic test for getId.
Add tests for Storage when caseInsensitiveOS=1
2007-07-05 02:45:33 +00:00
Colin Kuskie
ce12dca15d add tests to cover clear and getFiles methods 2007-07-03 23:14:22 +00:00
Colin Kuskie
c4384bd8f8 remove dead test code 2007-05-24 22:59:16 +00:00
JT Smith
f5f358ccf3 fixed tests
preparing for release
2007-05-23 17:42:51 +00:00
Colin Kuskie
e48cce07fb 8 more tests for Storage.t for tar and untar.
Reindented untar according to WGBP.
Changed getFileContentsAsScalar to slurp the whole file at once.
2007-04-30 03:55:05 +00:00
Colin Kuskie
ec7eb49e61 more subroutine coverage tests for Storage.pm. Coverage is 44/34/82 2007-04-26 04:40:57 +00:00
Colin Kuskie
7fd2a13a7a cover more Storage subroutines 2007-04-25 21:13:10 +00:00
Roy Johnson
22b9bc5e3b added two new tests to Storage.t 2006-11-23 08:17:53 +00:00
Colin Kuskie
e1fee84dc5 fix getFileExtension so that it only returns file extensions. Add tests to Storage.t to validate that 2006-05-24 23:25:21 +00:00
Colin Kuskie
2798c84d31 add tests for create and getFileSize 2006-05-24 22:47:40 +00:00
Colin Kuskie
a54aec00a4 make the failing short guid test smarter so that it tries multiple directories 2006-05-24 21:18:27 +00:00
Colin Kuskie
b02386064d Make creating a Storage object with a short ID an error.
Add a test to check for that.
Beginning of documentation for VersionTag.
2006-05-24 03:03:47 +00:00
Colin Kuskie
f413c029a2 Storage now prunes empty directories when delete is called.
Add use WebGUI::Form::Hidden to Form::File
2006-05-19 21:48:10 +00:00
Colin Kuskie
3d10acb8ce update User test now that group caches are flushed properly 2006-05-19 03:53:50 +00:00
Colin Kuskie
ebdcd47f8d POD and code fix for Storage object delete method 2006-05-17 18:28:31 +00:00
Colin Kuskie
c014d39c28 expose a Storage bug 2006-05-16 22:45:46 +00:00
Colin Kuskie
b018b8e61e Document return value for Storage::rename
Add simple new test for Text.t
Add ClassName.t test
Prevent Form/ClassName from passing classes with spaces in them and
remove redundant test for digits in regexp.
Add a new test to Storage.t for getLastError
2006-05-11 17:37:42 +00:00
Colin Kuskie
548dfb6f41 beginning of Storage test 2006-05-10 23:12:48 +00:00