Skip to Content.
Sympa Menu

perfsonar-dev - [GEANT/SA2/ps-java-services] r5578 - in trunk/perfsonar-java-xml-ls: . doc doc/test src/test src/test/soapUI src/test/soapUI/lib src/test/soapUI/src src/test/soapUI/src/org src/test/soapUI/src/org/perfsonar src/test/soapUI/src/org/perfsonar/soapUI src/test/soapUI/src/org/perfsonar/soapUI/ls src/test/soapUI/xsd src/test/soapUI/xsd/Deregister src/test/soapUI/xsd/Echo src/test/soapUI/xsd/Keepalive src/test/soapUI/xsd/Query src/test/soapUI/xsd/Register

Subject: perfsonar development work

List archive

[GEANT/SA2/ps-java-services] r5578 - in trunk/perfsonar-java-xml-ls: . doc doc/test src/test src/test/soapUI src/test/soapUI/lib src/test/soapUI/src src/test/soapUI/src/org src/test/soapUI/src/org/perfsonar src/test/soapUI/src/org/perfsonar/soapUI src/test/soapUI/src/org/perfsonar/soapUI/ls src/test/soapUI/xsd src/test/soapUI/xsd/Deregister src/test/soapUI/xsd/Echo src/test/soapUI/xsd/Keepalive src/test/soapUI/xsd/Query src/test/soapUI/xsd/Register


Chronological Thread 
  • From:
  • To:
  • Subject: [GEANT/SA2/ps-java-services] r5578 - in trunk/perfsonar-java-xml-ls: . doc doc/test src/test src/test/soapUI src/test/soapUI/lib src/test/soapUI/src src/test/soapUI/src/org src/test/soapUI/src/org/perfsonar src/test/soapUI/src/org/perfsonar/soapUI src/test/soapUI/src/org/perfsonar/soapUI/ls src/test/soapUI/xsd src/test/soapUI/xsd/Deregister src/test/soapUI/xsd/Echo src/test/soapUI/xsd/Keepalive src/test/soapUI/xsd/Query src/test/soapUI/xsd/Register
  • Date: Wed, 7 Apr 2010 11:00:13 +0100

Author: psnc.jedrzejewski
Date: 2010-04-07 11:00:12 +0100 (Wed, 07 Apr 2010)
New Revision: 5578

Added:
trunk/perfsonar-java-xml-ls/doc/
trunk/perfsonar-java-xml-ls/doc/test/
trunk/perfsonar-java-xml-ls/doc/test/LS - Functional Testing Specification
Document (LS 1.5 - MDM 3.3).doc
trunk/perfsonar-java-xml-ls/src/test/soapUI/
trunk/perfsonar-java-xml-ls/src/test/soapUI/lib/
trunk/perfsonar-java-xml-ls/src/test/soapUI/lib/log4j-1.2.8.jar

trunk/perfsonar-java-xml-ls/src/test/soapUI/perfsonar-LS-base2-soapui-project.xml
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/log4j.properties
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/

trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/LsAuthenticator.java

trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/TestUtil.java
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/

trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterRequest.xsd

trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterResponse.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/nmwgr.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoRequest.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoResponse.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/nmwgr.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/

trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveRequest.xsd

trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveResponse.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/nmwgr.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryRequest.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryResponse.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/nmwgr.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/psservice.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/xquery.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/

trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterRequest.xsd

trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterResponse.xsd
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/nmwgr.xsd
Log:
Functional testing for XML LS

Added: trunk/perfsonar-java-xml-ls/doc/test/LS - Functional Testing
Specification Document (LS 1.5 - MDM 3.3).doc
===================================================================
(Binary files differ)


Property changes on: trunk/perfsonar-java-xml-ls/doc/test/LS - Functional
Testing Specification Document (LS 1.5 - MDM 3.3).doc
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/lib/log4j-1.2.8.jar
===================================================================
(Binary files differ)


