perfsonar-dev - perfsonar: r4301 - in trunk/functional-testing/JavaSQLMAsoapUI: . General General/LookupInfoRequest General/LookupInfoResponse InterfaceBased InterfaceBased/LSRegister InterfaceBased/LSRegister/LSRegisterRequest InterfaceBased/LSRegister/LSRegisterResponse L2Status
Subject: perfsonar development work
List archive
perfsonar: r4301 - in trunk/functional-testing/JavaSQLMAsoapUI: . General General/LookupInfoRequest General/LookupInfoResponse InterfaceBased InterfaceBased/LSRegister InterfaceBased/LSRegister/LSRegisterRequest InterfaceBased/LSRegister/LSRegisterResponse L2Status
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4301 - in trunk/functional-testing/JavaSQLMAsoapUI: . General General/LookupInfoRequest General/LookupInfoResponse InterfaceBased InterfaceBased/LSRegister InterfaceBased/LSRegister/LSRegisterRequest InterfaceBased/LSRegister/LSRegisterResponse L2Status
- Date: Fri, 25 Jul 2008 08:59:05 -0400
Author: sasa.cavara
Date: 2008-07-25 08:59:05 -0400 (Fri, 25 Jul 2008)
New Revision: 4301
Added:
trunk/functional-testing/JavaSQLMAsoapUI/General/EchoRequest.rnc
trunk/functional-testing/JavaSQLMAsoapUI/General/EchoResponse.rnc
trunk/functional-testing/JavaSQLMAsoapUI/General/ErrorResponse.rnc
trunk/functional-testing/JavaSQLMAsoapUI/General/ErrorResponse.rng
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.rnc
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.rng
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.wsdl
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest/
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest/LookupInfoRequest.xsd
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.rnc
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.rng
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.wsdl
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse/
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse/LookupInfoResponse.xsd
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse/psservice.xsd
trunk/functional-testing/JavaSQLMAsoapUI/General/SQL_MA_soapui-GENERAL-project.xml
trunk/functional-testing/JavaSQLMAsoapUI/General/echo-req.wsdl
trunk/functional-testing/JavaSQLMAsoapUI/General/error-req/
trunk/functional-testing/JavaSQLMAsoapUI/General/error-res/
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.rnc
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.rng
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.wsdl
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/LSRegisterRequest.xsd
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/discards.xsd
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/errors.xsd
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/netutil.xsd
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/nmwg.xsd
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/perfsonar.xsd
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/psservice.xsd
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.rnc
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.rng
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.wsdl
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse/
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse/LSRegisterResponse.xsd
trunk/functional-testing/JavaSQLMAsoapUI/svn-commit.tmp~
Modified:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
Log:
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/EchoRequest.rnc
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/EchoRequest.rnc
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/EchoResponse.rnc
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/EchoResponse.rnc
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/ErrorResponse.rnc
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/ErrorResponse.rnc
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/ErrorResponse.rng
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/ErrorResponse.rng
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest/LookupInfoRequest.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest/LookupInfoRequest.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.rnc
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.rnc
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.rng
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.rng
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.wsdl
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoRequest.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse/LookupInfoResponse.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse/LookupInfoResponse.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse/psservice.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse/psservice.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.rnc
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.rnc
___________________________________________________________________
Name: svn:executable
+ *
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.rng
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.rng
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.wsdl
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/LookupInfoResponse.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/General/SQL_MA_soapui-GENERAL-project.xml
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/SQL_MA_soapui-GENERAL-project.xml
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Author Date Id Revision
Name: svn:eol-style
+ native
Added: trunk/functional-testing/JavaSQLMAsoapUI/General/echo-req.wsdl
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/General/echo-req.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/LSRegisterRequest.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/LSRegisterRequest.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/discards.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/discards.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/errors.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/errors.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/netutil.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/netutil.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/nmwg.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/nmwg.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/perfsonar.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/perfsonar.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/psservice.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/psservice.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.rnc
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.rnc
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.rng
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.rng
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.wsdl
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse/LSRegisterResponse.xsd
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse/LSRegisterResponse.xsd
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.rnc
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.rnc
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.rng
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.rng
___________________________________________________________________
Name: svn:executable
+ *
Added:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.wsdl
Property changes on:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterResponse.wsdl
___________________________________________________________________
Name: svn:executable
+ *
Modified:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
===================================================================
---
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
2008-07-25 11:39:09 UTC (rev 4300)
+++
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
2008-07-25 12:59:05 UTC (rev 4301)
@@ -675,6 +675,322 @@
</xs:simpleContent>
</xs:complexType>
</xs:element>
+</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part></con:definitionCache></con:interface><con:interface
name="LSRegisterRequest"
bindingName="{http://ggf.org/ns/nmwg/base/2.0/}LSRegisterRequest"
soapVersion="1_1"
definition="file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.wsdl"><con:settings/><con:endpoints><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/xml-ls/services/LookupService</con:endpoint></con:endpoints><con:operation
isOneWay="false" action="" name="LSRegister"
bindingOperationName="LSRegister" inputName="" receivesAttachments="false"
sendsAttachments="false"><con:settings/><con:call name="Request
1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:ns3="http://ggf.org/ns/nmwg/topology/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="?" messageIdRef="?" type="?">
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <ns:metadata id="?" metadataIdRef="?">
+ <ns1:subject id="?">
+ <ns2:service id="?">
+ <!--You may enter the following 7 items in any order-->
+ <ns2:serviceName>?</ns2:serviceName>
+ <ns2:accessPoint>?</ns2:accessPoint>
+ <ns2:serviceType>?</ns2:serviceType>
+ <ns2:serviceDescription>?</ns2:serviceDescription>
+ <ns2:serviceVersion>?</ns2:serviceVersion>
+ <ns2:organization>?</ns2:organization>
+ <ns2:contactEmail>?</ns2:contactEmail>
+ </ns2:service>
+ </ns1:subject>
+ </ns:metadata>
+ <ns:data id="?" metadataIdRef="?">
+ <ns:metadata id="?">
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <ns3:Subject id="?" metadataIdRef="?">
+ <!--Optional:-->
+ <ns3:interface>
+ <!--You have a CHOICE of the next 8 items at this
level-->
+ <ns3:ifAddress type="?">?</ns3:ifAddress>
+ <ns3:hostName>?</ns3:hostName>
+ <ns3:direction>?</ns3:direction>
+ <ns3:ifDescription>?</ns3:ifDescription>
+ <ns3:ifName>?</ns3:ifName>
+ <ns3:ifIndex>?</ns3:ifIndex>
+ <ns3:authRealm>?</ns3:authRealm>
+ <ns3:capacity>?</ns3:capacity>
+ </ns3:interface>
+ </ns3:Subject>
+ <ns:parameters id="?">
+ <!--1 or more repetitions:-->
+ <ns:parameter name="?" value="?">?</ns:parameter>
+ </ns:parameters>
+ </ns:metadata>
+ </ns:data>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request></con:call></con:operation><con:definitionCache
rootPart="file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.wsdl"
type="TEXT"><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/LSRegisterRequest.xsd</con:url><con:content><![CDATA[<xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/"
schemaLocation="nmwg.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
schemaLocation="discards.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
schemaLocation="errors.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
schemaLocation="netutil.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
schemaLocation="perfsonar.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
schemaLocation="psservice.xsd"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:group ref="nmwgt:ServiceMetadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attributeGroup ref="nmwgt: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="LSRegisterRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:group name="ServiceMetadata">
+ <xs:sequence>
+ <xs:group ref="nmwg:metadata"/>
+ </xs:sequence>
+ </xs:group>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:complexType name="ServiceSubject">
+ <xs:sequence>
+ <xs:element ref="perfsonar:subject"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="ServiceInfo">
+ <xs:sequence>
+ <xs:element ref="psservice:service"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name="Metadata">
+ <xs:group ref="nmwg:metadata1"/>
+ </xs:complexType>
+ <xs:element name="Subject" abstract="true" type="nmwgt:SubjectContent"/>
+ <xs:complexType name="SubjectContent">
+ <xs:sequence>
+ <xs:element minOccurs="0" ref="nmwgt:interface"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:complexType>
+ <xs:element name="interface">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwgt:ifAddress"/>
+ <xs:element ref="nmwgt:hostName"/>
+ <xs:element ref="nmwgt:direction"/>
+ <xs:element ref="nmwgt:ifDescription"/>
+ <xs:element ref="nmwgt:ifName"/>
+ <xs:element ref="nmwgt:ifIndex"/>
+ <xs:element ref="nmwgt:authRealm"/>
+ <xs:element ref="nmwgt:capacity"/>
+ </xs:choice>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="ifAddress">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:extension base="xs:string">
+ <xs:attribute name="type" use="required" type="xs:string"/>
+ </xs:extension>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="hostName" type="xs:string"/>
+ <xs:element name="direction">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="in"/>
+ <xs:enumeration value="out"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="ifDescription" type="xs:string"/>
+ <xs:element name="ifName" type="xs:string"/>
+ <xs:element name="ifIndex" type="xs:string"/>
+ <xs:element name="authRealm" type="xs:string"/>
+ <xs:element name="capacity" type="xs:string"/>
+ <xs:complexType name="ParametersContent">
+ <xs:sequence>
+ <xs:element maxOccurs="unbounded" ref="nmwg:parameter"/>
+ </xs:sequence>
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
+</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest.wsdl</con:url><con:content><![CDATA[<definitions
name="SQL MA" targetNamespace="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:tns="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
+ <types>
+ <schema elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/"
xmlns="http://www.w3.org/2001/XMLSchema">
+ <include schemaLocation="LSRegisterRequest/LSRegisterRequest.xsd"/>
+ </schema>
+ </types>
+ <message name="LSRegisterRequest">
+ <part name="LSRegisterRequest" element="tns:message"/>
+ </message>
+ <message name="LSRegisterResponse">
+ <part name="LSRegisterResponse" element="tns:message"/>
+ </message>
+ <portType name="SQL-MA-LSRegister">
+ <operation name="LSRegister">
+ <input message="tns:LSRegisterRequest"/>
+ <output message="tns:LSRegisterResponse"/>
+ </operation>
+ </portType>
+ <binding name="LSRegisterRequest" type="tns:SQL-MA-LSRegister">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="LSRegister">
+ <soap:operation style="document" soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="SQL MA">
+ <documentation>SOAP Service to provide access to SQL MA.</documentation>
+ <port name="LSRegisterPort" binding="tns:LSRegisterRequest">
+ <soap:address
location="http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService"/>
+ </port>
+ </service>
+</definitions>]]></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/errors.xsd</con:url><con:content><![CDATA[<xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/"
schemaLocation="nmwg.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
schemaLocation="discards.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
schemaLocation="netutil.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
schemaLocation="perfsonar.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
schemaLocation="psservice.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/topology/2.0/"
schemaLocation="LSRegisterRequest.xsd"/>
+ <xs:element name="subject" substitutionGroup="nmwgt:Subject"/>
+</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/psservice.xsd</con:url><con:content><![CDATA[<xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/"
schemaLocation="nmwg.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
schemaLocation="discards.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
schemaLocation="errors.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
schemaLocation="netutil.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
schemaLocation="perfsonar.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/topology/2.0/"
schemaLocation="LSRegisterRequest.xsd"/>
+ <xs:element name="service">
+ <xs:complexType>
+ <xs:all>
+ <xs:element ref="psservice:serviceName"/>
+ <xs:element ref="psservice:accessPoint"/>
+ <xs:element ref="psservice:serviceType"/>
+ <xs:element ref="psservice:serviceDescription"/>
+ <xs:element ref="psservice:serviceVersion"/>
+ <xs:element ref="psservice:organization"/>
+ <xs:element ref="psservice:contactEmail"/>
+ </xs:all>
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:complexType>
+ </xs:element>
+ <xs:element name="serviceName" type="xs:string"/>
+ <xs:element name="accessPoint" type="xs:string"/>
+ <xs:element name="serviceType" type="xs:string"/>
+ <xs:element name="serviceDescription" type="xs:string"/>
+ <xs:element name="serviceVersion" type="xs:string"/>
+ <xs:element name="organization" type="xs:string"/>
+ <xs:element name="contactEmail" type="xs:string"/>
+</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/nmwg.xsd</con:url><con:content><![CDATA[<xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
schemaLocation="discards.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
schemaLocation="errors.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
schemaLocation="netutil.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
schemaLocation="perfsonar.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
schemaLocation="psservice.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/topology/2.0/"
schemaLocation="LSRegisterRequest.xsd"/>
+ <xs:element name="message" type="nmwgt:MessageContent"/>
+ <xs:group name="metadata">
+ <xs:sequence>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwgt:ServiceSubject">
+ <xs:attributeGroup ref="nmwgt:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:group>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwgt:Metadata">
+ <xs:attributeGroup ref="nmwgt:Identifier"/>
+ <xs:attributeGroup ref="nmwgt:MetadataIdentifierRef"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:group name="metadata1">
+ <xs:sequence>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwgt:Subject"/>
+ <xs:element ref="nmwg:parameters"/>
+ </xs:choice>
+ <xs:attributeGroup ref="nmwgt:Identifier"/>
+ </xs:complexType>
+ </xs:element>
+ </xs:sequence>
+ </xs:group>
+ <xs:element name="parameters" type="nmwgt:ParametersContent"/>
+ <xs:element name="parameter">
+ <xs:complexType>
+ <xs:simpleContent>
+ <xs:restriction base="xs:anyType">
+ <xs:simpleType>
+ <xs:union memberTypes="xs:string">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:length value="0"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ <xs:attribute name="name" use="required" type="xs:string"/>
+ <xs:attribute name="value" type="xs:string"/>
+ </xs:restriction>
+ </xs:simpleContent>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/netutil.xsd</con:url><con:content><![CDATA[<xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/"
schemaLocation="nmwg.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
schemaLocation="discards.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
schemaLocation="errors.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
schemaLocation="perfsonar.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
schemaLocation="psservice.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/topology/2.0/"
schemaLocation="LSRegisterRequest.xsd"/>
+ <xs:element name="subject" substitutionGroup="nmwgt:Subject"/>
+</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/perfsonar.xsd</con:url><con:content><![CDATA[<xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/"
schemaLocation="nmwg.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
schemaLocation="discards.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
schemaLocation="errors.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
schemaLocation="netutil.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
schemaLocation="psservice.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/topology/2.0/"
schemaLocation="LSRegisterRequest.xsd"/>
+ <xs:element name="subject">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwgt:ServiceInfo">
+ <xs:attribute name="id" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/LSRegister/LSRegisterRequest/discards.xsd</con:url><con:content><![CDATA[<xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:import namespace="http://ggf.org/ns/nmwg/base/2.0/"
schemaLocation="nmwg.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
schemaLocation="errors.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
schemaLocation="netutil.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
schemaLocation="perfsonar.xsd"/>
+ <xs:import
namespace="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
schemaLocation="psservice.xsd"/>
+ <xs:import namespace="http://ggf.org/ns/nmwg/topology/2.0/"
schemaLocation="LSRegisterRequest.xsd"/>
+ <xs:element name="subject" substitutionGroup="nmwgt:Subject"/>
</xs:schema>]]></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part></con:definitionCache></con:interface><con:testSuite
name="MetadataKeyRequest"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="a1566581-f3b6-49d1-8fb1-3becb829d0be"><con:settings/><con:testStep
type="request" name="Metadata-Errors"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata-Errors"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
<soapenv:Header/>
<soapenv:Body>
@@ -883,7 +1199,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select metadataId,value,valueUnits,timeValue from
perfsonar_discards"){
def result=[:]
@@ -932,7 +1248,7 @@
(every $hostname in
//nmwg:message/nmwg:metadata/netutil:subject/nmwgt:interface/nmwgt:hostName
satisfies $hostname="test-hostName")
and
-(count(//nmwg:message/nmwg:metadata/netutil:subject/nmwgt:interface[nmwgt:direction="in"])=1)
+(count(//nmwg:message/nmwg:metadata/netutil:subject/nmwgt:interface[nmwgt:direction="out"])=1)
and
(every $eventType in //nmwg:message/nmwg:metadata/nmwg:eventType satisfies
$eventType="http://ggf.org/ns/nmwg/characteristic/utilization/2.0")
and
@@ -969,7 +1285,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select metadataId,value,valueUnits,timeValue from
perfsonar_utilization"){
def result=[:]
@@ -1309,7 +1625,7 @@
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="Schema Compliance"
disabled="true"><con:configuration><definition>file:../JavaSQLMAsoapUI/InterfaceBased/MetadataKeyResponse.wsdl</definition></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><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/';
@@ -1882,9 +2198,7 @@
<nmwgt:direction>in</nmwgt:direction>
</nmwgt:interface>
</discards:subject>
- <nmwg:eventType>
- http://ggf.org/ns/nmwg/characteristic/discards/2.0
- </nmwg:eventType>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/discards/2.0</nmwg:eventType>
</nmwg:metadata>
<nmwg:metadata id="m2">
@@ -1962,22 +2276,7 @@
(//nmwg:message/@type ="MetadataKeyResponse")
and
(count(//nmwg:message/nmwg:metadata)=count(//nmwg:message/nmwg:data))
-and
-(count(//nmwg:message/nmwg:metadata/discards:subject/nmwgt:interface)=1)
-and
-(fn:string(//nmwg:message/nmwg:metadata/nmwg:eventType)="http://ggf.org/ns/nmwg/characteristic/discards/2.0")
-and
-(fn:string(//nmwg:message/nmwg:metadata/discards:subject/nmwgt:interface/nmwgt:hostName)="test-hostName")
-and
-(count(//nmwg:message/nmwg:metadata/nmwg:key)=2)
-and
-(count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter[@name="eventType"]/@value="http://ggf.org/ns/nmwg/characteristic/discards/2.0"
)=1)
-and
-(count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter[@name="eventType"]/@value="http://ggf.org/ns/nmwg/characteristic/errors/2.0"
)=1)
-and
-(count(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter="inerrors")=1)
-and
-(count(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter="indiscards")=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+and</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -2143,7 +2442,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Errors emtpy type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Errors emtpy type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
@@ -2197,7 +2496,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Discards wrong type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Discards wrong type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
@@ -2251,7 +2550,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata -Discards no metadata
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata -Discards no metadata element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" >
@@ -4274,7 +4573,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -4492,7 +4791,7 @@
//String yourAnswer = sw.toString();
//validator.validate(new StreamSource(new StringReader(yourAnswer)));
validator.validate(new DOMSource(node));
-</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match" disabled="true"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/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/';
@@ -4740,7 +5039,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -4789,7 +5088,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - non existing type in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - non existing type in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -4838,7 +5137,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData -type empty in
message"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData -type empty in message"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -4887,7 +5186,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - no metadata and
data"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no metadata and data"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -5577,7 +5876,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData- event Type element
missing"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData- event Type element missing"><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@encode_attachments">true</con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -6769,39 +7068,35 @@
(//nmwg:message/nmwg:metadata/nmwg:eventType)="warning.ma.metadata_configuration"
and
-(//nmwg:message//nmwg:data/nmwgr:datum/text()="MetadataConfigurationStorageManager.fetch:
No metadata in the metadata
configuration")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="Store test suite"><c
on:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="da9e32bc-e0b3-41a5-b564-8660b556cb38"><con:settings/><con:testStep
type="request" name="Store - Utilization without
key"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http://ggf.org/ns/n!
mwg/topo
logy/2.0/">
+(//nmwg:message//nmwg:data/nmwgr:datum/text()="MetadataConfigurationStorageManager.fetch:
No metadata in the metadata
configuration")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="MeasurementArchiveSt
oreRequest"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="da9e32bc-e0b3-41a5-b564-8660b556cb38"><con:settings/><con:testStep
type="request" name="Store - Utilization with key"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization with key"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http://ggf.!
org/ns/n
mwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg"
- type="MeasurementArchiveStoreRequest"
+ <nmwg:message id="msg"
+ type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
-
+
<nmwg:metadata id="meta1">
- <netutil:subject id="subj1">
- <nmwgt:interface>
- <nmwgt:hostName>test-hostName</nmwgt:hostName>
- <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
- <nmwgt:ifName>test-0</nmwgt:ifName>
- <nmwgt:ifDescription>test description</nmwgt:ifDescription>
- <nmwgt:direction>in</nmwgt:direction>
- <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
- <nmwgt:capacity>1000BaseT</nmwgt:capacity>
- </nmwgt:interface>
- </netutil:subject>
- <nmwg:eventType>
- http://ggf.org/ns/nmwg/characteristic/utilization/2.0
- </nmwg:eventType>
+ <nmwg:key>
+ <nmwg:parameters>
+ <nmwg:parameter name="eventType"
+ value="http://ggf.org/ns/nmwg/characteristic/utilization/2.0"/>
+ <nmwg:parameter name="ibatisConfig">
+ ibatis-SqlMapConfig-utilization.xml
+ </nmwg:parameter>
+ <nmwg:parameter name="metadataId">meta1-test</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
</nmwg:metadata>
-
+
<nmwg:data id="data1" metadataIdRef="meta1">
- <netutil:datum value="12345"
- timeValue="1139270800"
+ <netutil:datum value="222111"
+ timeValue="1170154688"
timeType="unix"
valueUnits="Bps" />
</nmwg:data>
-
+
</nmwg:message>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
@@ -6819,7 +7114,129 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
+satisfies (fn:string($descr)="perfSONAR service"))
+and
+(every $type in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceType
+satisfies (fn:string($type)="ma"))
+and
+(every $name in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceName
+satisfies
(fn:string($name)="geant2_java-rrd-ma"))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="Simple Contains" name="Contains
xmlns:nmwg"><con:configuration><token>xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"</token><ignoreCase>false</ignoreCase></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+import groovy.sql.Sql
+
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+
+ids='meta1'
+values='222111'
+valueUnitss='Bps'
+timeValues='1170154688'
+
+sql.execute("insert into perfsonar_utilization (metadataId, value,
valueUnits, timeValue) "+
+ " values (?,?,?,?)", [ids,values,valueUnitss,timeValues])
+
+def knownResultsMap=[metadataId:ids,value:values,valueUnits:valueUnitss]
+def resultList=[]
+
+sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1170154688) "){
+def result=[:]
+result=[metadataId:it.id,value:it.value,valueUnits:it.valueUnits]
+resultList.add(result)
+}
+
+resultList.each{
+if((it.id==knownResultsMap.metadataId)&&(it.value==knownResultsMap.value)&&(it.valueUnits==knownResultsMap.valueUnits))
+ println "\n We have a match" + "\n"+ it.id +" "+it.value+" "+it.valueUnits
+ }
+</scriptText></con:configuration></con:assertion><con:assertion type="Schema
Compliance"
disabled="true"><con:configuration/></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Errors with key"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Errors with key" wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id="msg"
+ type="MeasurementArchiveStoreRequest"
+ xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
+
+ <nmwg:metadata id="meta1">
+ <nmwg:key>
+ <nmwg:parameters>
+ <nmwg:parameter name="eventType"
+ value="http://ggf.org/ns/nmwg/characteristic/errors/2.0"/>
+ <nmwg:parameter name="ibatisConfig">
+ ibatis-SqlMapConfig-utilization.xml
+ </nmwg:parameter>
+ <nmwg:parameter name="metadataId">meta1-test</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1">
+ <netutil:datum value="222111"
+ timeValue="1170154688"
+ timeType="unix"
+ valueUnits="Bps" />
+ </nmwg:data>
+
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><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/';
+
+//nmwg:message/@type</path><content>MeasurementArchiveStoreResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="XPath Match"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
satisfies (fn:string($descr)="perfSONAR service"))
and
@@ -6852,7 +7269,16 @@
//t.transform(new DOMSource(node), new StreamResult(sw));
//String yourAnswer = sw.toString();
//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="Schema Compliance"
disabled="true"><con:configuration/></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -6865,12 +7291,12 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
ids='meta1'
-values='12345'
+values='222111'
valueUnitss='Bps'
-timeValues='1139270800'
+timeValues='1170154688'
sql.execute("insert into perfsonar_utilization (metadataId, value,
valueUnits, timeValue) "+
" values (?,?,?,?)", [ids,values,valueUnitss,timeValues])
@@ -6878,7 +7304,7 @@
def knownResultsMap=[metadataId:ids,value:values,valueUnits:valueUnitss]
def resultList=[]
-sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1139270800) "){
+sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1170154688) "){
def result=[:]
result=[metadataId:it.id,value:it.value,valueUnits:it.valueUnits]
resultList.add(result)
@@ -6888,39 +7314,158 @@
if((it.id==knownResultsMap.metadataId)&&(it.value==knownResultsMap.value)&&(it.valueUnits==knownResultsMap.valueUnits))
println "\n We have a match" + "\n"+ it.id +" "+it.value+" "+it.valueUnits
}
-</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no message
id"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no message id"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+</scriptText></con:configuration></con:assertion><con:assertion type="Schema
Compliance"
disabled="true"><con:configuration/></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Discards with key"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Discards with key"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message
- type="MeasurementArchiveStoreRequest"
+ <nmwg:message id="msg"
+ type="MeasurementArchiveStoreRequest"
+ xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
+
+ <nmwg:metadata id="meta1">
+ <nmwg:key>
+ <nmwg:parameters>
+ <nmwg:parameter name="eventType"
+ value="http://ggf.org/ns/nmwg/characteristic/discards/2.0"/>
+ <nmwg:parameter name="ibatisConfig">
+ ibatis-SqlMapConfig-utilization.xml
+ </nmwg:parameter>
+ <nmwg:parameter name="metadataId">meta1-test</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1">
+ <netutil:datum value="222111"
+ timeValue="1170154688"
+ timeType="unix"
+ valueUnits="Bps" />
+ </nmwg:data>
+
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><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/';
+
+//nmwg:message/@type</path><content>MeasurementArchiveStoreResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="XPath Match"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
+(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
+satisfies (fn:string($descr)="perfSONAR service"))
+and
+(every $type in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceType
+satisfies (fn:string($type)="ma"))
+and
+(every $name in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceName
+satisfies
(fn:string($name)="geant2_java-rrd-ma"))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="Simple Contains" name="Contains
xmlns:nmwg"><con:configuration><token>xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"</token><ignoreCase>false</ignoreCase></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+import groovy.sql.Sql
+
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+
+ids='meta1'
+values='222111'
+valueUnitss='Bps'
+timeValues='1170154688'
+
+sql.execute("insert into perfsonar_utilization (metadataId, value,
valueUnits, timeValue) "+
+ " values (?,?,?,?)", [ids,values,valueUnitss,timeValues])
+
+def knownResultsMap=[metadataId:ids,value:values,valueUnits:valueUnitss]
+def resultList=[]
+
+sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1170154688) "){
+def result=[:]
+result=[metadataId:it.id,value:it.value,valueUnits:it.valueUnits]
+resultList.add(result)
+}
+
+resultList.each{
+if((it.id==knownResultsMap.metadataId)&&(it.value==knownResultsMap.value)&&(it.valueUnits==knownResultsMap.valueUnits))
+ println "\n We have a match" + "\n"+ it.id +" "+it.value+" "+it.valueUnits
+ }
+</scriptText></con:configuration></con:assertion><con:assertion type="Schema
Compliance"
disabled="true"><con:configuration/></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization with key, no key
id"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization with key, no key id"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http://ggf.
org/ns/nmwg/topology/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id="msg"
+ type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
-
+
<nmwg:metadata id="meta1">
- <netutil:subject id="subj1">
- <nmwgt:interface>
- <nmwgt:hostName>test-hostName</nmwgt:hostName>
- <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
- <nmwgt:ifName>test-0</nmwgt:ifName>
- <nmwgt:ifDescription>test description</nmwgt:ifDescription>
- <nmwgt:direction>in</nmwgt:direction>
- <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
- <nmwgt:capacity>1000BaseT</nmwgt:capacity>
- </nmwgt:interface>
- </netutil:subject>
- <nmwg:eventType>
- http://ggf.org/ns/nmwg/characteristic/utilization/2.0
- </nmwg:eventType>
+ <nmwg:key id="">
+ <nmwg:parameters>
+ <nmwg:parameter name="eventType"
+ value="http://ggf.org/ns/nmwg/characteristic/utilization/2.0"/>
+ <nmwg:parameter name="ibatisConfig">
+ ibatis-SqlMapConfig-utilization.xml
+ </nmwg:parameter>
+ <nmwg:parameter name="metadataId">meta1-test</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:key>
</nmwg:metadata>
-
+
<nmwg:data id="data1" metadataIdRef="meta1">
- <netutil:datum value="12345"
- timeValue="1139270800"
+ <netutil:datum value="222111"
+ timeValue="1170154688"
timeType="unix"
valueUnits="Bps" />
</nmwg:data>
-
+
</nmwg:message>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="Schema Compliance"
disabled="true"><con:configuration><definition>file:Z:\JRA -
Stuff\soapui_era\functional-testing\JavaRRDMAsoapUI\store2.3_RC4\rrd-ma-store-res.wsdl</definition></con:configuration></con:assertion><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="XPath
Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
@@ -6962,7 +7507,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -6979,17 +7524,18 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, with
messageidref"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, with messageidref"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without
key"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmln
s:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg" metaidRef="meta1"
+ <nmwg:message id="msg"
type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
<nmwg:metadata id="meta1">
- <netutil:subject id="subj1">
+
+ <netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
@@ -7014,7 +7560,7 @@
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="Schema Compliance"
disabled="true"><con:configuration><definition>file:Z:\JRA -
Stuff\soapui_era\functional-testing\JavaRRDMAsoapUI\store2.3_RC4\rrd-ma-store-res.wsdl</definition></con:configuration></con:assertion><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="XPath
Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><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/';
@@ -7029,6 +7575,7 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
satisfies (fn:string($descr)="perfSONAR service"))
and
@@ -7053,7 +7600,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7061,26 +7608,281 @@
//t.transform(new DOMSource(node), new StreamResult(sw));
//String yourAnswer = sw.toString();
//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="Schema Compliance"
disabled="true"><con:configuration/></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+import groovy.sql.Sql
+
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+
+ids='meta1'
+values='12345'
+valueUnitss='Bps'
+timeValues='1139270800'
+
+sql.execute("insert into perfsonar_utilization (metadataId, value,
valueUnits, timeValue) "+
+ " values (?,?,?,?)", [ids,values,valueUnitss,timeValues])
+
+def knownResultsMap=[metadataId:ids,value:values,valueUnits:valueUnitss]
+def resultList=[]
+
+sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1139270800) "){
+def result=[:]
+result=[metadataId:it.id,value:it.value,valueUnits:it.valueUnits]
+resultList.add(result)
+}
+
+resultList.each{
+if((it.id==knownResultsMap.metadataId)&&(it.value==knownResultsMap.value)&&(it.valueUnits==knownResultsMap.valueUnits))
+ println "\n We have a match" + "\n"+ it.id +" "+it.value+" "+it.valueUnits
+ }
+</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Errors without key"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Errors without key"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message id="msg4"
+ type="MeasurementArchiveStoreRequest"
+
xmlns:errors="http://ggf.org/ns/nmwg/characteristic/errors/2.0/"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
+
+
+ <nmwg:metadata id="meta1">
+ <errors:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifIndex>2</nmwgt:ifIndex>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>1000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </errors:subject>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/errors/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1">
+ <nmwg:datum value="4" timeValue="1188986354" timeType="unix"
valueUnits="Eps" />
+ </nmwg:data>
+
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><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/';
+
+//nmwg:message/@type</path><content>MeasurementArchiveStoreResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="XPath Match"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no id in
subject"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no id in subject"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="ht
tp://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+
+(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
+satisfies (fn:string($descr)="perfSONAR service"))
+and
+(every $type in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceType
+satisfies (fn:string($type)="ma"))
+and
+(every $name in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceName
+satisfies
(fn:string($name)="geant2_java-rrd-ma"))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="Simple Contains" name="Contains
xmlns:nmwg"><con:configuration><token>xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"</token><ignoreCase>false</ignoreCase></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="Schema Compliance"
disabled="true"><con:configuration/></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+import groovy.sql.Sql
+
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+
+ids='meta1'
+values='12345'
+valueUnitss='Bps'
+timeValues='1139270800'
+
+sql.execute("insert into perfsonar_utilization (metadataId, value,
valueUnits, timeValue) "+
+ " values (?,?,?,?)", [ids,values,valueUnitss,timeValues])
+
+def knownResultsMap=[metadataId:ids,value:values,valueUnits:valueUnitss]
+def resultList=[]
+
+sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1139270800) "){
+def result=[:]
+result=[metadataId:it.id,value:it.value,valueUnits:it.valueUnits]
+resultList.add(result)
+}
+
+resultList.each{
+if((it.id==knownResultsMap.metadataId)&&(it.value==knownResultsMap.value)&&(it.valueUnits==knownResultsMap.valueUnits))
+ println "\n We have a match" + "\n"+ it.id +" "+it.value+" "+it.valueUnits
+ }
+</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Discards without
key"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Discards without key"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg"
+ <nmwg:message id="msg4"
+ type="MeasurementArchiveStoreRequest"
+
xmlns:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
+
+
+ <nmwg:metadata id="meta1">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifIndex>2</nmwgt:ifIndex>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:capacity>1000000000</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/discards/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta1">
+ <nmwg:datum value="6" timeValue="1188986354" timeType="unix"
valueUnits="Dps" />
+ </nmwg:data>
+
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><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/';
+
+//nmwg:message/@type</path><content>MeasurementArchiveStoreResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="XPath Match"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
+declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
+
+(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
+satisfies (fn:string($descr)="perfSONAR service"))
+and
+(every $type in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceType
+satisfies (fn:string($type)="ma"))
+and
+(every $name in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceName
+satisfies
(fn:string($name)="geant2_java-rrd-ma"))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="Simple Contains" name="Contains
xmlns:nmwg"><con:configuration><token>xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"</token><ignoreCase>false</ignoreCase></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="Schema Compliance"
disabled="true"><con:configuration/></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+import groovy.sql.Sql
+
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+
+ids='meta1'
+values='12345'
+valueUnitss='Bps'
+timeValues='1139270800'
+
+sql.execute("insert into perfsonar_utilization (metadataId, value,
valueUnits, timeValue) "+
+ " values (?,?,?,?)", [ids,values,valueUnitss,timeValues])
+
+def knownResultsMap=[metadataId:ids,value:values,valueUnits:valueUnitss]
+def resultList=[]
+
+sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1139270800) "){
+def result=[:]
+result=[metadataId:it.id,value:it.value,valueUnits:it.valueUnits]
+resultList.add(result)
+}
+
+resultList.each{
+if((it.id==knownResultsMap.metadataId)&&(it.value==knownResultsMap.value)&&(it.valueUnits==knownResultsMap.valueUnits))
+ println "\n We have a match" + "\n"+ it.id +" "+it.value+" "+it.valueUnits
+ }
+</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no message
id"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no message id"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message
type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
<nmwg:metadata id="meta1">
- <netutil:subject>
+ <netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
@@ -7120,7 +7922,6 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-
(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
satisfies (fn:string($descr)="perfSONAR service"))
and
@@ -7145,7 +7946,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7162,17 +7963,17 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key , metadataIdref(same)
in subject"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key , metadataIdref(same) in subject"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.or
g/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, with
messageidref"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, with messageidref"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg"
+ <nmwg:message id="msg" metaidRef="meta1"
type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
<nmwg:metadata id="meta1">
- <netutil:subject id="subj1" metaidRef="meta1">
+ <netutil:subject id="subj1">
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
@@ -7236,7 +8037,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7253,17 +8054,17 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key ,
metadataIdref(duplicate) in subject"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key , metadataIdref(duplicate) in subject"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no id in
subject"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no id in subject"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="ht
tp://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg"
+ <nmwg:message id="msg"
type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
- <nmwg:metadata id="meta1" metaIdRef="meta2">
- <netutil:subject id="subj1" metaIdRef="meta2">
+ <nmwg:metadata id="meta1">
+ <netutil:subject>
<nmwgt:interface>
<nmwgt:hostName>test-hostName</nmwgt:hostName>
<nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
@@ -7303,6 +8104,7 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
+
(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
satisfies (fn:string($descr)="perfSONAR service"))
and
@@ -7327,7 +8129,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7344,7 +8146,7 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, empty interface
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, empty interface element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key , metadataIdref(same)
in subject"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key , metadataIdref(same) in subject"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.or
g/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -7354,9 +8156,15 @@
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
<nmwg:metadata id="meta1">
- <netutil:subject id="subj1">
+ <netutil:subject id="subj1" metaidRef="meta1">
<nmwgt:interface>
-
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test description</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>
@@ -7412,7 +8220,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7429,35 +8237,39 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)!=0</path><content>false</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization with key, no key
id"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization with key, no key id"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key ,
metadataIdref(duplicate) in subject"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key , metadataIdref(duplicate) in subject"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg"
- type="MeasurementArchiveStoreRequest"
+ <nmwg:message id="msg"
+ type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
-
- <nmwg:metadata id="meta1">
- <nmwg:key id="">
- <nmwg:parameters>
- <nmwg:parameter name="eventType"
- value="http://ggf.org/ns/nmwg/characteristic/utilization/2.0"/>
- <nmwg:parameter name="ibatisConfig">
- ibatis-SqlMapConfig-utilization.xml
- </nmwg:parameter>
- <nmwg:parameter name="metadataId">meta1-test</nmwg:parameter>
- </nmwg:parameters>
- </nmwg:key>
+
+ <nmwg:metadata id="meta1" metaIdRef="meta2">
+ <netutil:subject id="subj1" metaIdRef="meta2">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test description</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </netutil:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/utilization/2.0
+ </nmwg:eventType>
</nmwg:metadata>
-
+
<nmwg:data id="data1" metadataIdRef="meta1">
- <netutil:datum value="222111"
- timeValue="1170154688"
+ <netutil:datum value="12345"
+ timeValue="1139270800"
timeType="unix"
valueUnits="Bps" />
</nmwg:data>
-
+
</nmwg:message>
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="Schema Compliance"
disabled="true"><con:configuration><definition>file:Z:\JRA -
Stuff\soapui_era\functional-testing\JavaRRDMAsoapUI\store2.3_RC4\rrd-ma-store-res.wsdl</definition></con:configuration></con:assertion><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="XPath
Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
@@ -7499,7 +8311,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7516,10 +8328,10 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no data
Id"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no data Id"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, empty interface
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, empty interface element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg"
+ <nmwg:message id="msg"
type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
@@ -7528,13 +8340,7 @@
<nmwg:metadata id="meta1">
<netutil:subject id="subj1">
<nmwgt:interface>
- <nmwgt:hostName>test-hostName</nmwgt:hostName>
- <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
- <nmwgt:ifName>test-0</nmwgt:ifName>
- <nmwgt:ifDescription>test description</nmwgt:ifDescription>
- <nmwgt:direction>in</nmwgt:direction>
- <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
- <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+
</nmwgt:interface>
</netutil:subject>
<nmwg:eventType>
@@ -7542,7 +8348,7 @@
</nmwg:eventType>
</nmwg:metadata>
- <nmwg:data id="" metadataIdRef="meta1">
+ <nmwg:data id="data1" metadataIdRef="meta1">
<netutil:datum value="12345"
timeValue="1139270800"
timeType="unix"
@@ -7590,7 +8396,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7607,38 +8413,42 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization with
key"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization with key"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1=
"http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)!=0</path><content>false</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no data
Id"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no data Id"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message id="msg"
- type="MeasurementArchiveStoreRequest"
+ <nmwg:message id="msg"
+ type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
-
+
<nmwg:metadata id="meta1">
- <nmwg:key>
- <nmwg:parameters>
- <nmwg:parameter name="eventType"
- value="http://ggf.org/ns/nmwg/characteristic/utilization/2.0"/>
- <nmwg:parameter name="ibatisConfig">
- ibatis-SqlMapConfig-utilization.xml
- </nmwg:parameter>
- <nmwg:parameter name="metadataId">meta1-test</nmwg:parameter>
- </nmwg:parameters>
- </nmwg:key>
+ <netutil:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test description</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </netutil:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/utilization/2.0
+ </nmwg:eventType>
</nmwg:metadata>
-
- <nmwg:data id="data1" metadataIdRef="meta1">
- <netutil:datum value="222111"
- timeValue="1170154688"
+
+ <nmwg:data id="" metadataIdRef="meta1">
+ <netutil:datum value="12345"
+ timeValue="1139270800"
timeType="unix"
valueUnits="Bps" />
</nmwg:data>
-
+
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="Schema Compliance"
disabled="true"><con:configuration><definition>file:Z:\JRA -
Stuff\soapui_era\functional-testing\JavaRRDMAsoapUI\store2.3_RC4\rrd-ma-store-res.wsdl</definition></con:configuration></con:assertion><con:assertion
type="SOAP Fault Assertion"/><con:assertion type="XPath
Match"><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/';
@@ -7677,7 +8487,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7694,43 +8504,7 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
name="SQL-groovy"><con:configuration><scriptText>import java.io.File;
-import java.io.OutputStream;
-import java.io.StringWriter;
-import javax.xml.transform.*;
-import javax.xml.transform.stream.StreamResult;
-import javax.xml.transform.stream.StreamSource;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.XMLConstants
-import javax.xml.validation.SchemaFactory
-import java.io.StringWriter
-import groovy.sql.Sql
-
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
-
-ids='meta1'
-values='222111'
-valueUnitss='Bps'
-timeValues='1170154688'
-
-sql.execute("insert into perfsonar_utilization (metadataId, value,
valueUnits, timeValue) "+
- " values (?,?,?,?)", [ids,values,valueUnitss,timeValues])
-
-def knownResultsMap=[metadataId:ids,value:values,valueUnits:valueUnitss]
-def resultList=[]
-
-sql.eachRow("select metadataId,value,valueUnits from perfsonar_utilization
where timeValue=FROM_UNIXTIME(1170154688) "){
-def result=[:]
-result=[metadataId:it.id,value:it.value,valueUnits:it.valueUnits]
-resultList.add(result)
-}
-
-resultList.each{
-if((it.id==knownResultsMap.metadataId)&&(it.value==knownResultsMap.value)&&(it.valueUnits==knownResultsMap.valueUnits))
- println "\n We have a match" + "\n"+ it.id +" "+it.value+" "+it.valueUnits
- }
-</scriptText></con:configuration></con:assertion><con:assertion type="Schema
Compliance"
disabled="true"><con:configuration/></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key , no timeType in
Datum"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key , no timeType in Datum"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/bas
e/2.0/" xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key , no timeType in
Datum"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key , no timeType in Datum"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xm
lns:ns="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -7804,7 +8578,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7895,7 +8669,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7992,7 +8766,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8079,7 +8853,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/InterfaceBased/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8189,7 +8963,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, wrong message
type"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, wrong message type"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
@@ -8285,7 +9059,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, misspelled id in
metadata"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, misspelled id in metadata"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/to
pology/2.0/">
@@ -8919,7 +9693,7 @@
//nmwg:message/nmwg:data</path><content><nmwg:data
id="resultDescriptionData_for_resultCodeMetadata"
metadataIdRef="resultCodeMetadata"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<nmwgr:datum
xmlns:nmwgr="http://ggf.org/ns/nmwg/result/2.0/">SQLTypeMAServiceEngine.getStoreKey:
No ibatisConfig parameter in the key</nmwgr:datum>
-</nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, invalid value in datum
element" disabled="true"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, invalid value in datum element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" x
mlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+</nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, invalid value in datum
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, invalid value in datum element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http:/
/ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -9000,7 +9774,7 @@
--- Check the statement (update failed).
--- Cause: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range
value adjusted for column 'value' at row 1
Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Out of range
value adjusted for column 'value' at row 1</nmwgr:datum>
-</nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no value in datum"
disabled="true"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no value in datum"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1="http://ggf.org/n
s/nmwg/topology/2.0/">
+</nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="Schema
Compliance"><con:configuration/></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key, no value in
datum"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key, no value in datum"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="h
ttp://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -9081,7 +9855,7 @@
--- Check the statement (update failed).
--- Cause: java.sql.SQLException: Data truncated for column 'value' at row 1
Caused by: java.sql.SQLException: Data truncated for column 'value' at row
1</nmwgr:datum>
-</nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key,wrong metadataIdRef in
Data element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key,wrong metadataIdRef in Data element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/" xmlns:ns1
="http://ggf.org/ns/nmwg/topology/2.0/">
+</nmwg:data></content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="Schema
Compliance"><con:configuration/></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Store - Utilization without key,wrong metadataIdRef in
Data element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Utilization without key,wrong metadataIdRef in Data element"
wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlso
ap.org/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message id="msg"
@@ -9362,4 +10136,655 @@
declare namespace
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:wssContainer/></con:soapui-project>
\ No newline at end of file
+count(//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter)</path><content>0</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="LSRegisterRequest"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests"
searchProperties="true"><con:settings/><con:testStep type="request"
name="LSRegister-utilization"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="LSRegister-utilization"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/xml-ls/services/LookupService</con:endpoint><con:reques
t><![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="md1">
+ <netutil:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test
description</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </netutil:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/utilization/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+</nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request></con:request></con:config></con:testStep><con:testStep
type="request" name="LSRegister-discards"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="LSRegister-discards"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.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:discards="http://ggf.org/ns/nmwg/characteristic/discards/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://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService
+ </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">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>out</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/LSRegister/LSRegisterResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="LSRegister-errors"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="LSRegister-errors"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.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:errors="http://ggf.org/ns/nmwg/characteristic/errors/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">
+ <errors:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </errors:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/errors/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2">
+ <errors:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>out</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </errors:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/errors/2.0
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/LSRegister/LSRegisterResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Malformed requests" searchProperties="true"
id="2e90eb91-61fd-430d-8bc0-c9dca4ef7a33"
timeout="0"><con:settings/><con:testStep type="request" name="Message type
value empty"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="Message type value
empty"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/" xmlns:ns1="http://ggf.org/ns/nmwg
/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type=""
+ 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:discards="http://ggf.org/ns/nmwg/characteristic/discards/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://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService
+ </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">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>out</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Wrong message type value"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="Wrong message type
value"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <nmwg:message type="LSRegisterRequestWRONG"
+ 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:discards="http://ggf.org/ns/nmwg/characteristic/discards/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://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService
+ </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">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>out</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata invalid/empty id
value"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="Metadata invalid/empty id
value"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.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:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/">
+
+ <nmwg:metadata id="">
+ <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://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService
+ </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">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>out</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/LSRegister/LSRegisterResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Empty metadata"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="Empty
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.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:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/">
+
+ <nmwg:metadata id="serviceLookupInfo">
+
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta1">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>in</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="meta2">
+ <discards:subject id="subj1">
+ <nmwgt:interface>
+ <nmwgt:hostName>test-hostName</nmwgt:hostName>
+ <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
+ <nmwgt:ifName>test-0</nmwgt:ifName>
+ <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
+ <nmwgt:direction>out</nmwgt:direction>
+ <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
+ <nmwgt:capacity>1000BaseT</nmwgt:capacity>
+ </nmwgt:interface>
+ </discards:subject>
+ <nmwg:eventType>
+ http://ggf.org/ns/nmwg/characteristic/discards/2.0
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="No data"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="No
data"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.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:discards="http://ggf.org/ns/nmwg/characteristic/discards/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://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/LSRegister/LSRegisterResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:wssContainer/></con:soapui-project>
\ No newline at end of file
Modified:
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
===================================================================
---
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
2008-07-25 11:39:09 UTC (rev 4300)
+++
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
2008-07-25 12:59:05 UTC (rev 4301)
@@ -1586,7 +1586,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -1613,7 +1613,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
statusOper='up'
statusAdmin='TEST-d30-3'
@@ -1724,7 +1724,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -1751,7 +1751,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
statusOper='up'
statusAdmin='TEST-d29-1'
@@ -1870,7 +1870,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -1897,7 +1897,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
sql.executeUpdate("update domain_link set
status_oper='up',status_admin='TEST-d30-1' where
time=FROM_UNIXTIME(1170084700)")
</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match"><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/';
@@ -1986,7 +1986,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2013,7 +2013,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
sql.executeUpdate("update interdomain_link set
status_oper='down',status_admin='TEST-d30-2' where
time=FROM_UNIXTIME(1170084722) AND id='PSNC3-DFN-MUE2-Link-1002'")
</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match"><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/';
@@ -2090,7 +2090,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2149,7 +2149,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2200,7 +2200,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="MA StoreRequest - without key, wrong message type"
id="4d2bd504-051c-4978-803c-0fdf3e66c497"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, wrong message
type"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -2247,7 +2247,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="MA StoreRequest - without key, wrong metadataIdRef in
subject" id="82ac05db-4ee4-46fe-89e5-94d968e14108"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, wrong metadataIdRef in
subject"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -2301,7 +2301,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2353,7 +2353,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2405,7 +2405,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2464,7 +2464,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2523,7 +2523,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2581,7 +2581,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2640,7 +2640,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2648,7 +2648,7 @@
//t.transform(new DOMSource(node), new StreamResult(sw));
//String yourAnswer = sw.toString();
//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Requests containing invalid data" searchProperties="true"
id="39729d0d-d837-4be9-8d04-55f05faa157d"><con:settings/><con:testStep
type="request" name="MA StoreRequest - without key, value too low in datum
element" id="7fa5c1ff-2260-4913-92e3-b7f4ef06c7d2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, value too low in datum
element"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envel
ope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Requests containing invalid data" searchProperties="true"
id="39729d0d-d837-4be9-8d04-55f05faa157d"
timeout="0"><con:settings/><con:testStep type="request" name="MA StoreRequest
- without key, value too low in datum element"
id="7fa5c1ff-2260-4913-92e3-b7f4ef06c7d2"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="MA StoreRequest - without key, value too low in datum
element"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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="msg"
@@ -2699,7 +2699,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2758,7 +2758,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2817,7 +2817,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2876,7 +2876,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2935,7 +2935,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -2994,7 +2994,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -3053,7 +3053,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -3112,7 +3112,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -3171,7 +3171,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -3230,7 +3230,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -3289,7 +3289,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -3348,7 +3348,7 @@
def holder = groovyUtils.getXmlHolder(
messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -3356,168 +3356,9 @@
//t.transform(new DOMSource(node), new StreamResult(sw));
//String yourAnswer = sw.toString();
//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Test ground" searchProperties="true"
id="61d39ea1-d96f-43b9-b990-ce9fabc9fe6d"><con:settings/><con:testStep
type="request" name="Store - Request 1"
id="28486d63-cacb-4961-9200-750efbf2ef0d"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MeasurementArchiveStoreRequest</con:interface><con:operation>Store</con:operation><con:request
name="Store - Request 1" wssPasswordType=""><con:settings><con:setting
id="com.eviware.soapui.impl.wsdl.WsdlRequest@request-headers"><xml-fragment/></con:setting></con:settings><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/topology/2.0/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="MetadataRequest"
id="1b6c29c7-6f9c-4442-b9f6-b2bcf038bdd1"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="4beec99b-d7cd-497a-9fd2-49b7d8a53e71"
timeout="0"><con:settings/><con:testStep type="request" name="metadata -L2
link name and using Path.Status value for eventType"
id="dd5ab75c-3337-4114-86e1-386236e1b43f"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="metadata -L2 link name and using Path.Status value for
eventType"><con:settings/><con:encodin
g>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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="msg4" type="MeasurementArchiveStoreRequest"
xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/">
- <nmwg:metadata id="meta1">
- <netutil:subject id="subj1">
- <nmwgt:interface>
- <nmwgt:hostName>blah</nmwgt:hostName>
- <nmwgt:ifAddress type="ipv4">10.2.5.6</nmwgt:ifAddress>
- <nmwgt:ifName>fa0/1</nmwgt:ifName>
- <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
- <nmwgt:direction>in</nmwgt:direction>
- <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
- <nmwgt:capacity>1000BaseT</nmwgt:capacity>
- </nmwgt:interface>
- </netutil:subject>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/characteristic/utilization/2.0</nmwg:eventType>
- </nmwg:metadata>
- <nmwg:data id="data1" metadataIdRef="meta1">
- <nmwg:datum value="12345" timeValue="N" timeType="unix"
valueUnits="Bps"/>
- </nmwg:data>
- </nmwg:message>
- </soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="254add69-7025-4f92-93e3-efb6300f43ac"/><con:assertion type="SOAP Fault
Assertion" id="866c7acb-fcea-439d-9aa5-6a1888d5b0ca"/><con:assertion
type="XPath Match"
id="6d3bef7f-e9aa-407f-a302-9380b49d8b9a"><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/';
-
-//nmwg:message/@type</path><content>MeasurementArchiveStoreResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="XPath Match"
id="4de2f745-fc64-40d3-a2ab-c05d04805277"><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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
-declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-
-(count(//nmwg:message/nmwg:data) = count(//nmwg:message/nmwg:data))
-and
-(every $descr in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceDescription
-satisfies (fn:string($descr)="perfSONAR service"))
-and
-(every $type in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceType
-satisfies (fn:string($type)="ma"))
-and
-(every $name in
//nmwg:message/nmwg:data/psservice:datum/psservice:service/psservice:serviceName
-satisfies
(fn:string($name)="geant2_java-rrd-ma"))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="Simple Contains" name="Contains xmlns:nmwg"
id="55fdba1a-2e03-40d7-935b-83bcdcbed35e"><con:configuration><token>xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"</token><ignoreCase>false</ignoreCase></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
id="a629fc21-4989-482b-8e5b-b1ffdb88f5dd"><con:configuration><scriptText>import
java.io.File;
-import java.io.OutputStream;
-import java.io.StringWriter;
-import javax.xml.transform.*;
-import javax.xml.transform.stream.StreamResult;
-import javax.xml.transform.stream.StreamSource;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.XMLConstants
-import javax.xml.validation.SchemaFactory
-import java.io.StringWriter
-
-
-def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
-def holder = groovyUtils.getXmlHolder(
-messageExchange.getResponseContent());
-def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/MeasurementArchiveStore/MeasurementArchiveStoreResponse.rng"));
-def validator = schema.newValidator();
-def node = holder.getDomNode("//nmwg:message")
-//Transformer t = TransformerFactory.newInstance().newTransformer();
-//StringWriter sw = new StringWriter();
-//t.transform(new DOMSource(node), new StreamResult(sw));
-//String yourAnswer = sw.toString();
-//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="transfer" name="Property Transfer"
id="6a09dce4-d09c-4265-a23a-10fea5d007aa"><con:settings/><con:config
xsi:type="con:TransferValuesStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:transfers
setNullOnMissingSource="true" transferTextContent="true" failOnError="false"
ignoreEmpty="true" transferToAll="false"
useXQuery="false"><con:name>data</con:name><con:sourceType>Response</con:sourceType><con:sourceStep>Store
- Request 1</con:sourceStep><con:sourcePath>declare namespace
soap='http://schemas.xmlsoap.org/soap/envelope/';
-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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
-declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-
-//nmwg:message/nmwg:metadata/nmwg:key/nmwg:parameters/nmwg:parameter[@name="file"]</con:sourcePath><con:targetType
xsi:nil="true"/><con:targetStep xsi:nil="true"/><con:targetPath>declare
namespace soap='http://schemas.xmlsoap.org/soap/envelope/';
-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
psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/";
-declare namespace xmlns="http://ggf.org/ns/nmwg/base/2.0/";
-
-//nmwg:message/nmwg:metadata[1]</con:targetPath></con:transfers></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="MetadataRequest"
id="1b6c29c7-6f9c-4442-b9f6-b2bcf038bdd1"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="4beec99b-d7cd-497a-9fd2-49b7d8a53e71"
timeout="0"><con:settings/><con:testStep type="request" name="metadata - L2
link using URL for eventType"
id="e16807d7-43cd-4989-93d1-bfa35860eda8"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="metadata - L2 link using URL for
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-m
a/services/MeasurementArchiveService</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="MetadataKeyRequest"
- xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
- xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
- xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/"
- xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/">
-
-
- <nmwg:metadata id="meta1">
-
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
- </nmwg:metadata>
-
-
- <nmwg:data id="data1" metadataIdRef="meta1"/>
-
-
- </nmwg:message>
- </soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="1dce4047-1768-4840-9d71-ed96fbe247af"/><con:assertion type="SOAP Fault
Assertion" id="e56a5551-4fc6-4106-a64d-91c89f915909"/><con:assertion
type="XPath Match"
id="b317202d-7ddf-4ba8-a100-3be322588205"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
-declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
-declare namespace nmtl2='http://ggf.org/ns/nmwg/topology/l2/3.0/';
-declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
-declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
-
-//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="dd6a2b51-0046-4e7b-9a55-0e158b093a1b"><con:configuration><scriptText>import
java.io.File;
-import java.io.OutputStream;
-import java.io.StringWriter;
-import javax.xml.transform.*;
-import javax.xml.transform.stream.StreamResult;
-import javax.xml.transform.stream.StreamSource;
-import javax.xml.transform.TransformerFactory;
-import javax.xml.transform.dom.DOMSource;
-import javax.xml.XMLConstants
-import javax.xml.validation.SchemaFactory
-import java.io.StringWriter
-import groovy.sql.Sql
-
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
-def resultList=[]
-sql.eachRow("select id,status_oper,status_admin from domain_link"){
-def result=[:]
-result=[id:it.id,status:it.status_oper,admin:it.status_admin]
-resultList.add(result)
-}
-resultList.each{
- println "\n We have a match" + "\n"+ it.id +" "+it.status+" "+it.admin
- }</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><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 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 nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
-
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:type)="TopologyPoint")=1
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:name[@type="logica"])="PSNC-PL")=1
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:country)="Poland")=1
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:city)="Poznan")=1
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:longitude)="0.0")=1
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:latitude)="0.0")=1
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:institution)="PSNC")=1</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="metadata -L2 link name and using Path.Status value for
eventType"
id="dd5ab75c-3337-4114-86e1-386236e1b43f"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="metadata -L2 link name and using Path.Status value for
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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="MetadataKeyRequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
@@ -3577,7 +3418,7 @@
import groovy.sql.Sql
def knownResultsMap=[id:"PSNC-DFN-MUE-003",status:"down",admin:"UNKNOWN"]
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link"){
def result=[:]
@@ -3668,7 +3509,7 @@
import groovy.sql.Sql
def knownResultsMap=[id:"PSNC-DFN-MUE-003",status:"down",admin:"UNKNOWN"]
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link where
time=now()"){
def result=[:]
@@ -3771,7 +3612,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link where
time=now()"){
def result=[:]
@@ -3892,7 +3733,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link where
time=now()"){
def result=[:]
@@ -3993,7 +3834,7 @@
import groovy.sql.Sql
def knownResultsMap=[id:"PSNC-DFN-MUE-003",status:"down",admin:"UNKNOWN"]
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link"){
def result=[:]
@@ -4077,7 +3918,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link"){
def result=[:]
@@ -4180,7 +4021,7 @@
import groovy.sql.Sql
def knownResultsMap=[id:"PSNC-DFN-MUE-003",status:"down",admin:"UNKNOWN"]
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link where
time=now()"){
def result=[:]
@@ -4220,9 +4061,76 @@
and
(every $pathId in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="pathId"]
satisfies $pathId="PSNC-DFN-MUE-Link-1001")
and
-(every $ibatisConfig in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="ibatisConfig"]
satisfies
$ibatisConfig="ibatis-SqlMapConfig-L2-status-domain.xml")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="metadata - only type o fmetric and 'now' time filtering
parameter2"
id="95902b27-7e45-4051-a895-413d6098a705"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="metadata - only type o fmetric and 'now' time filtering
parameter2"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.o
rg/soap/envelope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+(every $ibatisConfig in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="ibatisConfig"]
satisfies
$ibatisConfig="ibatis-SqlMapConfig-L2-status-domain.xml")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="metadata - L2 link using URL for eventType"
id="e16807d7-43cd-4989-93d1-bfa35860eda8"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="metadata - L2 link using URL for
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/n
mwg/base/2.0/">
<soapenv:Header/>
<soapenv:Body>
+ <nmwg:message type="MetadataKeyRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/">
+
+
+ <nmwg:metadata id="meta1">
+
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
+ </nmwg:metadata>
+
+
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="1dce4047-1768-4840-9d71-ed96fbe247af"/><con:assertion type="SOAP Fault
Assertion" id="e56a5551-4fc6-4106-a64d-91c89f915909"/><con:assertion
type="XPath Match"
id="b317202d-7ddf-4ba8-a100-3be322588205"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace nmtl2='http://ggf.org/ns/nmwg/topology/l2/3.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="dd6a2b51-0046-4e7b-9a55-0e158b093a1b"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+import groovy.sql.Sql
+
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def resultList=[]
+sql.eachRow("select id,status_oper,status_admin from domain_link"){
+def result=[:]
+result=[id:it.id,status:it.status_oper,admin:it.status_admin]
+resultList.add(result)
+}
+resultList.each{
+ println "\n We have a match" + "\n"+ it.id +" "+it.status+" "+it.admin
+ }</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><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 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 nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:type)="TopologyPoint")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:name[@type="logica"])="PSNC-PL")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:country)="Poland")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:city)="Poznan")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:longitude)="0.0")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:latitude)="0.0")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:institution)="PSNC")=1</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="metadata - only type o fmetric and 'now' time filtering
parameter2"
id="95902b27-7e45-4051-a895-413d6098a705"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="metadata - only type o fmetric and 'now' time filtering
parameter2"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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="MetadataKeyRequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
@@ -4264,7 +4172,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link"){
def result=[:]
@@ -4334,7 +4242,7 @@
import java.io.StringWriter
import groovy.sql.Sql
-def sql =
Sql.newInstance("jdbc:mysql://perfsonar.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
+def sql =
Sql.newInstance("jdbc:mysql://ps-test.CARNet.hr:3306/perfsonar_ma",
"perfsonar_ma", "l0291nk1", "com.mysql.jdbc.Driver")
def resultList=[]
sql.eachRow("select id,status_oper,status_admin from domain_link"){
def result=[:]
@@ -4424,7 +4332,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
@@ -4751,7 +4659,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
@@ -5322,7 +5230,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
@@ -6003,16 +5911,107 @@
declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
-//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Metadata TestCase" searchProperties="true"
id="b5023e33-a9b3-46b6-882e-7ae1c5622f6b"><con:settings/><con:testStep
type="request" name="Metadata"
id="26faa75d-f89c-451e-a47a-912b49bf64ea"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataRequest</con:interface><con:operation>Metadata</con:operation><con:request
name="Metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="SetupDataRequest"
id="6d7c1738-5022-419d-8be8-fc71e32efffd"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="05855115-e6a2-46dd-9157-babf60de8bbd"
timeout="0"><con:settings/><con:testStep type="request"
name="SetupDataRequest PING"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupDataRequest
PING"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-ja
va-sql-ma/services/MeasurementArchiveService</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>
- <ns:message id="?" messageIdRef="?" type="?">
- <!--1 or more repetitions:-->
- <ns:metadata id="?" metadataIdRef="?"/>
- <ns:data id="?" metadataIdRef="?"/>
- </ns:message>
+
+
+<nmwg:message type="SetupDataRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
+ xmlns:ping="http://ggf.org/ns/nmwg/tools/ping/2.0/"
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/">
+
+
+ <nmwg:metadata id="m1">
+ <ping:subject id="sub1">
+ <nmwgt:endPointPair>
+ <nmwgt:src type="ipv4" value="222.22.22.22"/>
+ <nmwgt:dst type="ipv4" value="111.11.11.11"/>
+ </nmwgt:endPointPair>
+ </ping:subject>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/tools/ping/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="m2">
+ <select:subject id="iusub2" metadataIdRef="m1"/>
+ <select:parameters id="param1">
+ <nmwg:parameter name="startTime">1216644761</nmwg:parameter>
+ <nmwg:parameter name="endTime">1216644790</nmwg:parameter>
+ <!--
+ <nmwg:parameter name="startTime">
+ <nmtm:time type="ISO" value="2005-07-16T00:00:00Z"/>
+ </nmwg:parameter>
+ <nmwg:parameter name="endTime">
+ <nmtm:time type="ISO" value="2005-07-21T00:00:00Z"/>
+ </nmwg:parameter>
+ -->
+ </select:parameters>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:data id="d1" metadataIdRef="m2"/>
+
+
+</nmwg:message>
+
</soapenv:Body>
-</soapenv:Envelope>]]></con:request></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="SetupDataRequest"
id="6d7c1738-5022-419d-8be8-fc71e32efffd"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="05855115-e6a2-46dd-9157-babf60de8bbd"
timeout="0"><con:settings/><con:testStep type="request"
name="SetupDataRequest without a key"
id="bd886741-2048-4372-9cae-bbd7ff5bd7c1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupDataRequest without a
key"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveServic
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:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="ea9d3371-f03b-422c-ab9d-c1f54be5a97c"/><con:assertion type="SOAP Fault
Assertion" id="3c50195d-bd53-40ab-bec5-e4bb2c50b446"/><con:assertion
type="XPath Match"
id="09bc386e-d985-43be-a604-68cb2712b287"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+declare namespace select='http://ggf.org/ns/nmwg/ops/select/2.0/';
+declare namespace nmtl2='http://ggf.org/ns/nmwg/topology/l2/3.0/';
+declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+
+(count(//nmwg:message/nmwg:data) =
count(//nmwg:message/nmwg:data))</path><content>true</content><allowWildcards>true</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" id="030c1d8e-30f3-49af-ace9-6d74d3872e23"
disabled="true"><con:configuration><scriptText>import java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match"><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 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 nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+declare namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:type)="TopologyPoint")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:name[@type="logica"])="PSNC-PL")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:country)="Poland")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:city)="Poznan")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:longitude)="0.0")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:latitude)="0.0")=1
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:institution)="PSNC")=1
+and
+(every $ibatisConfig in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="ibatisConfig"]
satisfies $ibatisConfig="ibatis-SqlMapConfig-L2-status-domain.xml")
+and
+(every $supportedEventType in
//nmwg:message/nmwg:metadata/nmwg:parameters/nmwg:parameter[@name="supportedEventType"]
satisfies
$supportedEventType="Path.Status")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="Schema
Compliance"><con:configuration/></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupDataRequest without a key"
id="bd886741-2048-4372-9cae-bbd7ff5bd7c1"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupDataRequest without a
key"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/en
velope/" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="SetupDataRequest"
@@ -6651,7 +6650,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -6659,8 +6658,7 @@
//t.transform(new DOMSource(node), new StreamResult(sw));
//String yourAnswer = sw.toString();
//validator.validate(new StreamSource(new StringReader(yourAnswer)));
-validator.validate(new DOMSource(node));
-</scriptText></con:configuration></con:assertion><con:assertion type="XPath
Match"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><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 nmwg='http://ggf.org/ns/nmwg/base/2.0/';
declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
@@ -6748,7 +6746,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -6857,7 +6855,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -6966,7 +6964,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7182,7 +7180,7 @@
and
(every $ibatisConfig in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="ibatisConfig"]
satisfies $ibatisConfig="ibatis-SqlMapConfig-L2-status-domain.xml")
and
-(every $supportedEventType in
//nmwg:message/nmwg:metadata/nmwg:parameters/nmwg:parameter[@name="supportedEventType"]
satisfies
$supportedEventType="Path.Status")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Malformed and invalid requests" searchProperties="true"
id="d9aa1fb4-5f4e-4a65-9ee7-c417a15d4792"><con:settings/><con:testStep
type="request" name="SetupData - no message type"
id="ee16f16a-8e4b-415e-b355-b750d7cbc4ac"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no message
type"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-
java-sql-ma/services/MeasurementArchiveService</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/">
+(every $supportedEventType in
//nmwg:message/nmwg:metadata/nmwg:parameters/nmwg:parameter[@name="supportedEventType"]
satisfies
$supportedEventType="Path.Status")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Malformed and invalid requests" searchProperties="true"
id="d9aa1fb4-5f4e-4a65-9ee7-c417a15d4792"
timeout="0"><con:settings/><con:testStep type="request" name="SetupData - no
message type"
id="ee16f16a-8e4b-415e-b355-b750d7cbc4ac"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - no message
type"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr
:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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
@@ -7239,7 +7237,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="SetupData - non-existing type of message"
id="01783902-11fa-4723-8c66-dd4b2139224f"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData - non-existing type of
message"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
@@ -7296,7 +7294,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
@@ -7362,7 +7360,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/ErrorResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
@@ -7409,7 +7407,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7464,7 +7462,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7534,7 +7532,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7606,7 +7604,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7678,7 +7676,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7750,7 +7748,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7818,7 +7816,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7888,7 +7886,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -7960,7 +7958,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8032,7 +8030,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8104,7 +8102,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8178,7 +8176,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8250,7 +8248,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8322,7 +8320,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8459,7 +8457,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8678,7 +8676,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8748,7 +8746,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8822,7 +8820,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8894,7 +8892,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -8912,7 +8910,7 @@
and
(fn:string(//nmwg:metadata/nmwg:eventType)="error.ma.query")
and
-(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Requests with invalid data" searchProperties="true"
id="f5e2f184-c6b9-4cf2-a481-429a417e7095"><con:settings/><con:testStep
type="request" name="SetupDataRequest - wrong glabalName value"
id="cb8bd628-f98d-4654-8d21-afff6df119f5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupDataRequest - wrong glabalName
value"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xml
ns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Requests with invalid data" searchProperties="true"
id="f5e2f184-c6b9-4cf2-a481-429a417e7095"
timeout="0"><con:settings/><con:testStep type="request"
name="SetupDataRequest - wrong glabalName value"
id="cb8bd628-f98d-4654-8d21-afff6df119f5"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupDataRequest - wrong glabalName
value"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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="SetupDataRequest"
@@ -8968,7 +8966,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9042,7 +9040,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9121,7 +9119,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9200,7 +9198,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9279,7 +9277,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9358,7 +9356,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9432,7 +9430,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9585,7 +9583,7 @@
def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
def holder = groovyUtils.getXmlHolder( messageExchange.getResponseContent());
def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
-def schema = factory.newSchema(new
File("../JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/SetupData/SetupDataResponse.rng"));
def validator = schema.newValidator();
def node = holder.getDomNode("//nmwg:message")
//Transformer t = TransformerFactory.newInstance().newTransformer();
@@ -9603,18 +9601,9 @@
and
(fn:string(//nmwg:metadata/nmwg:eventType)="warning.ma.metadata_configuration")
and
-(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="SetupData TestCase" searchProperties="true"
id="1485ae3d-0ce2-4035-b256-29de12cfb233"><con:settings/><con:testStep
type="request" name="SetupData"
id="4681841c-7db0-4ae3-998e-a380b2e02e19"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>SetupDataRequest</con:interface><con:operation>SetupData</con:operation><con:request
name="SetupData"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/">
+(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="CompleteMetadataStoreRequest"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests" searchProperties="true"
id="c4b93f89-01f4-468b-b556-aa2ec4417793"><con:settings/><con:testStep
type="request" name="Single link metadata and
data"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Single link metadata and
data"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-s
ql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <ns:message id="?" messageIdRef="?" type="?">
- <!--1 or more repetitions:-->
- <ns:metadata id="?" metadataIdRef="?"/>
- <ns:data id="?" metadataIdRef="?"/>
- </ns:message>
- </soapenv:Body>
-</soapenv:Envelope>]]></con:request></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="CompleteMetadataStoreRequest"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed Requests"
searchProperties="true"><con:settings/><con:testStep type="request"
name="CompleteMetadataStore"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="CompleteMetadataStore"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:n
s="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
- <soapenv:Header/>
- <soapenv:Body>
<nmwg:message id="msg1"
type="CompleteMetadataStoreRequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
@@ -9698,6 +9687,98 @@
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Without topology node
sub-elements"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Without topology node
sub-elements"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+
+
+
+
<nmwg:metadata id="link-md2">
<nmwg:subject id="sub1">
<nmtl2:link>
@@ -9726,6 +9807,137 @@
+
+
+
+ <nmwg:data id="data2" metadataIdRef="link-md2">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>up</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Multiple link metadata and
data"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Multiple link metadata and
data"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
<nmwg:data id="data1" metadataIdRef="link-md1">
<ifevt:datum timeType="unix" timeValue="1214997801">
<ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
@@ -9734,6 +9946,37 @@
</nmwg:data>
+ <nmwg:metadata id="link-md2">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">PSNC-DFN-LRZ-Link-200-TEST-1111</nmtl2:name>
+ <nmtl2:globalName type="logical">PSNC-DFN-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="PSNC-N1">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the request
then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-interdomain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
<nmwg:data id="data2" metadataIdRef="link-md2">
<ifevt:datum timeType="unix" timeValue="1214997801">
<ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
@@ -9777,72 +10020,2186 @@
declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
declare namespace fn="http://www.w3.org/2005/xpath-functions";
-(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="LSRegisterRequest
"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="true" failT
estCaseOnErrors="true" keepSession="false" name="Valid and well formed
Requests" searchProperties="true"><con:settings/><con:testStep type="request"
name="LSRegister"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="LSRegister"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/">
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Malformed requests" searchProperties="true"
id="73f912e4-a52c-47b0-8d9b-66e75
d0f92c5"><con:settings/><con:testStep type="request" name="Message type
value empty"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Message type value
empty"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message type="LSRegisterRequest"
+<nmwg:message id="msg1"
+ type=""
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+
+
+ <nmwg:metadata id="link-md2">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">PSNC-DFN-LRZ-Link-200-TEST-1111</nmtl2:name>
+ <nmtl2:globalName type="logical">PSNC-DFN-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="PSNC-N1">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the request
then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-interdomain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+ <nmwg:data id="data2" metadataIdRef="link-md2">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>up</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Invalid message type"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Invalid message
type"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="INVALID"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+
+
+ <nmwg:metadata id="link-md2">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">PSNC-DFN-LRZ-Link-200-TEST-1111</nmtl2:name>
+ <nmtl2:globalName type="logical">PSNC-DFN-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="PSNC-N1">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the request
then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-interdomain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+ <nmwg:data id="data2" metadataIdRef="link-md2">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>up</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="No data element(s)"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="No data
element(s)"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+
+
+ <nmwg:metadata id="link-md2">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">PSNC-DFN-LRZ-Link-200-TEST-1111</nmtl2:name>
+ <nmtl2:globalName type="logical">PSNC-DFN-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="PSNC-N1">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the request
then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-interdomain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="No metadata"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="No
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type=""
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+
+
+
+
+
+
+ <nmwg:data id="data2" metadataIdRef="link-md2">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>up</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Wrong eventType"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Wrong
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type=""
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+
+
+ <nmwg:metadata id="link-md2">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">PSNC-DFN-LRZ-Link-200-TEST-1111</nmtl2:name>
+ <nmtl2:globalName type="logical">PSNC-DFN-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="PSNC-N1">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>WRONG_EVENT_TYPE</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the request
then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-interdomain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+ <nmwg:data id="data2" metadataIdRef="link-md2">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>up</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/General/ErrorResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Empty eventType"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Empty
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType></nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Empty id for link metadata"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Empty id for link
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Invalid id for link
metadata"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Invalid id for link
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="WRONG">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Link metadata - wrong
nodeIdRef"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Link metadata - wrong
nodeIdRef"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="WRONG">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Link metadata - nodeIdRef
empty"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Link metadata - nodeIdRef
empty"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Empty parameters element in link
metadata"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Empty parameters element in link
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Empty data metadataIdRef"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Empty data
metadataIdRef"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Misspelled data
metadataIdRef"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Misspelled data
metadataIdRef"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="Wrong">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Requests containing invalid data" searchProperties="true"
id="255cd1fa-cfe2-4
da2-bf46-0d98839adaf7"><con:settings/><con:testStep type="request"
name="Misspelled ibatisConifg file name"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Misspelled ibatisConifg file
name"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xmlERROR</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="1214997801">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Invalid datum value"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Invalid datum
value"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="12149978011111111111111">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Alphabetic character in datum
value"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>CompleteMetadataStoreRequest</con:interface><con:operation>CompleteMetadataStore</con:operation><con:request
name="Alphabetic character in datum
value"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService</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/"
xmlns:ns1="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+<nmwg:message id="msg1"
+ type="CompleteMetadataStoreRequest"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+ xmlns:nmtm="http://ggf.org/ns/nmwg/time/2.0/"
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/"
+ xmlns:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+ xmlns:nmtl3="http://ggf.org/ns/nmwg/topology/l3/3.0/"
+ xmlns:ifevt="http://ggf.org/ns/nmwg/event/status/base/2.0/">
+
+
+ <nmwg:metadata id="node-md0">
+ <nmwg:subject id="sub-PSNC-N1">
+ <nmwgtopo3:node id="PSNC-N1">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-N1</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>UAM</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md1">
+ <nmwg:subject id="sub-DFN-LRZ">
+ <nmwgtopo3:node id="DFN-LRZ">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-LRZ</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Munich</nmwgtopo3:city>
+ <nmwgtopo3:institution>Leibniz
Rechenzentrum</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="node-md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>0</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>0</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+
+
+ <nmwg:metadata id="link-md1">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name
type="logical">DFN-MUE-LRZ-Link-100-TEST-0000</nmtl2:name>
+ <nmtl2:globalName
type="logical">DFN-MUE-LRZ</nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="DFN-LRZ">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:parameters>
+ <!-- if the parameter 'ibatisConfig' is not provided in the
request then the default value of it is taken by the service -->
+ <nmwg:parameter
name="ibatisConfig">ibatis-SqlMapConfig-L2-status-domain.xml</nmwg:parameter>
+ <nmwg:parameter name="keyword">project:geant2</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+
+
+
+
+
+
+
+ <nmwg:data id="data1" metadataIdRef="link-md1">
+ <ifevt:datum timeType="unix" timeValue="fk">
+ <ifevt:stateAdmin>TEST-20080702-1</ifevt:stateAdmin>
+ <ifevt:stateOper>down</ifevt:stateOper>
+ </ifevt:datum>
+ </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"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/CompleteMetadataStore/CompleteMetadataStoreResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="LSRegisterRequest
"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="true" failT
estCaseOnErrors="true" keepSession="false" name="Valid and well formed
Requests" searchProperties="true"
id="f5ecc9c5-2e7f-469e-a02a-497330b83190"><con:settings/><con:testStep
type="request" name="LSRegister"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>LSRegisterRequest</con:interface><con:operation>LSRegister</con:operation><con:request
name="LSRegister"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ls.perfsonar.pionier.net.pl:8080/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/"
xmlns:ns1="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
xmlns:ns2="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.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:discards="http://ggf.org/ns/nmwg/characteristic/discards/2.0/">
-
+ xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.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"
+ <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://ps-test.carnet.hr:8180/geant2-java-sql-ma/services/MeasurementArchiveService
- </psservice:accessPoint>
- <psservice:serviceType>MA</psservice:serviceType>
- <psservice:serviceDescription>
- This is my testing MA
- </psservice:serviceDescription>
- </psservice:service>
- </perfsonar:subject>
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ </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">
- <discards:subject id="subj1">
- <nmwgt:interface>
- <nmwgt:hostName>test-hostName</nmwgt:hostName>
- <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
- <nmwgt:ifName>test-0</nmwgt:ifName>
- <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
- <nmwgt:direction>in</nmwgt:direction>
- <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
- <nmwgt:capacity>1000BaseT</nmwgt:capacity>
- </nmwgt:interface>
- </discards:subject>
- <nmwg:eventType>
- http://ggf.org/ns/nmwg/characteristic/discards/2.0
- </nmwg:eventType>
- </nmwg:metadata>
- </nmwg:data>
-
<nmwg:data id="data1" metadataIdRef="serviceLookupInfo">
- <nmwg:metadata id="meta2">
- <discards:subject id="subj1">
- <nmwgt:interface>
- <nmwgt:hostName>test-hostName</nmwgt:hostName>
- <nmwgt:ifAddress type="ipv4">10.1.2.3</nmwgt:ifAddress>
- <nmwgt:ifName>test-0</nmwgt:ifName>
- <nmwgt:ifDescription>test descripyion</nmwgt:ifDescription>
- <nmwgt:direction>out</nmwgt:direction>
- <nmwgt:authRealm>TestRealm</nmwgt:authRealm>
- <nmwgt:capacity>1000BaseT</nmwgt:capacity>
- </nmwgt:interface>
- </discards:subject>
- <nmwg:eventType>
- http://ggf.org/ns/nmwg/characteristic/discards/2.0
- </nmwg:eventType>
+ <nmwg:metadata id="md2">
+ <nmwg:subject id="sub-DFN-MUE">
+ <nmwgtopo3:node id="DFN-MUE">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">DFN-MUE</nmwgtopo3:name>
+ <nmwgtopo3:country>Germany</nmwgtopo3:country>
+ <nmwgtopo3:city>Muenster</nmwgtopo3:city>
+ <nmwgtopo3:institution>DFN-Verein</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>X</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>Y</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
</nmwg:metadata>
</nmwg:data>
-
+
+ <nmwg:data id="data2" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="md3">
+ <nmwg:subject id="sub-PSNC-PL">
+ <nmwgtopo3:node id="PSNC-PL">
+ <nmwgtopo3:type>TopologyPoint</nmwgtopo3:type>
+ <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
+ <nmwgtopo3:latitude>X</nmwgtopo3:latitude>
+ <nmwgtopo3:longitude>Y</nmwgtopo3:longitude>
+ </nmwgtopo3:node>
+ </nmwg:subject>
+ </nmwg:metadata>
+ </nmwg:data>
+
+ <nmwg:data id="data3" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="md-link-PSNC-DFN-MUE-003">
+ <nmwg:subject id="sub1">
+ <nmtl2:link>
+
+ <nmtl2:name type="logical">
+ PSNC-DFN-MUE-Link-1001
+ </nmtl2:name>
+ <nmtl2:globalName type="logical">
+ PSNC-DFN-MUE-003
+ </nmtl2:globalName>
+ <nmtl2:type>ID_Link</nmtl2:type>
+
+ <nmwgtopo3:node nodeIdRef="PSNC-PL">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node nodeIdRef="DFN-MUE">
+ <nmwgtopo3:role>DemarcPoint</nmwgtopo3:role>
+ </nmwgtopo3:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>
+ Path.Status
+ </nmwg:eventType>
+ </nmwg:metadata>
+ </nmwg:data>
+
</nmwg:message>
+
</soapenv:Body>
-</soapenv:Envelope>]]></con:request></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:wssContainer/></con:soapui-project>
\ No newline at end of file
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+import java.io.OutputStream;
+import java.io.StringWriter;
+import javax.xml.transform.*;
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.TransformerFactory;
+import javax.xml.transform.dom.DOMSource;
+import javax.xml.XMLConstants
+import javax.xml.validation.SchemaFactory
+import java.io.StringWriter
+
+
+def groovyUtils = new com.eviware.soapui.support.GroovyUtils( context )
+def holder = groovyUtils.getXmlHolder(
+messageExchange.getResponseContent());
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/LSRegister/LSRegisterResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+//Transformer t = TransformerFactory.newInstance().newTransformer();
+//StringWriter sw = new StringWriter();
+//t.transform(new DOMSource(node), new StreamResult(sw));
+//String yourAnswer = sw.toString();
+//validator.validate(new StreamSource(new StringReader(yourAnswer)));
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:loadTest
name="LoadTest
1"><con:settings/><con:threadCount>5</con:threadCount><con:startDelay>0</con:startDelay><con:sampleInterval>250</con:sampleInterval><con:calculateTPSOnTimePassed>false</con:calculateTPSOnTimePassed><con:resetStatisticsOnThreadCountChange>true</con:resetStatisticsOnThreadCountChange><con:historyLimit>-1</con:historyLimit><con:testLimit>60</con:testLimit><con:limitType>TIME</con:limitType><con:loadStrategy><con:type>Simple</con:type></con:loadStrategy><con:assertion
type="Step Status" name="Step
Status"/><con:maxAssertionErrors>100</con:maxAssertionErrors></con:loadTest><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:wssContainer/></con:soapui-project>
\ No newline at end of file
Added: trunk/functional-testing/JavaSQLMAsoapUI/svn-commit.tmp~
Property changes on: trunk/functional-testing/JavaSQLMAsoapUI/svn-commit.tmp~
___________________________________________________________________
Name: svn:executable
+ *
- perfsonar: r4301 - in trunk/functional-testing/JavaSQLMAsoapUI: . General General/LookupInfoRequest General/LookupInfoResponse InterfaceBased InterfaceBased/LSRegister InterfaceBased/LSRegister/LSRegisterRequest InterfaceBased/LSRegister/LSRegisterResponse L2Status, svnlog, 07/25/2008
Archive powered by MHonArc 2.6.16.