# HG changeset patch
# User Guolian Yun <yunguol(a)cn.ibm.com>
# Date 1207016212 25200
# Node ID cb353ff8b1cc60ba8c2d4bc3de9807a024cfac4d
# Parent e9037a5a7df99bb63ae5e90ade698592af7b7e92
[CU] add indicatons attribute in server class to keep received indications
Signed-off-by: Guolian Yun <yunguol(a)cn.ibm.com>
diff -r e9037a5a7df9 -r cb353ff8b1cc tools/indication_tester.py
--- a/tools/indication_tester.py Mon Mar 10 12:05:59 2008 -0700
+++ b/tools/indication_tester.py Mon Mar 31 19:16:52 2008 -0700
@@ -295,6 +295,7 @@ class CIMSocketHandler(BaseHTTPServer.Ba
print "Got indication: %s" % indication
if self.server.print_ind:
print "%s\n\n" % data
+ self.server.indications.append(indication)
class CIMIndicationSubscription:
def __init__(self, name, typ, ns, print_ind, sysname):
@@ -306,6 +307,7 @@ class CIMIndicationSubscription:
self.server = BaseHTTPServer.HTTPServer(('', 8000), CIMSocketHandler)
self.server.print_ind = print_ind
self.port = 8000
+ self.server.indications = []
self.filter_xml = filter_xml(name, typ, ns, sysname)
self.handler_xml = handler_xml(name, self.port, sysname)