Property changes on:
trunk/perfsonar-java-xml-ls/src/test/soapUI/lib/log4j-1.2.8.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/perfsonar-LS-base2-soapui-project.xml
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/perfsonar-LS-base2-soapui-project.xml
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/perfsonar-LS-base2-soapui-project.xml
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,11326 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<con:soapui-project name="perfsonar-LS-base2" resourceRoot="${projectDir}"
soapui-version="3.0.1" abortOnError="false" runType="SEQUENTIAL"
defaultScriptLanguage="Groovy"
xmlns:con="http://eviware.com/soapui/config";><con:settings/><con:interface
xsi:type="con:WsdlInterface" wsaVersion="NONE"
name="LookupServiceSoap11Binding" type="wsdl"
bindingName="{http://axis2interface.service.base2.perfsonar.org}LookupServiceSoap11Binding";
soapVersion="1_1" anonymous="optional"
definition="http://localhost:8080/perfsonar-java-xml-ls/services/LookupService?wsdl";

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:settings/><con:definitionCache
type="TEXT"
rootPart="http://localhost:8080/perfsonar-java-xml-ls/services/LookupService?wsdl";><con:part><con:url>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService?wsdl</con:url><con:content><![CDATA[<wsdl:definitions
targetNamespace="http://axis2interface.service.base2.perfsonar.org";
xmlns:wsdl="http://schemas.xmlsoap.org/ws
dl/" xmlns:ns1="http://org.apache.axis2/xsd";
xmlns:ns="http://axis2interface.service.base2.perfsonar.org";
xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl";
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/";
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/";>
+ <wsdl:documentation>LookupService</wsdl:documentation>
+ <wsdl:types>
+ <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://axis2interface.service.base2.perfsonar.org";>
+ <xs:element name="message">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="message" nillable="true"
type="xs:anyType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="messageResponse">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" name="return" nillable="true"
type="xs:anyType"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="messageRequest">
+ <wsdl:part name="parameters" element="ns:message"/>
+ </wsdl:message>
+ <wsdl:message name="messageResponse">
+ <wsdl:part name="parameters" element="ns:messageResponse"/>
+ </wsdl:message>
+ <wsdl:portType name="LookupServicePortType">
+ <wsdl:operation name="message">
+ <wsdl:input message="ns:messageRequest" wsaw:Action="urn:message"/>
+ <wsdl:output message="ns:messageResponse"
wsaw:Action="urn:messageResponse"/>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="LookupServiceSoap11Binding"
type="ns:LookupServicePortType">
+ <soap:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document"/>
+ <wsdl:operation name="message">
+ <soap:operation soapAction="urn:message" style="document"/>
+ <wsdl:input>
+ <soap:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="LookupServiceSoap12Binding"
type="ns:LookupServicePortType">
+ <soap12:binding transport="http://schemas.xmlsoap.org/soap/http";
style="document"/>
+ <wsdl:operation name="message">
+ <soap12:operation soapAction="urn:message" style="document"/>
+ <wsdl:input>
+ <soap12:body use="literal"/>
+ </wsdl:input>
+ <wsdl:output>
+ <soap12:body use="literal"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:binding name="LookupServiceHttpBinding"
type="ns:LookupServicePortType">
+ <http:binding verb="POST"/>
+ <wsdl:operation name="message">
+ <http:operation location="LookupService/message"/>
+ <wsdl:input>
+ <mime:content type="text/xml" part="message"/>
+ </wsdl:input>
+ <wsdl:output>
+ <mime:content type="text/xml" part="message"/>
+ </wsdl:output>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="LookupService">
+ <wsdl:port name="LookupServiceHttpSoap11Endpoint"
binding="ns:LookupServiceSoap11Binding">
+ <soap:address
location="http://150.254.149.195:8080/perfsonar-java-xml-ls/services/LookupService.LookupServiceHttpSoap11Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="LookupServiceHttpSoap12Endpoint"
binding="ns:LookupServiceSoap12Binding">
+ <soap12:address
location="http://150.254.149.195:8080/perfsonar-java-xml-ls/services/LookupService.LookupServiceHttpSoap12Endpoint/"/>
+ </wsdl:port>
+ <wsdl:port name="LookupServiceHttpEndpoint"
binding="ns:LookupServiceHttpBinding">
+ <http:address
location="http://150.254.149.195:8080/perfsonar-java-xml-ls/services/LookupService.LookupServiceHttpEndpoint/"/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache><con:endpoints><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:endpoint>http://150.254.149.194:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:endpoint>http://ndb1.internet2.edu:9991/perfSONAR_PS/services/gLS</con:endpoint></con:endpoints><con:operation
isOneWay="false" action="urn:message" name="message"
bindingOperationName="message" type="Request-Response" inputName=""
receivesAttachments="false" sendsAttachments="false"
anonymous="optional"><con:settings/><con:call name="discovery" outgoingWss=""
incomingWss=""><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:axis="http://axis2interfa
ce.service.base2.perfsonar.org">
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<!-- Begin XML -->
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+
+<!-- can have multiples of each, note that this creates an 'or' relationship
-->
+ <nmtb:address
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
type="ipv4">198.32.8.34</nmtb:address>
+
+<!-- <nmtb:address
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
type="ipv4">128.4.100.45</nmtb:address>
+
+ <nmtb:domain
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";>
+ <nmtb:name type="dns">edu</nmtb:name>
+ </nmtb:domain>
+
+ <nmtb:domain
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";>
+ <nmtb:name type="dns">udel.edu</nmtb:name>
+ </nmtb:domain>
+
+
<nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/utilization/2.0</nmwg:eventType>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/errors/2.0</nmwg:eventType>
+
+ <summary:parameters>
+ <nmwg:parameter name="keyword">project:Geant2</nmwg:parameter>
+ </summary:parameters> -->
+
+<!-- the combination of all things is an 'and' relationsip, this entire
subject is therefore:
+
+('128.4.133.167' or '128.4.100.45') and
+('udel.edu' or 'edu') and
+('http://ggf.org/ns/nmwg/characteristic/utilization/2.0' or
'http://ggf.org/ns/nmwg/characteristic/errors/2.0') and
+('project:Geant2')
+
+-->
+
+ </summary:subject>
+
+ <!-- need this... -->
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+
+</nmwg:message>
+
+<!-- End XML -->
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508" action="urn:message"/><con:wsrmConfig
version="1.2"/></con:call><con:call name="query" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers">&lt;xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for dddd$metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508" action="urn:message"/><con:wsrmConfig
version="1.2"/></con:call></con:operation></con:interface><con:testSuite
name="Registration"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Correct requests" searchProperties="true"
id="b9504be0-bb86-4655-b561-e1c060281525" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.1.2.1.1"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.1.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.1.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.1.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd1
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="meta1">
+ </nmwg:data>
+
+
+ <nmwg:data id="data2" metadataIdRef="meta2">
+ </nmwg:data>
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.1.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.1.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting><con:setting

id="com.eviware.soapui.impl.support.AbstractHttpRequest@follow-redirects">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupServic
e</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";>
+

+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject id="commonParameters"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+
<psservice:accessPoint>http://reed.man.poznan.pl:8080/axis/services/MA</psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>This is my testing
MA</psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1"></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2"> </nmwg:metadata>
+ </nmwg:data>
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.1.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.1.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg123:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar2wsx="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg123="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psserviceZZZ="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg123:metadata id="serviceLookupInfo">
+ <perfsonar2wsx:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psserviceZZZ:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psserviceZZZ:serviceName>dsdsd</psserviceZZZ:serviceName>
+ <psserviceZZZ:accessPoint>
+ dsdsd
+ </psserviceZZZ:accessPoint>
+ <psserviceZZZ:serviceType>MA</psserviceZZZ:serviceType>
+ <psserviceZZZ:serviceDescription>
+ This is my testing MA
+ </psserviceZZZ:serviceDescription>
+ </psserviceZZZ:service>
+ </perfsonar2wsx:subject>
+ </nmwg123:metadata>
+
+ <nmwg123:data id="data0" metadataIdRef="serviceLookupInfo">
+ </nmwg123:data>
+
+
+
+ </nmwg123:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Malformed Requests" searchProperties="true"
id="0697fd4c-a651-46e8-97a8-2a5c2cb6a0fa" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.1.2.2.1 --- a"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.1 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/12";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"
disabled="true"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.1 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.1 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/basgge/2.0/lalala";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/vcvxcv";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsffffdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsfffdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="meta1">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data2" metadataIdRef="meta2">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.3 --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.3 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/lzlzllz";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";>
+

+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject id="commonParameters"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+
<psservice:accessPoint>http://reed.man.poznan.pl:8080/axis/services/MA</psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>This is my testing
MA</psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1"></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2"> </nmwg:metadata>
+ </nmwg:data>
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.3 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.3 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/bdsdase/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";>
+

+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject id="commonParameters"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+
<psservice:accessPoint>http://reed.man.poznan.pl:8080/axis/services/MA</psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>This is my testing
MA</psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1"></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2"> </nmwg:metadata>
+ </nmwg:data>
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.4 --- a"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.4 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+ <nmwg:random1 id="serviceLookupInfo">
+ random element
+ </nmwg:random1>
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.4 --- b"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.4 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+
+ <nmwg:random1 id="serviceLookupInfo">
+ random element
+ </nmwg:random1>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.4 --- c"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.4 --- c" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ <nmwg:random1 id="serviceLookupInfo">
+ random element
+ </nmwg:random1>
+ </nmwg:data>
+
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.5" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmls
oap.org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+ <nmwg:random1 id="serviceLookupInfo">
+ random element
+ </nmwg:random1>
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="meta1">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data2" metadataIdRef="meta2">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.6 --- a"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.6 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";>
+
+ <nmwg:random1 id="serviceLookupInfo">
+ random element
+ </nmwg:random1>
+
+

+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject id="commonParameters"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+
<psservice:accessPoint>http://reed.man.poznan.pl:8080/axis/services/MA</psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>This is my testing
MA</psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1"></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2"> </nmwg:metadata>
+ </nmwg:data>
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.6 --- b"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.6 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/";>
+
+

+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject id="commonParameters"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+
<psservice:accessPoint>http://reed.man.poznan.pl:8080/axis/services/MA</psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>This is my testing
MA</psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1"></nmwg:metadata>
+
+
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2"> </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:random1 id="serviceLookupInfo">
+ random element
+ </nmwg:random1>
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.7 --- a"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.7 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata>
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.7 --- b"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.7 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0">
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.2.7 --- c"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.2.7 --- c" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://
schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="serviceLookupInfo">
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Invalid data" searchProperties="true"
id="05b0a611-bf1c-4b25-bb29-dca2251ecd56" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.1.2.3.1"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="m2"></nmwg:metadata>
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type = "LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>zzz</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="meta1">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+
+ <nmwg:data id="data2" metadataIdRef="meta2">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfErrors = 0
+def noOfSuccess = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==~ /.*error.*/){
+ noOfErrors++
+ }else if(it.getValueAsString() ==~ /.*success.*/){
+ noOfSuccess++
+ }
+}
+
+assert noOfErrors == 1
+assert noOfSuccess ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelo
pe/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type = "LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data2" metadataIdRef="meta2">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data0" metadataIdRef="meta1">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfErrors = 0
+def noOfSuccess = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==~ /.*error.*/){
+ noOfErrors++
+ }else if(it.getValueAsString() ==~ /.*success.*/){
+ noOfSuccess++
+ }
+}
+
+assert noOfErrors == 1
+assert noOfSuccess ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.6"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.6" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelo
pe/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type = "LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.7"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.7" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+
<psservice:serviceDescription></psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data2" metadataIdRef="meta2">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data0" metadataIdRef="meta1">
+ <nmwg:metadata></nmwg:metadata>
+ </nmwg:data>
+
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfErrors = 0
+def noOfSuccess = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==~ /.*error.*/){
+ noOfErrors++
+ }else if(it.getValueAsString() ==~ /.*success.*/){
+ noOfSuccess++
+ }
+}
+
+assert noOfErrors == 1
+assert noOfSuccess ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.8 --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.8 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org
/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.8 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.8 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsdddd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsdsss
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA2
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ </nmwg:data>
+
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfErrors = 0
+def noOfSuccess = 0
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==~ /.*error.*/){
+ noOfErrors++
+ }else if(it.getValueAsString() ==~ /.*success.*/){
+ noOfSuccess++
+ }
+}
+
+assert noOfErrors == 0
+assert noOfSuccess ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.1.2.3.9"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.1.2.3.9" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelo
pe/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>dsdsdddd</psservice:serviceName>
+ <psservice:accessPoint>
+ dsdsdsss
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA2
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data2" metadataIdRef="its_not_here">
+ </nmwg:data>
+
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Result Code"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite

