From 7816c5f049a3810325e92b45764a4483fcaabaac Mon Sep 17 00:00:00 2001
From: gary_williams <gary_williams@localhost>
Date: Tue, 25 Nov 2008 17:19:55 +0000
Subject: [PATCH] Issue 3632: known issue feature in test reports unreliable
---
opends/tests/staf-tests/shared/functions/snmp.xml | 26 ++++++++++++++++++++++++--
1 files changed, 24 insertions(+), 2 deletions(-)
diff --git a/opends/tests/staf-tests/shared/functions/snmp.xml b/opends/tests/staf-tests/shared/functions/snmp.xml
index 65390d1..d351034 100755
--- a/opends/tests/staf-tests/shared/functions/snmp.xml
+++ b/opends/tests/staf-tests/shared/functions/snmp.xml
@@ -556,6 +556,12 @@
</function-arg-description>
<function-arg-property name="type" value="string" />
</function-arg-def>
+ <function-arg-def name="knownIssue" type="optional" default="None">
+ <function-arg-description>
+ Known issue. Corresponds to an issue number.
+ </function-arg-description>
+ <function-arg-property name="type" value="string" />
+ </function-arg-def>
</function-map-args>
<sequence>
@@ -606,7 +612,8 @@
'location' : location ,
'command' : STAFCmd ,
'arguments' : '%s --set enabled:true' % STAFCmdParams ,
- 'expectedRC': expectedRC
+ 'expectedRC': expectedRC ,
+ 'knownIssue': knownIssue
}
</call>
@@ -742,6 +749,12 @@
</function-arg-description>
<function-arg-property name="type" value="integer"/>
</function-arg-def>
+ <function-arg-def name="issue" type="optional" default="None">
+ <function-arg-description>
+ Issue id. Corresponds to an issue number.
+ </function-arg-description>
+ <function-arg-property name="type" value="string"/>
+ </function-arg-def>
</function-map-args>
<sequence>
@@ -823,7 +836,16 @@
</if>
</sequence>
<else>
- <tcstatus result="'fail'">'Timer failed to begin.'</tcstatus>
+ <if expr="issue == None">
+ <tcstatus result="'fail'"/>
+ <else>
+ <sequence>
+ <call function="'setKnownIssue'">
+ { 'issueId' : issue }
+ </call>
+ </sequence>
+ </else>
+ </if>
</else>
</if>
--
Gitblit v1.10.0