Creating A Custom Test Class Script From Scratch - Novell ZENWORKS NETWORK ACCESS CONTROL 5.0 - 09-22-2008 User Manual

Table of Contents

Advertisement

ms1-40612-1162365754580-7: }, text = <UpdateRequest>
_____________________________________________________________________________
<requestParameters>
<entry>
<string>UPDATE_DATA</string>
<string>/tmp/customUpdatePkg.29285.tar.gz</string>
</entry>
</requestParameters>
</UpdateRequest>
_____________________________________________________________________________
00:22:34 DEBUG Waiting for a response on :TemporaryQueue-{TD{ID:perf-ms1-
40612-1162365754580-1:0}TD}ID:perf-ms1-40612-1162365754580-6:0
_____________________________________________________________________________
00:22:36 DEBUG Message received: ACTIVEMQ_TEXT_MESSAGE: id = 0
ActiveMQMessage{ , jmsMessageID = ID:perf-ms1-51331-1162363440379-15:3,
bodyAsBytes = org.activemq.io.util.ByteArray@1362012, readOnlyMessage = true,
jmsClientID = '93baaf5a-b0ed-4fc2-a3ae-ec6460caedc0' , jmsCorrelationID =
'null' , jmsDestination = TemporaryQueue-{TD{ID:perf-ms1-40612-1162365754580-
1:0}TD}ID:perf-ms1-40612-1162365754580-6:0, jmsReplyTo = null, jmsDeliveryMode
= 2, jmsRedelivered = false, jmsType = 'null' , jmsExpiration = 1162365766750,
jmsPriority = 4, jmsTimestamp = 1162365756750, properties = null,
readOnlyProperties = true, entryBrokerName = '172.30.1.50' , entryClusterName
= 'default' , consumerNos = [0], transactionId = 'null' , xaTransacted = false,
consumerIdentifer = 'ID:perf-ms1-40612-1162365754580-1:0.1.1' ,
messageConsumed = false, transientConsumed = false, sequenceNumber = 3,
deliveryCount = 1, dispatchedFromDLQ = false, messageAcknowledge =
org.activemq.ActiveMQSession@73a34b, jmsMessageIdentity = null, producerKey =
ID:perf-ms1-51331-1162363440379-15: }, text =
<NACResponse><resultStatus>true</resultStatus><response class="string">9X</
response><ip>172.30.1.50</ip><id>MNM</id><originalTimeStamp>1162365756707</
originalTimeStamp></NACResponse>
00:22:36 DEBUG Received: <NACResponse><resultStatus>true</
resultStatus><response class="string">9X</response><ip>172.30.1.50</
ip><id>MNM</id><originalTimeStamp>1162365756707</originalTimeStamp></
NACResponse>
Done
NOTE: The output between the "+ Sending XML message to MS to install and distribute
custom scripts" message and the "Done" message in
page 346
is output from the command that installed the custom scripts and shows the status of
the sending the XML JMS request to the MS.

16.10.4 Creating a Custom Test Class Script from Scratch

Creating a custom test script is similar to the previous error message example; however, you must
define a few more things and then add your own test functionality. Examine the test script template
shown in
"testTemplate.py" on page
comfortable with the template, the following section contains an example that shows how to create a
checkOpenPorts.py test script, which tests an endpoint for specified open ports.
"Example InstallCustomTests Output" on
348. The comments explain each section of code. Once you are
System Administration 347

Advertisement

Table of Contents
loading

This manual is also suitable for:

Zenworks network access control 5.0

Table of Contents