name="Deregistration"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Correct requests" searchProperties="true"
id="92378658-9e75-495d-85d8-a880281aa939" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit a --- a"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.1.1R --- a"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.1R --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.1.1 --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.1 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.1.1T --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.1T --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoa
p.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit a --- b"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.1.1R --- b"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.1R --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MAddd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA2222</psservice:serviceName>
+ <psservice:accessPoint>
+
http://reed.man.poznan.pl:8080/axis/services/MAddd2222222
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA22222
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ <nmwg:metadata id="meta2">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hs2222222222tnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.22</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.1.1 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.1 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter name="lsKey"
value="http://reed.man.poznan.pl:8080/axis/services/MAddd"/>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.1.1T --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.1T --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoa
p.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MAddd</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.1.1T --- b2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.1T --- b2" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmls
oap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MAddd2222222
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit b"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.1.2R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.2R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MAddd
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.1.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter name="lsKey"
value="http://reed.man.poznan.pl:8080/axis/services/MAddd"/>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.1.2T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.1.2T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MAddd</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Malformed Requests" searchProperties="true"
id="cc442184-44e0-4c94-b000-531daed36720" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.1R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.1R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+
xmlns:nmwg="http://ggf.org/ns/nmwg/basffffffffffffffffffffffffffffffffe/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.1T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.1T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 1"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.2"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter name="lsKey">hfiuas fiasuf iasf
basiubfaisufbi</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 2"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.3 --- a"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.3 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 3"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.3 --- b"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.3 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter name="lsKey"/>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 4"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.4R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.4R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <psservice:key
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </psservice:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.4T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.4T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 5"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.5R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.5R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter name="lsKey"
>http://reed.man.poznan.pl:8080/axis/services/MA </nmwg:parameter>
+ </nmwg:parameters>
+
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.5T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.5T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 6"
disabled="true"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.6R" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.6R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.6" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.6" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmls
oap.org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ <random> Hello randomness ! </random>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 7"
disabled="true"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.2.7R" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.7R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.2.7" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.2.7" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmls
oap.org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="sdfasfasfas">fasfasafafasfasfasf</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+ <random> Hello randomness ! </random>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Invalid Data" searchProperties="true"
id="a6b85723-2ab1-48fa-97d2-ec8281fb300a" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit 1"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.3.1R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.1R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.1T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.1T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 2"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.3.2R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.2R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.2T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.2T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 3"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.3.3R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.3R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">his/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.3T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.3T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 4"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.3.4R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.4R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message messageIdRef="blah2" type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
id="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.4T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.4T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 5"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.3.5R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.5R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
>http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.5T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.5T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 6"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.3.6R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.6R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.6"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.6" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.6T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.6T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 7"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.2.2.3.7R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.7R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.7"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.7" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id = "blah1" messageIdRef="blah2"
type="LSDeregisterRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
+<!--
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/"; -->
+
+
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <nmwg:metadata id="meta1" >
+ <nmwg:key id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc4">
+ <nmwg:parameters
id="localhost.localdomain.-6236687d:116c5a2ab6a:-7fc3">
+ <nmwg:parameter
name="lsKey">http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+
+ <nmwg:data id="data1" metadataIdRef="meta11"/>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Deregister/LSDeregisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.2.2.3.7T"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.2.2.3.7T" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/e
nvelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite

