[otrs-cvs] otrs/scripts/test/ProcessManagement Transition.t, 1.3, 1.4
"CVS commits notifications of OTRS.org" <[email protected]>
| Newsgroups | gmane.comp.otrs.cvs |
|---|---|
| Message-ID | <[email protected]> |
Comments:
Update of /home/cvs/otrs/scripts/test/ProcessManagement
In directory lancelot:/tmp/cvs-serv4801/scripts/test/ProcessManagement
Modified Files:
Transition.t
Log Message:
Added test with plain text Regexp.
Author: cr
Index: Transition.t
===================================================================
RCS file: /home/cvs/otrs/scripts/test/ProcessManagement/Transition.t,v
retrieving revision 1.3
retrieving revision 1.4
diff -2 -u -d -r1.3 -r1.4
--- Transition.t 20 Nov 2012 16:11:11 -0000 1.3
+++ Transition.t 11 Jan 2013 17:29:15 -0000 1.4
@@ -1,5 +1,5 @@
# --
# Transition.t - Transition module testscript
-# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
+# Copyright (C) 2001-2013 OTRS AG, http://otrs.org/
# --
# $Id$
@@ -870,4 +870,44 @@
},
+ # Check: Regexp test for true (with plain text Regexp)
+ {
+ Check => {
+ Config => {
+ 'T2' . $RandomID => {
+ Name => 'Transition 2 optional',
+ Condition => {
+ Type => 'and',
+ Cond1 => {
+ Fields => {
+ Queue => ['Raw'],
+ },
+ },
+ Cond2 => {
+ Fields => {
+ DynamicField_Make => {
+ Type => 'Regexp',
+ Match => '^VW$',
+ },
+ },
+ },
+ Cond3 => {
+ Fields => {
+ DynamicField_VWModel => ['2'],
+ },
+ },
+ },
+ },
+ },
+ Data => {
+ Queue => ['Raw'],
+ DynamicField_Make => 'VW',
+ DynamicField_VWModel => ['2'],
+ },
+ TransitionEntityID => 'T2' . $RandomID,
+ Message => 'TransitionCheck() (Regexp check with plain text Regexp)',
+ TestType => 'True',
+ },
+ },
+
# Check: Regexp test for fail
{
@@ -910,4 +950,44 @@
},
+ # Check: Regexp test for fail (with plain text Regexp)
+ {
+ Check => {
+ Config => {
+ 'T2' . $RandomID => {
+ Name => 'Transition 2 optional',
+ Condition => {
+ Type => 'and',
+ Cond1 => {
+ Fields => {
+ Queue => ['Raw'],
+ },
+ },
+ Cond2 => {
+ Fields => {
+ DynamicField_Make => {
+ Type => 'Regexp',
+ Match => '^VW$',
+ },
+ },
+ },
+ Cond3 => {
+ Fields => {
+ DynamicField_VWModel => ['2'],
+ },
+ },
+ },
+ },
+ },
+ Data => {
+ Queue => ['Raw'],
+ DynamicField_Make => 'oVoWo',
+ DynamicField_VWModel => ['2'],
+ },
+ TransitionEntityID => 'T2' . $RandomID,
+ Message => 'TransitionCheck() (Regexp fail check with plain text Regexp)',
+ TestType => 'False',
+ },
+ },
+
# Check: Module test for true
{
---------------------------------------------------------------------
OTRS mailing list: cvs-log - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/cvs-log
To unsubscribe: http://lists.otrs.org/cgi-bin/listinfo/cvs-log