[otrs-cvs] GeneralCatalog/scripts/test GeneralCatalog.t,1.14,1.15
cvs-log at otrs.org
cvs-log at otrs.org
Tue Mar 11 10:51:39 GMT 2008
Comments:
Update of /home/cvs/GeneralCatalog/scripts/test
In directory lancelot:/tmp/cvs-serv30900/scripts/test
Modified Files:
GeneralCatalog.t
Log Message:
Fixed bug# 2761 - Missing Quoting in ItemUpdate() function.
Author: mh
Index: GeneralCatalog.t
===================================================================
RCS file: /home/cvs/GeneralCatalog/scripts/test/GeneralCatalog.t,v
retrieving revision 1.14
retrieving revision 1.15
diff -C2 -d -r1.14 -r1.15
*** GeneralCatalog.t 11 Mar 2008 10:02:46 -0000 1.14
--- GeneralCatalog.t 11 Mar 2008 10:51:33 -0000 1.15
***************
*** 258,272 ****
{
Update => {
! Name => " \t \n \r Test Item UPDATED \t \n \r ",
Functionality => " \t \n \r Test Func tiona lity \t \n \r ",
ValidID => $UserID1,
! Comment => " \t \n \r Test Comment UPDATED \t \n \r ",
UserID => $UserID1,
},
UpdateGet => {
! Name => 'Test Item UPDATED',
Functionality => 'TestFunctionality',
ValidID => $UserID1,
! Comment => 'Test Comment UPDATED',
CreateBy => 1,
ChangeBy => $UserID1,
--- 258,272 ----
{
Update => {
! Name => " \t \n \r Test Item UPDATE1 \t \n \r ",
Functionality => " \t \n \r Test Func tiona lity \t \n \r ",
ValidID => $UserID1,
! Comment => " \t \n \r Test Comment UPDATE1 \t \n \r ",
UserID => $UserID1,
},
UpdateGet => {
! Name => 'Test Item UPDATE1',
Functionality => 'TestFunctionality',
ValidID => $UserID1,
! Comment => 'Test Comment UPDATE1',
CreateBy => 1,
ChangeBy => $UserID1,
***************
*** 298,312 ****
{
Update => {
! Name => 'Test Item Ʃ ɤ UPDATED',
Functionality => ' Ñ Ñ¤ TestFunctionality Ï Î© ',
ValidID => $UserID2,
! Comment => ' Test Comment Ñ Ñ UPDATED ',
UserID => $UserID2,
},
UpdateGet => {
! Name => 'Test Item Ʃ ɤ UPDATED',
Functionality => 'Ñ Ñ¤TestFunctionalityÏ Î©',
ValidID => $UserID2,
! Comment => 'Test Comment Ñ Ñ UPDATED',
CreateBy => 1,
ChangeBy => $UserID2,
--- 298,312 ----
{
Update => {
! Name => 'Test Item Ʃ ɤ UPDATE1',
Functionality => ' Ñ Ñ¤ TestFunctionality Ï Î© ',
ValidID => $UserID2,
! Comment => ' Test Comment Ñ Ñ UPDATE1 ',
UserID => $UserID2,
},
UpdateGet => {
! Name => 'Test Item Ʃ ɤ UPDATE1',
Functionality => 'Ñ Ñ¤TestFunctionalityÏ Î©',
ValidID => $UserID2,
! Comment => 'Test Comment Ñ Ñ UPDATE1',
CreateBy => 1,
ChangeBy => $UserID2,
***************
*** 351,354 ****
--- 351,394 ----
},
},
+
+ # this item must be inserted sucessfully (special character checks)
+ {
+ Add => {
+ Class => 'UnitTest::TestClass[test]%*\\' . $ClassRand2,
+ Name => ' [test]%*\\ Test Item [test]%*\\ ',
+ Functionality => ' [test]%*\\ TestFunctionality [test]%*\\ ',
+ ValidID => 1,
+ Comment => ' [test]%*\\ Test Comment [test]%*\\ ',
+ UserID => 1,
+ },
+ AddGet => {
+ Class => 'UnitTest::TestClass[test]%*\\' . $ClassRand2,
+ Name => '[test]%*\\ Test Item [test]%*\\',
+ Functionality => '[test]%*\\TestFunctionality[test]%*\\',
+ ValidID => 1,
+ Comment => '[test]%*\\ Test Comment [test]%*\\',
+ CreateBy => 1,
+ ChangeBy => 1,
+ },
+ },
+
+ # the item one add-test before must be updated sucessfully (special character checks)
+ {
+ Update => {
+ Name => ' [test]%*\\ Test Item UPDATE1 [test]%*\\ ',
+ Functionality => ' [test]%*\\ TestFunctionality [test]%*\\ ',
+ ValidID => $UserID2,
+ Comment => ' [test]%*\\ Test Comment UPDATE1 [test]%*\\ ',
+ UserID => $UserID2,
+ },
+ UpdateGet => {
+ Name => '[test]%*\\ Test Item UPDATE1 [test]%*\\',
+ Functionality => '[test]%*\\TestFunctionality[test]%*\\',
+ ValidID => $UserID2,
+ Comment => '[test]%*\\ Test Comment UPDATE1 [test]%*\\',
+ CreateBy => 1,
+ ChangeBy => $UserID2,
+ },
+ },
];
More information about the cvs-log
mailing list