name="Keepalive"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Correct requests" searchProperties="true"
id="52e5f6af-468f-4811-bc30-54c5ed797319" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit a"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.1.1R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.1.1R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.1.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.1.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit b"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.1.2R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.1.2R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="serviceLookupInfo1">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA1
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo1">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.1.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.1.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+ <nmwg:metadata id="key_to_keepalive1">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MA1</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="key_to_keepalive1"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Malformed Requests" searchProperties="true"
id="a78fec81-1f82-4a3e-b462-7f54447a6a88" timeout="0" wsrmEnabled="false"
wsrmVersion="1.0" wsrmAckTo=""><con:settings/><con:testStep type="groovy"
name="DbInit"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.2.1R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.1R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.2.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base22/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 2"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.2.2R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.2R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.2.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MADFDSDS</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 3"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.2.3R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.3R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.2.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 4"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.2.4R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.4R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.2.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MAssss</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 5"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.2.5R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.5R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.2.5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.2.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="xDbInit 4"
disabled="true"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="x2.3.1.2.4R" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="x2.3.1.2.4R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="x2.3.1.2.4" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="x2.3.1.2.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xm
lsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MA</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+ <nmwg:random/>
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Invalid Data" searchProperties="true" timeout="0"
wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo=""
id="1926f550-515f-4d45-bd50-b45b4da5e834"><con:settings/><con:testStep
type="groovy" name="DbInit a"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.3.1R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.3.1R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.3.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.3.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+
+</nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit b"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.3.2R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.3.2R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.3.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.3.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit c"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.3.2.3.3R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.3.3R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.3.2.3.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.3.2.3.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message type="LSKeepaliveRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="key_to_keepalive">
+ <nmwg:key>
+ <nmwg:parameters id="keys">
+ <nmwg:parameter name="lsKey">
+
http://reed.man.poznan.pl:8080/axis/services/MADFDSDS</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="key_to_keepalive"/>
+ </nmwg:message>
+
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Keepalive/LSKeepaliveResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite

name="Query"><con:description/><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Correct requests" searchProperties="true" timeout="0"
wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo=""
id="1bf181e4-8dcb-464e-b2de-fc03dd6140a8"><con:settings/><con:testStep
type="groovy" name="DbInit 1 --- a"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.1R --- a"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1R --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.1 --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//lookup-storage-from-query/nmwg:metadata/perfsonar:subject/psservice:service[psservice:serviceName="My_test_MA"]/psservice:accessPoint</path><content>http://reed.man.poznan.pl:8080/axis/services/MA</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 1 --- b"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.1R --- b"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1R --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA2</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA2
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ <nmwg:metadata id="meta12">
+ <perfsonar:subject id="subj2"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng2.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p3p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.9.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.1 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//lookup-storage-from-query/nmwg:metadata/perfsonar:subject/psservice:service[psservice:serviceName="My_test_MA"]/psservice:accessPoint</path><content>http://reed.man.poznan.pl:8080/axis/services/MA</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result2"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//lookup-storage-from-query/nmwg:metadata/perfsonar:subject/psservice:service[psservice:serviceName="My_test_MA2"]/psservice:accessPoint</path><content>http://reed.man.poznan.pl:8080/axis/services/MA2</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 1 --- c"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.1R --- c"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1R --- c" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA2</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA2
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ <nmwg:metadata id="meta12">
+ <perfsonar:subject id="subj2"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng2.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p3p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.9.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.1 --- c"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1 --- c" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA" and
$metadata//psservice:serviceName="My_test_MA2"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//lookup-storage-from-query/nmwg:metadata/perfsonar:subject/psservice:service[psservice:serviceName="My_test_MA2"]/psservice:accessPoint</path><content>http://reed.man.poznan.pl:8080/axis/services/MA2</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 1 --- d"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.1R --- d"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1R --- d" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA2</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA2
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ <nmwg:metadata id="meta12">
+ <perfsonar:subject id="subj2"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng2.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p3p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.9.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.1 --- d"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.1 --- d" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ let $metadata :=
/nmwg:store[@type="LSStore"]/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ return <val>{count($metadata)}</val>
+
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+//val</path><content>2</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 2 --- a"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.2R --- a"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.2R --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.2 --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.2 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceName="My_test_MA2"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//psservice:datum</path><content>&lt;psservice:datum
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/></content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.2 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.2 --- b" outgoingWss="" incomingWss=""><con:settings><con:setti
ng
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MAXXX"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//psservice:datum</path><content>&lt;psservice:datum
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/></content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 3"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.3R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.3R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ /nmwg:storeaaa/nmwg:metadata
+
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//psservice:datum</path><content>&lt;psservice:datum
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"/></content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 4"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.4R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.4R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA2</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA2
+ </psservice:accessPoint>
+ <psservice:serviceType>MA2</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA2
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid2.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown2</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud2</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.234</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>100000000002</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.4 --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.4 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/"
xmlns:axis="http://axis2interface.service.base2.perfsonar.org";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<!-- Begin XML -->
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+
+<!-- can have multiples of each, note that this creates an 'or' relationship
-->
+ <nmtb:address
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
type="ipv4">198.32.8.34</nmtb:address>
+ </summary:subject>
+
+ <!-- need this... -->
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+
+</nmwg:message>
+
+<!-- End XML -->
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match" name="XPath Match - Type"><con:configuration><path>declare
namespace psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
quantity"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+count(/soapenv:Envelope//perfsonar:subject)</path><content>1</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
content"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope//perfsonar:subject//psservice:accessPoint</path><content>http://reed.man.poznan.pl:8080/axis/services/MA</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.4 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.4 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UT

F-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:axis="http://axis2interface.service.base2.perfsonar.org";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<!-- Begin XML -->
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+
+<!-- can have multiples of each, note that this creates an 'or' relationship
-->
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </summary:subject>
+
+ <!-- need this... -->
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+
+</nmwg:message>
+
+<!-- End XML -->
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match" name="XPath Match - Type"><con:configuration><path>declare
namespace psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
quantity"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+count(/soapenv:Envelope//perfsonar:subject)</path><content>2</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 5"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.1.5R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.5R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.1.5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.1.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:axis="http://axis2interface.service.base2.perfsonar.org";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<!-- Begin XML -->
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+
+<!-- can have multiples of each, note that this creates an 'or' relationship
-->
+ <nmtb:address
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
type="ipv4">198.32.18.34</nmtb:address>
+ </summary:subject>
+
+ <!-- need this... -->
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+
+</nmwg:message>
+
+<!-- End XML -->
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match" name="XPath Match - Type"><con:configuration><path>declare
namespace psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+count(/soapenv:Envelope//perfsonar:subject)</path><content>0</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Malformed Requests" searchProperties="true" timeout="0"
wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo=""
id="5c0d8561-72ef-4588-b3b0-138fbeb15fef"><con:settings/><con:testStep
type="groovy" name="DbInit 1"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.2.1R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.1R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.2.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwffasfasfg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 2"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.2.2R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.2R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.2.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:NOT_A_subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:NOT_A_subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 3"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.2.3R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.3R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA2</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA2
+ </psservice:accessPoint>
+ <psservice:serviceType>MA2</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA2
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid2.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown2</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud2</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.234</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>100000000002</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.2.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:axis="http://axis2interface.service.base2.perfsonar.org";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<!-- Begin XML -->
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+
xmlns:nmwg="http://XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX.org/ns/XXXXXXXXXXXXXXXXX/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+
+<!-- can have multiples of each, note that this creates an 'or' relationship
-->
+ <nmtb:address
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
type="ipv4">198.32.8.34</nmtb:address>
+ </summary:subject>
+
+ <!-- need this... -->
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+
+</nmwg:message>
+
+<!-- End XML -->
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Result"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 4"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.2.4R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.4R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+
+
+ <nmwg:metadata id="serviceLookupInfo2">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA2</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA2
+ </psservice:accessPoint>
+ <psservice:serviceType>MA2</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA2
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo2">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid2.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown2</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud2</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.234</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>100000000002</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
2</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.2.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.2.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:axis="http://axis2interface.service.base2.perfsonar.org";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<!-- Begin XML -->
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:xxx
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+
+<!-- can have multiples of each, note that this creates an 'or' relationship
-->
+ <nmtb:address
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
type="ipv4">198.32.8.34</nmtb:address>
+ </summary:xxx>
+
+ <!-- need this... -->
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+
+</nmwg:message>
+
+<!-- End XML -->
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Result"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Invalid data" searchProperties="true" timeout="0"
wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo=""
id="1d4bc99a-33e8-4555-bc94-1a29d3324c03"><con:settings/><con:testStep
type="groovy" name="DbInit 1"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.1R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.1R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $m in /nmwg:store/nmwg:metadata
+ let $s := $m/perfsonar:subject/psservice:service
+ let $accessPoint := $s/psservice:accessPoint
+ return $accessPoint
+
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+
+</nmwg:message>
+
+</soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 2"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.2R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.2R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message
+ type="LSQueryRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $m in /nmwg:store/nmwg:metadata
+ let $s := $m/perfsonar:subject/psservice:service
+ let $accessPoint := $s/psservice:accessPoint
+ return $accessPoint
+
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+
+</soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 3"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.3R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.3R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 4"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.4R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.4R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 5"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.5R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.5R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 6"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.6R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.6R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.6"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.6" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+Litwo! Ojczyzno moja! ty jesteÅ› jak zdrowie.
+Ile cię trzeba cenić, ten tylko się dowie,
+Kto cię stracił. Dziś piękność twą w całej ozdobie
+Widzę i opisuję, bo tęsknię po tobie
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 7"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.7R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.7R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>
+]]></con:request><con:assertion type="SOAP Response"/><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="GroovyScriptAssertion"
name="Script Assertion - Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.7"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.7" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ declare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
+
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ for $metadata in /nmwg:store/nmwg:metadata
+ let $metadata_id := $metadata/@id
+ let $data :=
/nmwg:store/nmwg:data[@metadataIdRef=$metadata_id]
+ where $metadata//psservice:serviceType="MA"
+ return &lt;lookup-storage-from-query&gt;
+ {$metadata} {$data}
+ &lt;/lookup-storage-from-query&gt;
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/sfasfasfservice/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 8"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.8R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.8R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.8"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.8" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message
+ type="LSQueryRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";>
+
+ <nmwg:metadata id="meta1">
+
+ <xquery:subject id="sub1">
+ decrrrlare namespace nmwg="http://ggf.org/ns/nmwg/base/2.0/";;
+ declare namespace
perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";;
+ declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";;
+ declare namespace
xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";;
+
+ /nmwg:storeaaa/nmwg:metadata
+
+ </xquery:subject>
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/query/xquery/2.0</nmwg:eventType>
+
+ </nmwg:metadata>
+ <nmwg:data id="data1" metadataIdRef="meta1" />
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Query/LSQueryResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" name="XPath Match - Type"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="groovy" name="DbInit 9"><con:settings/><con:config><script>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def protocol =
testRunner.testCase.testSuite.project.getPropertyValue("lsProtocol")
+def host = testRunner.testCase.testSuite.project.getPropertyValue("lsHost")
+def user =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistUser")
+def pass =
testRunner.testCase.testSuite.project.getPropertyValue("lsExistPass")
+def urlString = protocol+host+"/initDb"
+
+def stream = TestUtil.openStream(urlString,user,pass)
+stream.eachLine{
+ if(it != "DbInitializer - success"){
+ log.info("DB can't be initialized")
+ assert false
+ }else{
+ log.info("DB initialized")
+ }
+}</script></con:config></con:testStep><con:testStep type="request"
name="2.4.2.3.9R"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.9R" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/";>
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilisation/2.0/";>
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject
+ id="commonParameters"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <psservice:service id="serviceParameters"
+ xmlns:psservice=
+
"http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <perfsonar:subject id="subj1"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";>
+ <nmwgt:interface
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";>
+
<nmwgt:hostName>atlang-hstnng.abilene.ucaid.edu</nmwgt:hostName>
+ <nmwgt:ifName>unknown</nmwgt:ifName>
+ <nmwgt:ifDescription>
+
hstn:oc192(p2p)::show:intracloud</nmwgt:ifDescription>
+ <nmwgt:ifAddress
type="ipv4">198.32.8.34</nmwgt:ifAddress>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>10000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </perfsonar:subject>
+ <nmwg:eventType>utilisation</nmwg:eventType>
+ </nmwg:metadata>
+
+ </nmwg:data>
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Register/LSRegisterResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match - Result
Code"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace errors='http://ggf.org/ns/nmwg/characteristic/errors/2.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";;
+declare namespace nmwgr="http://ggf.org/ns/nmwg/result/2.0/";;
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType</path><content>success.ls.register</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.9 --- a"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.9 --- a" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.
org/soap/envelope/"
xmlns:axis="http://axis2interface.service.base2.perfsonar.org";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+ <xxx:address xmlns:xxx="http://this.url.is/incorrect/";
type="ipv4">198.32.8.34</xxx:address>
+ </summary:subject>
+
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+ </nmwg:metadata>
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match" name="XPath Match - Type"><con:configuration><path>declare
namespace psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+count(/soapenv:Envelope//perfsonar:subject)</path><content>0</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.4.2.3.9 --- b"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.4.2.3.9 --- b" outgoingWss=""
incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsona

r-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:axis="http://axis2interface.service.base2.perfsonar.org";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<!-- Begin XML -->
+
+<?xml version='1.0' encoding='UTF-8'?>
+<nmwg:message type="LSQueryRequest"
+ id="LSDiscoveryRequest"
+
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/";
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/";
+
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
+
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
+
xmlns:nmtl3="http://ogf.org/schema/network/topology/l3/20070828/";>
+
+ <nmwg:metadata id="meta1">
+ <summary:subject
xmlns:summary="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/summarization/2.0/";
id="subject.1">
+
+<!-- can have multiples of each, note that this creates an 'or' relationship
-->
+ <nmtb:xxx
xmlns:nmtb="http://ogf.org/schema/network/topology/base/20070828/";
type="ipv4">198.32.8.34</nmtb:xxx>
+ </summary:subject>
+
+ <!-- need this... -->
+
<nmwg:eventType>http://ogf.org/ns/nmwg/tools/org/perfsonar/service/lookup/discovery/summary/2.0</nmwg:eventType>

+
+
+ </nmwg:metadata>
+
+ <nmwg:data metadataIdRef="meta1" id="d1"/>
+
+</nmwg:message>
+
+<!-- End XML -->
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match" name="XPath Match - Type"><con:configuration><path>declare
namespace psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+/soapenv:Envelope/soapenv:Body/nmwg:message/@type</path><content>LSQueryResponse</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:assertion
type="XPath Match" name="XPath Match -
Result"><con:configuration><path>declare namespace
psservice='http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace
perfsonar='http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/';
+declare namespace nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+
+count(/soapenv:Envelope//perfsonar:subject)</path><content>0</content><allowWildcards>false</allowWildcards><ignoreNamspaceDifferences>false</ignoreNamspaceDifferences></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite

name="Echo"><con:description/><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Correct requests" searchProperties="true" timeout="0"
wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo=""
id="6a908806-14bd-43c0-a930-c286101f7e67"><con:settings/><con:testStep
type="request" name="2.5.2.1.1"><con:settings/><con:config
xsi:type="con:RequestStep" xmlns:x

si="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*success.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.1.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="yes"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfcorrectEventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==
"http://schemas.perfsonar.net/tools/admin/selftest/1.0";){
+ noOfcorrectEventTypes++
+ }
+}
+
+assert noOfcorrectEventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.1.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/s
oap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="true"/>
+
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfcorrectEventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==
"http://schemas.perfsonar.net/tools/admin/selftest/1.0";){
+ noOfcorrectEventTypes++
+ }
+}
+
+assert noOfcorrectEventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.1.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/s
oap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="test"/>
+
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfcorrectEventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==
"http://schemas.perfsonar.net/tools/admin/selftest/1.0";){
+ noOfcorrectEventTypes++
+ }
+}
+
+assert noOfcorrectEventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.1.5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.5" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/s
oap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ <nmwg:parameters>
+
+
+ <nmwg:parameter name="testDBSchema" value="true"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfcorrectEventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==
"http://schemas.perfsonar.net/tools/admin/selftest/1.0";){
+ noOfcorrectEventTypes++
+ }
+}
+
+assert noOfcorrectEventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.1.6"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.6" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/s
oap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ <nmwg:parameters>
+
+
+ <nmwg:parameter name="testDBSchema" value="test"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfcorrectEventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==
"http://schemas.perfsonar.net/tools/admin/selftest/1.0";){
+ noOfcorrectEventTypes++
+ }
+}
+
+assert noOfcorrectEventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.1.7"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.7" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/s
oap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBSchema" value="yes"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfcorrectEventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==
"http://schemas.perfsonar.net/tools/admin/selftest/1.0";){
+ noOfcorrectEventTypes++
+ }
+}
+
+assert noOfcorrectEventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.1.8"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.1.8" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/s
oap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/selftest/1.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="yes"/>
+ <nmwg:parameter name="testDBSchema" value="yes"/>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfcorrectEventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ if(it.getValueAsString() ==
"http://schemas.perfsonar.net/tools/admin/selftest/1.0";){
+ noOfcorrectEventTypes++
+ }
+}
+
+assert noOfcorrectEventTypes >=
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Malformed Requests" searchProperties="true" timeout="0"
wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo=""
id="43f43874-cc59-4e93-9fa9-5fe0fc90d8e1"><con:settings/><con:testStep
type="request" name="2.5.2.2.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.2.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapu

i.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="yes"/>
+ <nmwg:parameter name="testDBSchema" value="yes"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Echo/LSEchoResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.2.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.2.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Echo/LSEchoResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.2.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.2.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRquest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="yes"/>
+ <nmwg:parameter name="testDBSchema" value="yes"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.2.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.2.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.dddperfsonar.net/tools/admin/echo/2.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="yes"/>
+ <nmwg:parameter name="testDBSchema" value="yes"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion -
Schema"><con:configuration><scriptText>import
org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def s = holder.getDomNode("soapenv:Envelope/soapenv:Body/nmwg:message");
+def root = context.expand( '${projectDir}' )
+def xsdLocation = root+"/xsd/Echo/LSEchoResponse.xsd"
+
+assert TestUtil.validate(""+s,new
File(xsdLocation),log);</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
maxResults="0" name="Invalid data" searchProperties="true" timeout="0"
wsrmEnabled="false" wsrmVersion="1.0" wsrmAckTo=""
id="695bccb0-a8e3-46c8-924a-a3cd89dc7ac4"><con:settings/><con:testStep
type="request" name="2.5.2.3.1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.3.1" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.W

sdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/ls/2.0</nmwg:eventType>
+ <nmwg:parameters>
+
+
+ <nmwg:parameter name="testDBSchema" value="yeees"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.3.2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.3.2" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/ls/2.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="yeeees"/>
+
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.3.3"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.3.3" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/ls/2.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testConnection" value="yes"/>
+
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="meta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:testStep
type="request" name="2.5.2.3.4"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";><con:interface>LookupServiceSoap11Binding</con:interface><con:operation>message</con:operation><con:request
name="2.5.2.3.4" outgoingWss="" incomingWss=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@inline-response-attachments">false</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://localhost:8080/perfsonar-java-xml-ls/services/LookupService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/env
elope/" xmlns:xs="http://www.w3.org/2001/XMLSchema";>
+ <soapenv:Header/>
+ <soapenv:Body>
+
+<nmwg:message type="EchoRequest"
+ id="msg1"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+
+ <nmwg:metadata id="meta">
+
<nmwg:eventType>http://schemas.perfsonar.net/tools/admin/echo/ls/2.0</nmwg:eventType>
+ <nmwg:parameters>
+
+ <nmwg:parameter name="testDBConnection" value="yes"/>
+ <nmwg:parameter name="testDBSchema" value="yes"/>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+ <nmwg:data id="data" metadataIdRef="mta"/>
+</nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion" name="Script Assertion - Result
Code"><con:configuration><scriptText>import org.perfsonar.soapUI.ls.TestUtil;
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.responseContent )
+holder.namespaces["soapenv"]="http://schemas.xmlsoap.org/soap/envelope/";
+holder.namespaces["nmwg"]="http://ggf.org/ns/nmwg/base/2.0/";
+
+def noOfeventTypes = 0
+
+def eventTypes =
holder.getDomNodes("/soapenv:Envelope/soapenv:Body/nmwg:message/nmwg:metadata/nmwg:eventType");
+eventTypes.each{
+ assert it.getValueAsString() ==~ /.*error.*/
+ noOfeventTypes++
+}
+
+assert noOfeventTypes ==
1</scriptText></con:configuration></con:assertion><con:credentials><con:username
xsi:nil="true"/><con:password xsi:nil="true"/><con:domain
xsi:nil="true"/></con:credentials><con:wsaConfig mustUnderstand="NONE"
version="200508"/><con:wsrmConfig
version="1.2"/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties><con:property><con:name>lsProtocol</con:name><con:value>http://</con:value></con:property><con:property><con:name>lsHost</con:name><con:value>localhost:8080/perfsonar-java-xml-ls</con:value></con:property><con:property><con:name>lsExistUser</con:name><con:value>lookupservice</con:value></con:property><con:property><con:name>lsExistPass</con:name><con:value>sonar</con:value></con:property></con:properties><con:wssContainer/></con:soapui-project>
\ No newline at end of file

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/src/log4j.properties
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/src/log4j.properties
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/src/log4j.properties
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,23 @@
+
+log4j.rootLogger=, stdout, file
+
+# Disable certain spam.
+log4j.logger.org.perfsonar=INFO
+
+#
+# Appenders
+#
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.Target=System.out
+log4j.appender.stdout.Threshold=INFO
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c - %m%n
+
+log4j.appender.file=org.apache.log4j.FileAppender
+log4j.appender.file.File=log.log
+log4j.appender.file.Append=false
+log4j.appender.file.Threshold=DEBUG
+log4j.appender.file.Encoding=UTF-8
+log4j.appender.file.layout=org.apache.log4j.PatternLayout
+log4j.appender.file.layout.ConversionPattern=%d{ABSOLUTE} %5p %c - %m%n
\ No newline at end of file

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/LsAuthenticator.java
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/LsAuthenticator.java
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/LsAuthenticator.java
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,21 @@
+package org.perfsonar.soapUI.ls;
+
+import java.net.Authenticator;
+import java.net.PasswordAuthentication;
+
+public class LsAuthenticator extends Authenticator {
+
+ private String user;
+ private char[] pass;
+
+ public LsAuthenticator(String user, String pass) {
+ this.user = user;
+ this.pass = pass.toCharArray();
+
+ }
+
+ @Override
+ protected PasswordAuthentication getPasswordAuthentication() {
+ return new PasswordAuthentication(user, pass);
+ }
+}
\ No newline at end of file

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/TestUtil.java
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/TestUtil.java
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/src/org/perfsonar/soapUI/ls/TestUtil.java
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,64 @@
+package org.perfsonar.soapUI.ls;
+
+import java.io.File;
+import java.io.FileReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.net.Authenticator;
+import java.net.URL;
+
+import javax.xml.parsers.ParserConfigurationException;
+import javax.xml.transform.Source;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.validation.Schema;
+import javax.xml.validation.SchemaFactory;
+import javax.xml.validation.Validator;
+
+import org.apache.log4j.Logger;
+import org.xml.sax.SAXException;
+
+public class TestUtil {
+
+ public static InputStream openStream(String urlString, String user,
String pass)
+ throws IOException {
+ Authenticator.setDefault(new LsAuthenticator(user, pass));
+ URL url = new URL(urlString);
+ return url.openStream();
+ }
+
+ public static boolean validate(String xmlDocument, File schemaFile,
Logger log)
+ throws IOException, ParserConfigurationException,
SAXException {
+ SchemaFactory factory =
SchemaFactory.newInstance("http://www.w3.org/2001/XMLSchema";);
+
+ File schemaLocation = schemaFile;
+ Schema schema = factory.newSchema(schemaLocation);
+
+ Validator validator = schema.newValidator();
+
+ Source source = new StreamSource(new
StringReader(xmlDocument));
+
+ validator.validate(source);
+ return true;
+ }
+
+ public static void main(String[] args) throws IOException,
ParserConfigurationException,
+ SAXException {
+ String f =
"/home/kjedrzejewski/Pulpit/LS_API/LS-soapUI-base2/xsd/Query/LSQueryResponse.xsd";
+ File file = new File("/home/kjedrzejewski/Pulpit/a.xml");
+ FileReader reader = new FileReader(file);
+ StringBuilder sb = new StringBuilder();
+ char c;
+ int i;
+ while ((i = reader.read()) != -1) {
+ c = (char) i;
+ sb.append(c);
+ }
+ String s = sb.toString();
+ System.out.println(s);
+ System.out.println(validate(s, new File(f),
Logger.getLogger(TestUtil.class)));
+ }
+
+ private TestUtil() {
+ }
+}

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterRequest.xsd
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterRequest.xsd
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterRequest.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attributeGroup ref="nmwg:Type"/>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSDeregisterRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:Key">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="Key">
+ <xs:sequence>
+ <xs:element ref="nmwg:key"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="key">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ParametersBlock">
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="ParametersBlock">
+ <xs:sequence>
+ <xs:element ref="nmwg:parameters"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="parameters">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="nmwg:parameter"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="parameter">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="lsKey"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="value" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+</xs:schema>

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterResponse.xsd
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterResponse.xsd
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/LSDeregisterResponse.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/result/2.0/";
schemaLocation="nmwgr.xsd"/>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attribute name="type">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSDeregisterResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSDeregisterResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ResultCode">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:complexType name="ResultCode">
+ <xs:sequence>
+ <xs:element ref="nmwg:eventType"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="eventType" type="xs:string"/>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ResultCodeDatum">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="ResultCodeDatum">
+ <xs:sequence>
+ <xs:element ref="nmwgr:datum"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/nmwgr.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/nmwgr.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Deregister/nmwgr.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/";
schemaLocation="LSDeregisterResponse.xsd"/>
+ <xs:element name="datum" type="xs:string"/>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoRequest.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoRequest.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoRequest.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,68 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attributeGroup ref="nmwg:Type"/>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="EchoRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:eventType"/>
+ <xs:element ref="nmwg:parameters"/>
+ </xs:choice>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:element name="eventType">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration
value="http://schemas.perfsonar.net/tools/admin/echo/ls/2.0"/>
+ <xs:enumeration
value="http://schemas.perfsonar.net/tools/admin/echo/2.0"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="parameters">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" maxOccurs="unbounded"
ref="nmwg:parameter"/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="parameter">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required" type="xs:string"/>
+ <xs:attribute name="value" use="required" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoResponse.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoResponse.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/LSEchoResponse.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/result/2.0/";
schemaLocation="nmwgr.xsd"/>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attribute name="type">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="EchoResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="EchoResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ResultCode">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:complexType name="ResultCode">
+ <xs:sequence>
+ <xs:element ref="nmwg:eventType"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="eventType" type="xs:string"/>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ResultCodeDatum">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="ResultCodeDatum">
+ <xs:sequence>
+ <xs:element ref="nmwgr:datum"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/nmwgr.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/nmwgr.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Echo/nmwgr.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/";
schemaLocation="LSEchoResponse.xsd"/>
+ <xs:element name="datum" type="xs:string"/>
+</xs:schema>

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveRequest.xsd
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveRequest.xsd
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveRequest.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attributeGroup ref="nmwg:Type"/>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSKeepaliveRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:Key">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="Key">
+ <xs:sequence>
+ <xs:element ref="nmwg:key"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="key" type="nmwg:ParametersBlock"/>
+ <xs:complexType name="ParametersBlock">
+ <xs:sequence>
+ <xs:element ref="nmwg:parameters"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="parameters">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="nmwg:parameter"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="parameter">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="lsKey"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="value" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+</xs:schema>

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveResponse.xsd
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveResponse.xsd
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/LSKeepaliveResponse.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/result/2.0/";
schemaLocation="nmwgr.xsd"/>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attribute name="type">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSKeepaliveResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSKeepaliveResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ResultCode">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:complexType name="ResultCode">
+ <xs:sequence>
+ <xs:element ref="nmwg:eventType"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="eventType" type="xs:string"/>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ResultCodeDatum">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="ResultCodeDatum">
+ <xs:sequence>
+ <xs:element ref="nmwgr:datum"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/nmwgr.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/nmwgr.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Keepalive/nmwgr.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/";
schemaLocation="LSKeepaliveResponse.xsd"/>
+ <xs:element name="datum" type="xs:string"/>
+</xs:schema>

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryRequest.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryRequest.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryRequest.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";
schemaLocation="xquery.xsd"/>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attributeGroup ref="nmwg:Type"/>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSQueryRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="xquery:subject"/>
+ <xs:element ref="nmwg:eventType"/>
+ </xs:choice>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <!--
+ usually textual XQuery, but may contain other tags!
+ AnyElement =
+ element * {
+ (attribute * { text }
+ | text
+ | AnyElement)*
+ }
+ -->
+ <xs:element name="eventType">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="service.lookup.xquery"/>
+ <xs:enumeration value="service.lookup.xpath"/>
+ <xs:enumeration value="http://www.w3.org/TR/xquery/"/>
+ <xs:enumeration value="http://www.w3.org/TR/xpath"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+</xs:schema>

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryResponse.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryResponse.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/LSQueryResponse.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/result/2.0/";
schemaLocation="nmwgr.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
schemaLocation="psservice.xsd"/>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attribute name="type">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSQueryResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSQueryResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="nmwg:eventType"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:element name="eventType" type="xs:string"/>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:choice>
+ <xs:element minOccurs="0" maxOccurs="unbounded"
ref="psservice:datum"/>
+ <xs:element ref="nmwgr:datum"/>
+ </xs:choice>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:group name="AnyElement">
+ <xs:sequence>
+ <xs:any processContents="skip"/>
+ </xs:sequence>
+ </xs:group>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/nmwgr.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/nmwgr.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/nmwgr.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/";
schemaLocation="LSQueryResponse.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
schemaLocation="psservice.xsd"/>
+ <xs:element name="datum" type="xs:string"/>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/psservice.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/psservice.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/psservice.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/";
schemaLocation="LSQueryResponse.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/result/2.0/";
schemaLocation="nmwgr.xsd"/>
+ <xs:element name="datum">
+ <xs:complexType>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="nmwg:AnyElement"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/xquery.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/xquery.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Query/xquery.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";

xmlns:xquery="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/lookup/xquery/1.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/";
schemaLocation="LSQueryRequest.xsd"/>
+ <xs:element name="subject">
+ <xs:complexType mixed="true">
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterRequest.xsd
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterRequest.xsd
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterRequest.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attribute name="type">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSRegisterRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSRegisterRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:group minOccurs="0" maxOccurs="unbounded" ref="nmwg:AnyElement"/>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <!-- Metadata accepts any subelement... -->
+ <xs:group name="AnyElement">
+ <xs:sequence>
+ <xs:any processContents="skip"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <!--
+ ServiceSubject = element perfsonar:subject {
+ Identifier? &
+ ServiceInfo
+ }
+
+ ServiceInfo =
+ element psservice:service {
+ (
+ Identifier? &
+ element psservice:serviceName {text} &
+ element psservice:accessPoint {text} &
+ element psservice:serviceType {text} &
+ element psservice:serviceDescription {text} ? &
+ element psservice:organization {text} ? &
+ element psservice:contactEmail {text} ? &
+ element psservice:serviceVersion {text} ?
+ )
+ }
+ -->
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="nmwg:metadata"/>
+ </xs:sequence>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>

Added:
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterResponse.xsd
===================================================================
---
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterResponse.xsd
(rev 0)
+++
trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/LSRegisterResponse.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/result/2.0/";
schemaLocation="nmwgr.xsd"/>
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attribute name="type">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSRegisterResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="LSRegisterResponse"/>
+ <xs:enumeration value="ErrorResponse"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:eventType"/>
+ <xs:element ref="nmwg:key"/>
+ </xs:choice>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="key">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:ParametersBlock">
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="ParametersBlock">
+ <xs:sequence>
+ <xs:element name="parameters">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="nmwg:parameter"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="parameter">
+ <xs:complexType mixed="true">
+ <xs:attribute name="name" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="lsKey"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="value" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:element name="eventType" type="xs:string"/>
+ <xs:group name="Parameters">
+ <xs:sequence>
+ <xs:element name="parameters">
+ <xs:complexType>
+ <xs:sequence>
+ <xs:element ref="nmwg:parameter"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:group>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:Datum">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:complexType name="Datum">
+ <xs:sequence>
+ <xs:element ref="nmwgr:datum"/>
+ </xs:sequence>
+ </xs:complexType>
+</xs:schema>

Added: trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/nmwgr.xsd
===================================================================
--- trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/nmwgr.xsd
(rev 0)
+++ trunk/perfsonar-java-xml-ls/src/test/soapUI/xsd/Register/nmwgr.xsd
2010-04-07 10:00:12 UTC (rev 5578)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/";
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/";>
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/";
schemaLocation="LSRegisterResponse.xsd"/>
+ <xs:element name="datum" type="xs:string"/>
+</xs:schema>



  • [GEANT/SA2/ps-java-services] r5578 - in trunk/perfsonar-java-xml-ls: . doc doc/test src/test src/test/soapUI src/test/soapUI/lib src/test/soapUI/src src/test/soapUI/src/org src/test/soapUI/src/org/perfsonar src/test/soapUI/src/org/perfsonar/soapUI src/test/soapUI/src/org/perfsonar/soapUI/ls src/test/soapUI/xsd src/test/soapUI/xsd/Deregister src/test/soapUI/xsd/Echo src/test/soapUI/xsd/Keepalive src/test/soapUI/xsd/Query src/test/soapUI/xsd/Register, svn-noreply, 04/07/2010

Archive powered by MHonArc 2.6.16.

Top of Page