perfsonar-dev - perfsonar: r4340 - in trunk/functional-testing/JavaSQLMAsoapUI: General InterfaceBased L2Status
Subject: perfsonar development work
List archive
perfsonar: r4340 - in trunk/functional-testing/JavaSQLMAsoapUI: General InterfaceBased L2Status
Chronological Thread
- From:
- To:
- Subject: perfsonar: r4340 - in trunk/functional-testing/JavaSQLMAsoapUI: General InterfaceBased L2Status
- Date: Wed, 6 Aug 2008 11:15:17 -0400
Author: sasa.cavara
Date: 2008-08-06 11:15:17 -0400 (Wed, 06 Aug 2008)
New Revision: 4340
Modified:
trunk/functional-testing/JavaSQLMAsoapUI/General/SQL_MA_soapui-GENERAL-project.xml
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
Log:
Modified:
trunk/functional-testing/JavaSQLMAsoapUI/General/SQL_MA_soapui-GENERAL-project.xml
===================================================================
---
trunk/functional-testing/JavaSQLMAsoapUI/General/SQL_MA_soapui-GENERAL-project.xml
2008-08-06 15:13:19 UTC (rev 4339)
+++
trunk/functional-testing/JavaSQLMAsoapUI/General/SQL_MA_soapui-GENERAL-project.xml
2008-08-06 15:15:17 UTC (rev 4340)
@@ -11,6 +11,7 @@
<con:entry key="Export All" value="false"/>
<con:entry key="Enable UI" value="false"/>
<con:entry key="TestSuite" value="<all>"/>
+ <con:entry key="Password" value=""/>
<con:entry key="TestCase" value="<all>"/>
<con:entry key="Endpoint" value=""/>
<con:entry key="Export JUnit Results" value="false"/>
Modified:
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
===================================================================
---
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
2008-08-06 15:13:19 UTC (rev 4339)
+++
trunk/functional-testing/JavaSQLMAsoapUI/InterfaceBased/SQL_MA_soapui-project.xml
2008-08-06 15:15:17 UTC (rev 4340)
@@ -1157,16 +1157,7 @@
and
(every $endTime
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="endTime"]
satisfies $endTime= "1186739100")
and
-(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]
satisfies $resolution= "60")
-and
-(every $consolidation
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="consolidationFunction"]
satisfies $consolidation= "AVERAGE")
-and
-(every $file in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="file"]
-satisfies
(fn:string($file)="/home/mike/geant2_java-rrd-ma-2.3-RC5/samples/rrd/test.rrd"))
-and
-(fn:string(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="eventType"])="http://ggf.org/ns/nmwg/characteristic/discards/2.0")
-and
-(count(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="consolidationFunction"])=0)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]
satisfies $resolution=
"60")</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.*;
@@ -1655,16 +1646,7 @@
and
(every $endTime
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="endTime"]
satisfies $endTime= "1186739100")
and
-(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]
satisfies $resolution= "60")
-and
-(every $consolidation
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="consolidationFunction"]
satisfies $consolidation= "AVERAGE")
-and
-(every $file in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="file"]
-satisfies
(fn:string($file)="/home/mike/geant2_java-rrd-ma-2.3-RC5/samples/rrd/test.rrd"))
-and
-(fn:string(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="eventType"])="http://ggf.org/ns/nmwg/characteristic/errors/2.0")
-and
-(count(//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"])=0)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]
satisfies $resolution=
"60")</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.*;
@@ -1949,14 +1931,7 @@
and
(every $endTime
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="endTime"]
satisfies $endTime= "1186739100")
and
-(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]
satisfies $resolution= "60")
-and
-(every $consolidation
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="consolidationFunction"]
satisfies $consolidation= "AVERAGE")
-and
-(every $file in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="file"]
-satisfies
(fn:string($file)="/home/mike/geant2_java-rrd-ma-2.3-RC5/samples/rrd/test.rrd"))
-and
-(fn:string(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="eventType"])="http://ggf.org/ns/nmwg/characteristic/errors/2.0")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]
satisfies $resolution=
"60")</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.*;
@@ -2043,12 +2018,7 @@
and
(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]
satisfies $resolution= "60")
and
-(every $consolidation
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="consolidationFunction"]
satisfies $consolidation= "AVERAGE")
-and
-(every $file in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="file"]
-satisfies
(fn:string($file)="/home/mike/geant2_java-rrd-ma-2.3-RC5/samples/rrd/test.rrd"))
-and
-(fn:string(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="eventType"])="http://ggf.org/ns/nmwg/characteristic/discards/2.0")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+(every $consolidation
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="consolidationFunction"]
satisfies $consolidation=
"AVERAGE")</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.*;
@@ -2275,8 +2245,7 @@
(//nmwg:message/@type ="MetadataKeyResponse")
and
-(count(//nmwg:message/nmwg:metadata)=count(//nmwg:message/nmwg:data))
-and</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+(count(//nmwg:message/nmwg:metadata)=count(//nmwg:message/nmwg:data))</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.*;
@@ -2366,12 +2335,7 @@
and
(every $resolution
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="resolution"]/@value
satisfies $resolution= "60")
and
-(every $consolidation
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="consolidationFunction"]
satisfies $consolidation= "AVERAGE")
-and
-(every $file in
//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="file"]
-satisfies
(fn:string($file)="/home/mike/geant2_java-rrd-ma-2.3-RC5/samples/rrd/test.rrd"))
-and
-(fn:string(//nmwg:message/nmwg:data/nmwg:key/nmwg:parameters/nmwg:parameter[@name="eventType"])="http://ggf.org/ns/nmwg/characteristic/errors/2.0")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"><con:configuration><scriptText>import
java.io.File;
+(every $consolidation
in//nmwg:message/nmwg:data/nmwg:key/select:parameters/nmwg:parameter[@name="consolidationFunction"]
satisfies $consolidation=
"AVERAGE")</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.*;
@@ -4791,7 +4755,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"><con:configuration><path>declare namespace
nmwgt='http://ggf.org/ns/nmwg/topology/2.0/';
+</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/';
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/';
@@ -10136,58 +10100,9 @@
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: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/">
+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"
id="aebd232c-e6b9-4c20-a5ff-fd51ae2c2f43"><con:settings/><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/Loo
kupService</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: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/"
@@ -10371,9 +10286,83 @@
//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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><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:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
<soapenv:Header/>
<soapenv:Body>
+ <nmwg:message type="LSRegisterRequest"
+ id="msg1"
+ xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/"
+ xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/"
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/"
+ xmlns:nmwgt="http://ggf.org/ns/nmwg/topology/2.0/"
+ xmlns:netutil="http://ggf.org/ns/nmwg/characteristic/utilization/2.0/">
+
+ <nmwg:metadata id="serviceLookupInfo">
+ <perfsonar:subject id="commonParameters"
+ xmlns:perfsonar="http://ggf.org/ns/nmwg/tools/org/perfsonar/1.0/">
+ <psservice:service id="serviceParameters"
+
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/">
+ <psservice:serviceName>My_test_MA</psservice:serviceName>
+ <psservice:accessPoint>
+ http://reed.man.poznan.pl:8080/axis/services/MA
+ </psservice:accessPoint>
+ <psservice:serviceType>MA</psservice:serviceType>
+ <psservice:serviceDescription>
+ This is my testing MA
+ </psservice:serviceDescription>
+ </psservice:service>
+ </perfsonar:subject>
+ </nmwg:metadata>
+
+ <nmwg:data id="data0" metadataIdRef="serviceLookupInfo">
+ <nmwg:metadata id="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: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:assertion
type="SOAP
Response"/></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/"
Modified:
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
===================================================================
---
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
2008-08-06 15:13:19 UTC (rev 4339)
+++
trunk/functional-testing/JavaSQLMAsoapUI/L2Status/SQL-MA_L2-soapui-project.xml
2008-08-06 15:15:17 UTC (rev 4340)
@@ -3356,7 +3356,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: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/">
+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="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="L2 link name and using Path.Status value for
eventType"><con:settings/><con:encoding>UTF-8</con:encodin
g><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"
@@ -3454,7 +3454,7 @@
and
(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="metadata - simple L2 request2"
id="546686b0-53cb-4e94-984d-82bfa944a804"><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 - simple L2
request2"><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:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Simple L2 request2"
id="546686b0-53cb-4e94-984d-82bfa944a804"><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="Simple L2
request2"><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"
@@ -3545,11 +3545,7 @@
and
(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
-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="L2 link node names and 'now' time parameter2"
id="2ce95173-9b88-4dc1-90ac-b8059865d8c1"><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="L2 link node names and 'now' time
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/">
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="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="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"
@@ -3559,25 +3555,6 @@
xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/">
<nmwg:metadata id="meta1">
- <nmwg:subject id="subject1">
- <nmtl2:link>
-
- <nmwgtopo3:node>
- <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
- <nmwgtopo3:country>Poland</nmwgtopo3:country>
- <nmwgtopo3:city>Poznan</nmwgtopo3:city>
- <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
- </nmwgtopo3:node>
-
- <nmwgtopo3:node>
- <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:node>
-
- </nmtl2:link>
- </nmwg:subject>
<nmwg:eventType>Path.Status</nmwg:eventType>
</nmwg:metadata>
@@ -3593,13 +3570,13 @@
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="89b031ef-cd99-49ab-a506-58476e3c0d6a"/><con:assertion type="SOAP Fault
Assertion" id="0f7548f6-20c6-4336-ace4-0febfd19d267"/><con:assertion
type="XPath Match"
id="3c504e2d-8a00-460c-b084-81d557912448"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="8dbd80df-f5fb-4dbf-94fc-016e6179d859"/><con:assertion type="SOAP Fault
Assertion" id="da7d98fa-0d8d-4d88-90e2-576baf38bc92"/><con:assertion
type="XPath Match"
id="e89cffa4-46fa-43d6-a084-ee9036ed4356"><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="26e4d677-abb7-4274-8108-8c0b9e57a37c"><con:configuration><scriptText>import
java.io.File;
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="ad087f52-a7c9-414e-8710-079c4964f753"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -3614,7 +3591,7 @@
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()"){
+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)
@@ -3643,15 +3620,7 @@
and
count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:institution)="PSNC")=1
and
-(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
-and
-(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
-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 - L2 link node names and 'now' time parameter"
id="621e8e22-53ce-4305-b7f2-3d55b1d7df09"><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 node names and 'now' time
parameter"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-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:testStep
type="request" name="Only type o fmetric and 'now' time filtering parameter"
id="337beedf-46ae-49f1-a05d-856e0e35006a"><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="Only type o fmetric and 'now' time filtering
parameter"><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"
@@ -3661,25 +3630,6 @@
xmlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/">
<nmwg:metadata id="meta1">
- <nmwg:subject id="subject1">
- <nmtl2:link>
-
- <nmwgtopo3:node>
- <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
- <nmwgtopo3:country>Poland</nmwgtopo3:country>
- <nmwgtopo3:city>Poznan</nmwgtopo3:city>
- <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
- </nmwgtopo3:node>
-
- <nmwgtopo3:node>
- <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:node>
-
- </nmtl2:link>
- </nmwg:subject>
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
</nmwg:metadata>
@@ -3687,6 +3637,7 @@
<select:subject id="iusub2" metadataIdRef="meta1"/>
<select:parameters id="param1">
<nmwg:parameter name="time">now</nmwg:parameter>
+
</select:parameters>
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
</nmwg:metadata>
@@ -3695,13 +3646,13 @@
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="573be1c0-5724-43fe-9565-27f8014d15ad"/><con:assertion type="SOAP Fault
Assertion" id="94a0c72c-1866-40d9-897a-c947c3b50865"/><con:assertion
type="XPath Match"
id="0a21afd1-e7b9-48d3-aeae-85289646201a"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="2ab64c2e-f18e-4e3f-ac75-e20de0ca6895"/><con:assertion type="SOAP Fault
Assertion" id="3b2941f0-f7eb-4b61-8cab-120d2da0843d"/><con:assertion
type="XPath Match"
id="c0b1c9ee-4394-405f-b0bb-9d032e51bcff"><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"
id="1ffecdd0-5f17-49af-8d88-4f9119925497"><con:configuration><scriptText>import
java.io.File;
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="a4262420-72b3-407b-abb3-4990e2109c23"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -3712,15 +3663,64 @@
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 nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.0/"
+declare namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
-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/MetadataKey/MetadataKeyResponse.rng"));
-def validator = schema.newValidator();
-def node = holder.getDomNode("//nmwg:message")
-validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="b2e061d2-c338-4a1c-b1c6-348933406886"><con:configuration><scriptText>import
java.io.File;
+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="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="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/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.*;
@@ -3735,7 +3735,7 @@
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()"){
+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)
@@ -3747,7 +3747,6 @@
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
@@ -3762,17 +3761,7 @@
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 $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
-and
-(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
-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 -L2 link name and using URL value for
eventType"
id="9962e44b-f93a-4627-a8be-ede055078e78"><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 URL value for
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-SQL-MA/services/MeasurementArchiveService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" x
mlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+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="L2 link name and using URL value for eventType"
id="9962e44b-f93a-4627-a8be-ede055078e78"><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="L2 link name and using URL value for
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-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"
@@ -3874,38 +3863,33 @@
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
parameter"
id="337beedf-46ae-49f1-a05d-856e0e35006a"><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
parameter"><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 $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="L2 link using Path.Status for eventType"
id="1d9f10aa-0e04-44ba-80e4-5b7b9713c357"><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="L2 link using Path.Status 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/ba
se/2.0/">
<soapenv:Header/>
<soapenv:Body>
- <nmwg:message type="MetadataKeyRequest"
+ <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:eventType>Path.Status</nmwg:eventType>
</nmwg:metadata>
- <nmwg:metadata id="meta2">
- <select:subject id="iusub2" metadataIdRef="meta1"/>
- <select:parameters id="param1">
- <nmwg:parameter name="time">now</nmwg:parameter>
- </select:parameters>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
- </nmwg:metadata>
- <nmwg:data id="data1" metadataIdRef="meta2"/>
+ <nmwg:data id="data1" metadataIdRef="meta1"/>
+
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="2ab64c2e-f18e-4e3f-ac75-e20de0ca6895"/><con:assertion type="SOAP Fault
Assertion" id="3b2941f0-f7eb-4b61-8cab-120d2da0843d"/><con:assertion
type="XPath Match"
id="c0b1c9ee-4394-405f-b0bb-9d032e51bcff"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="841f85b8-e03a-4568-93f7-15cd24b03cee"/><con:assertion type="SOAP Fault
Assertion" id="9b524649-7f6b-4742-8a25-6d75cc7dd07b"/><con:assertion
type="XPath Match"
id="4112307b-2798-4bf3-8c92-d1cd713c1918"><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="a4262420-72b3-407b-abb3-4990e2109c23"><con:configuration><scriptText>import
java.io.File;
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="ea1640f5-6ebc-4851-9309-e7a334f823f3"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -3932,7 +3916,6 @@
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
@@ -3947,26 +3930,40 @@
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 - simple L2 request"
id="ed93eab5-3b95-43e5-a016-9b95e0cb60f4"><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 - simple L2
request"><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:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:institution)="PSNC")=1
+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:testStep
type="request" name="L2 link node names and 'now' time parameter2"
id="2ce95173-9b88-4dc1-90ac-b8059865d8c1"><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="L2 link node names and 'now' time
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"
+ <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: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:subject id="subject1">
<nmtl2:link>
- <nmtl2:globalName
type="logical">PSNC-DFN-MUE-003</nmtl2:globalName>
+
+ <nmwgtopo3:node>
+ <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node>
+ <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:node>
+
</nmtl2:link>
</nmwg:subject>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
</nmwg:metadata>
-
<nmwg:metadata id="meta2">
<select:subject id="iusub2" metadataIdRef="meta1"/>
<select:parameters id="param1">
@@ -3975,20 +3972,17 @@
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
</nmwg:metadata>
-
-
<nmwg:data id="data1" metadataIdRef="meta2"/>
-
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="14fbedf4-cfbd-4016-8579-4fedeff8bea6"/><con:assertion type="SOAP Fault
Assertion" id="44612fbc-0e86-4e61-b284-f6dc8e3b7cfc"/><con:assertion
type="XPath Match"
id="cec8abba-c3ac-4966-9c5a-a566c4a1b0a7"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="89b031ef-cd99-49ab-a506-58476e3c0d6a"/><con:assertion type="SOAP Fault
Assertion" id="0f7548f6-20c6-4336-ace4-0febfd19d267"/><con:assertion
type="XPath Match"
id="3c504e2d-8a00-460c-b084-81d557912448"><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"
id="5d2e83fe-78d9-450a-9ca5-9bc25553d04c"><con:configuration><scriptText>import
java.io.File;
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="26e4d677-abb7-4274-8108-8c0b9e57a37c"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -3999,28 +3993,8 @@
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/MetadataKey/MetadataKeyResponse.rng"));
-def validator = schema.newValidator();
-def node = holder.getDomNode("//nmwg:message")
-validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="093091df-1919-4fdb-b106-e061187564bf"><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 knownResultsMap=[id:"PSNC-DFN-MUE-003",status:"down",admin:"UNKNOWN"]
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()"){
@@ -4029,7 +4003,6 @@
resultList.add(result)
}
resultList.each{
-if((it.id==knownResultsMap.id)&&(it.status==knownResultsMap.status)&&(it.admin==knownResultsMap.admin))
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/';
@@ -4061,33 +4034,57 @@
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 - 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/">
+(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="L2 link node names and 'now' time parameter"
id="621e8e22-53ce-4305-b7f2-3d55b1d7df09"><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="L2 link node names and 'now' time
parameter"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfsonar.carnet.hr:8080/perfSONAR-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"
+ <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:subject id="subject1">
+ <nmtl2:link>
+
+ <nmwgtopo3:node>
+ <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node>
+ <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:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
</nmwg:metadata>
+ <nmwg:metadata id="meta2">
+ <select:subject id="iusub2" metadataIdRef="meta1"/>
+ <select:parameters id="param1">
+ <nmwg:parameter name="time">now</nmwg:parameter>
+ </select:parameters>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
+ </nmwg:metadata>
- <nmwg:data id="data1" metadataIdRef="meta1"/>
+ <nmwg:data id="data1" metadataIdRef="meta2"/>
-
</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/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="573be1c0-5724-43fe-9565-27f8014d15ad"/><con:assertion type="SOAP Fault
Assertion" id="94a0c72c-1866-40d9-897a-c947c3b50865"/><con:assertion
type="XPath Match"
id="0a21afd1-e7b9-48d3-aeae-85289646201a"><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;
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
id="1ffecdd0-5f17-49af-8d88-4f9119925497"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -4098,68 +4095,15 @@
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/"
- 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>Path.Status</nmwg:eventType>
- </nmwg:metadata>
-
- <nmwg:metadata id="meta2">
- <select:subject id="iusub2" metadataIdRef="meta1"/>
- <select:parameters id="param1">
- <nmwg:parameter name="time">now</nmwg:parameter>
- </select:parameters>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
- </nmwg:metadata>
-
- <nmwg:data id="data1" metadataIdRef="meta2"/>
-
- </nmwg:message>
- </soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="8dbd80df-f5fb-4dbf-94fc-016e6179d859"/><con:assertion type="SOAP Fault
Assertion" id="da7d98fa-0d8d-4d88-90e2-576baf38bc92"/><con:assertion
type="XPath Match"
id="e89cffa4-46fa-43d6-a084-ee9036ed4356"><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="ad087f52-a7c9-414e-8710-079c4964f753"><con:configuration><scriptText>import
java.io.File;
+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/MetadataKey/MetadataKeyResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="b2e061d2-c338-4a1c-b1c6-348933406886"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -4174,7 +4118,7 @@
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"){
+sql.eachRow("select id,status_oper,status_admin from domain_link where
time=now()"){
def result=[:]
result=[id:it.id,status:it.status_oper,admin:it.status_admin]
resultList.add(result)
@@ -4203,33 +4147,52 @@
and
count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:institution)="PSNC")=1
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:testStep
type="request" name="L2 link using Path.Status for eventType"
id="1d9f10aa-0e04-44ba-80e4-5b7b9713c357"><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="L2 link using Path.Status 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/">
+(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
+and
+(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
+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="Simple L2 request"
id="ed93eab5-3b95-43e5-a016-9b95e0cb60f4"><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="Simple L2
request"><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"
+<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/">
+ xmlns:select="http://ggf.org/ns/nmwg/ops/select/2.0/">
+
<nmwg:metadata id="meta1">
- <nmwg:eventType>Path.Status</nmwg:eventType>
+ <nmwg:subject id="subject1">
+ <nmtl2:link>
+ <nmtl2:globalName
type="logical">PSNC-DFN-MUE-003</nmtl2:globalName>
+ </nmtl2:link>
+ </nmwg:subject>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
</nmwg:metadata>
+ <select:parameters id="param1">
+ <nmwg:parameter name="time">now</nmwg:parameter>
+ </select:parameters>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
+ </nmwg:metadata>
- <nmwg:data id="data1" metadataIdRef="meta1"/>
+ <nmwg:data id="data1" metadataIdRef="meta2"/>
+
</nmwg:message>
</soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="841f85b8-e03a-4568-93f7-15cd24b03cee"/><con:assertion type="SOAP Fault
Assertion" id="9b524649-7f6b-4742-8a25-6d75cc7dd07b"/><con:assertion
type="XPath Match"
id="4112307b-2798-4bf3-8c92-d1cd713c1918"><con:configuration><path>declare
namespace nmwgtopo3='http://ggf.org/ns/nmwg/topology/base/3.0/';
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="14fbedf4-cfbd-4016-8579-4fedeff8bea6"/><con:assertion type="SOAP Fault
Assertion" id="44612fbc-0e86-4e61-b284-f6dc8e3b7cfc"/><con:assertion
type="XPath Match"
id="cec8abba-c3ac-4966-9c5a-a566c4a1b0a7"><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="ea1640f5-6ebc-4851-9309-e7a334f823f3"><con:configuration><scriptText>import
java.io.File;
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion"
id="5d2e83fe-78d9-450a-9ca5-9bc25553d04c"><con:configuration><scriptText>import
java.io.File;
import java.io.OutputStream;
import java.io.StringWriter;
import javax.xml.transform.*;
@@ -4240,22 +4203,44 @@
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/MetadataKey/MetadataKeyResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion><con:assertion
type="GroovyScriptAssertion" name="SQL Script Assertion"
id="093091df-1919-4fdb-b106-e061187564bf"><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 knownResultsMap=[id:"PSNC-DFN-MUE-003",status:"down",admin:"UNKNOWN"]
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"){
+sql.eachRow("select id,status_oper,status_admin from domain_link where
time=now()"){
def result=[:]
result=[id:it.id,status:it.status_oper,admin:it.status_admin]
resultList.add(result)
}
resultList.each{
+if((it.id==knownResultsMap.id)&&(it.status==knownResultsMap.status)&&(it.admin==knownResultsMap.admin))
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 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
@@ -4272,7 +4257,15 @@
and
count((//nmwg:message/nmwg:metadata/nmwg:subject/nmwgtopo3:node/nmwgtopo3:institution)="PSNC")=1
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="false" failTestCaseOnErrors="true" keepSession="false"
name="Malformed requests" searchProperties="true"
id="b8d22ac2-4fe2-4b72-8ca7-7ce146dde315"><con:settings/><con:testStep
type="request" name="Metadata - L2 STATUS no type in message"
id="2eaf30d4-54a9-42c2-ae41-561d03adf36a"><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 STATUS no type in
message"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8
180/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 $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
+and
+(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
+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:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Malformed requests" searchProperties="true"
id="b8d22ac2-4fe2-4b72-8ca7-7ce146dde315"><con:settings/><con:testStep
type="request" name="L2 STATUS no type in message"
id="2eaf30d4-54a9-42c2-ae41-561d03adf36a"><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="L2 STATUS no type in
message"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://ps-test.CARNet.hr:8180/ge
ant2-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
@@ -4344,14 +4337,14 @@
(count(//nmwg:metadata)=count(//nmwg:data))
and
-(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS no metadata-data elements"
id="69c95420-c1e9-472e-97a9-3070aabe13b2"><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 STATUS no metadata-data
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/">
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS no metadata-data elements"
id="69c95420-c1e9-472e-97a9-3070aabe13b2"><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="L2 STATUS no metadata-data
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/">
<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/">
+ x mlns:nmwgtopo3="http://ggf.org/ns/nmwg/topology/base/3.0/">
</nmwg:message>
</soapenv:Body>
@@ -4383,7 +4376,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS invalid id in metadata"
id="fcb36678-c294-4c20-8ad7-f0609c776236"><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 STATUS invalid id in
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS invalid id in metadata"
id="fcb36678-c294-4c20-8ad7-f0609c776236"><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="L2 STATUS invalid id in
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4455,7 +4448,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS invalid id in second metadata"
id="914171e6-e9e6-45bd-a959-bb9740ddb67d"><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 STATUS invalid id in second
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS invalid id in second metadata"
id="914171e6-e9e6-45bd-a959-bb9740ddb67d"><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="L2 STATUS invalid id in second
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4527,7 +4520,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS empty event Type element in
metadata"
id="4a7cbd5e-6967-4b1e-941b-5daf43740def"><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 STATUS empty event Type element in
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS empty event Type element in metadata"
id="4a7cbd5e-6967-4b1e-941b-5daf43740def"><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="L2 STATUS empty event Type element in
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4599,7 +4592,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS empty subject metadataIdRef"
id="85a845c3-dc5f-4cf7-b2b0-a67333d260b7"><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 STATUS empty subject
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS empty subject metadataIdRef"
id="85a845c3-dc5f-4cf7-b2b0-a67333d260b7"><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="L2 STATUS empty subject
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message
@@ -4671,7 +4664,7 @@
(count(//nmwg:metadata)=count(//nmwg:data))
and
-(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS invalid subject id in metadata"
id="68c1d69b-6762-45d8-91ee-116d93572206"><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 STATUS invalid subject id in
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/">
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS invalid subject id in metadata"
id="68c1d69b-6762-45d8-91ee-116d93572206"><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="L2 STATUS invalid subject id in
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4743,7 +4736,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS subject namespace not valid in
filter metadata"
id="796472e1-d393-4fbe-838d-0d884e75e47a"><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 STATUS subject namespace not valid in filter
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS subject namespace not valid in filter
metadata"
id="796472e1-d393-4fbe-838d-0d884e75e47a"><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="L2 STATUS subject namespace not valid in filter
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4815,7 +4808,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS subject element missing in filter
metadata"
id="7e9ec193-18f9-46ef-b71d-9a8f8680a0d5"><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 STATUS subject element missing in filter
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS subject element missing in filter metadata"
id="7e9ec193-18f9-46ef-b71d-9a8f8680a0d5"><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="L2 STATUS subject element missing in filter
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4886,7 +4879,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS no select parameter in filter
metadata"
id="82a0cb73-aa0d-4414-8932-4f442b4aa752"><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 STATUS no select parameter in filter
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS no select parameter in filter metadata"
id="82a0cb73-aa0d-4414-8932-4f442b4aa752"><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="L2 STATUS no select parameter in filter
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -4954,7 +4947,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS parameter namespace other than
select in filter metadata"
id="58213baa-7961-4ffb-8bc3-716775020eaa"><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 STATUS parameter namespace other than select in filter
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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS parameter namespace other than select in
filter metadata"
id="58213baa-7961-4ffb-8bc3-716775020eaa"><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="L2 STATUS parameter namespace other than select in filter
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5026,7 +5019,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS invalid id in second metadata2"
id="806a8a91-f415-481d-945f-b341e84a7d41"><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 STATUS invalid id in second
metadata2"><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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS invalid id in second metadata2"
id="806a8a91-f415-481d-945f-b341e84a7d41"><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="L2 STATUS invalid id in second
metadata2"><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"
@@ -5098,7 +5091,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS invalid id in second metadata2 1"
id="2c7c180a-6223-4898-a2f6-4a37bba8f0e5"><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 STATUS invalid id in second metadata2
1"><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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS invalid id in second metadata2 1"
id="2c7c180a-6223-4898-a2f6-4a37bba8f0e5"><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="L2 STATUS invalid id in second metadata2
1"><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"
@@ -5170,7 +5163,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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 - L2 STATUS empty subject metadataIdRef2"
id="1831e69b-788c-421f-94a4-0c2389db307b"><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 STATUS empty subject
metadataIdRef2"><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/">
+validator.validate(new
DOMSource(node));</scriptText></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS empty subject metadataIdRef2"
id="1831e69b-788c-421f-94a4-0c2389db307b"><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="L2 STATUS empty subject
metadataIdRef2"><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
@@ -5242,7 +5235,7 @@
(count(//nmwg:metadata)=count(//nmwg:data))
and
-(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS invalid subject id in metadata2"
id="2107cf9f-0025-48b3-a01d-337c6a33e41f"><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 STATUS invalid subject id in
metadata2"><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/">
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS invalid subject id in metadata2"
id="2107cf9f-0025-48b3-a01d-337c6a33e41f"><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="L2 STATUS invalid subject id in
metadata2"><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"
@@ -5314,7 +5307,7 @@
def schema = factory.newSchema(new
File("/home/scavara/Desktop/soapui-2.0.2/JavaSQLMAsoapUI/L2Status/MetadataKey/MetadataKeyResponse.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:properties/></con:testCase><con:testCase
failOnError="false" failTestCaseOnErrors="true" keepSession="false"
name="Requests containing invalid data" searchProperties="true"
id="f59a117e-c329-4bec-894e-014687074d03"><con:settings/><con:testStep
type="request" name="Metadata - L2 STATUS wrong name"
id="42fbbe80-ef32-42a6-b2d4-85e229766d8c"><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 STATUS wrong name"
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/Measure
mentArchiveService</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/">
+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="f59a117e-c329-4bec-894e-014687074d03"><con:settings/><con:testStep
type="request" name="L2 STATUS wrong name"
id="42fbbe80-ef32-42a6-b2d4-85e229766d8c"><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="L2 STATUS wrong name" 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</co
n: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"
@@ -5386,7 +5379,7 @@
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:testStep
type="request" name="Metadata - L2 STATUS wrong country"
id="a71bc7c4-7902-4645-bba0-b1c7c21d6a7f"><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 STATUS wrong country"
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/">
+(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS wrong country"
id="a71bc7c4-7902-4645-bba0-b1c7c21d6a7f"><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="L2 STATUS wrong country" 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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5458,7 +5451,7 @@
(count(//nmwg:metadata)=count(//nmwg:data))
and
-(fn:string(//nmwg:metadata/nmwg:eventType)="warning.ma.metadata_configuration")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="Metadata - L2 STATUS wrong city"
id="6d1269f0-fdb2-4d6c-94b3-fc89e4382813"><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 STATUS wrong city"
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/">
+(fn:string(//nmwg:metadata/nmwg:eventType)="warning.ma.metadata_configuration")</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS wrong city"
id="6d1269f0-fdb2-4d6c-94b3-fc89e4382813"><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="L2 STATUS wrong city" 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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5536,7 +5529,7 @@
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:testStep
type="request" name="Metadata - L2 STATUS wrong institution"
id="6cae6b0d-3b41-4d2a-b137-006014b3807d"><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 STATUS wrong institution"
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/">
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS wrong institution"
id="6cae6b0d-3b41-4d2a-b137-006014b3807d"><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="L2 STATUS wrong institution"
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5614,7 +5607,7 @@
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:testStep
type="request" name="Metadata - L2 STATUS wrong name2"
id="a325c9d3-85d8-4365-854c-88850a2e16b6"><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 STATUS wrong name2"
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/">
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS wrong name2"
id="a325c9d3-85d8-4365-854c-88850a2e16b6"><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="L2 STATUS wrong name2" 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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5683,7 +5676,7 @@
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:testStep
type="request" name="Metadata - L2 STATUS wrong country2"
id="5d455879-6fa3-4743-82b8-ae5ba744bfcb"><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 STATUS wrong country2"
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/">
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS wrong country2"
id="5d455879-6fa3-4743-82b8-ae5ba744bfcb"><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="L2 STATUS wrong country2"
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5755,7 +5748,7 @@
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:testStep
type="request" name="Metadata - L2 STATUS wrong city2"
id="1b6c5aac-9b54-4e2c-a9a0-1caa6df0bb6e"><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 STATUS wrong city2"
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/">
+(count(//nmwg:data/nmwgr:datum)=1)</path><content>true</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS wrong city2"
id="1b6c5aac-9b54-4e2c-a9a0-1caa6df0bb6e"><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="L2 STATUS wrong city2" 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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -5833,7 +5826,7 @@
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:testStep
type="request" name="Metadata - L2 STATUS wrong institution2"
id="b6267e8d-49dd-4579-9f4c-2bf348681dbb"><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 STATUS wrong institution2"
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/">
+//nmwg:message/@type</path><content>MetadataKeyResponse</content><allowWildcards>false</allowWildcards></con:configuration></con:assertion></con:request></con:config></con:testStep><con:testStep
type="request" name="L2 STATUS wrong institution2"
id="b6267e8d-49dd-4579-9f4c-2bf348681dbb"><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="L2 STATUS wrong institution2"
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/">
<soapenv:Header/>
<soapenv:Body>
<nmwg:message type="MetadataKeyRequest"
@@ -6027,7 +6020,7 @@
</nmtl2:globalName>
</nmtl2:link>
</nmwg:subject>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
</nmwg:metadata>
<nmwg:metadata id="meta2">
@@ -6041,7 +6034,6 @@
<nmwg:data id="data1" metadataIdRef="meta2"/>
</nmwg:message>
-
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="9aaf0f96-b9b5-4166-8475-761c8a132b4a"/><con:assertion type="SOAP Fault
Assertion" id="8e1fa587-121b-480e-bed6-d08eef652672"/><con:assertion
type="XPath Match"
id="192f2ab5-38ce-43fb-963c-816863ab47ed"><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/';
@@ -6122,7 +6114,7 @@
</nmtl2:globalName>
</nmtl2:link>
</nmwg:subject>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/topology/l2/3.0/link/status</nmwg:eventType>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
</nmwg:metadata>
<nmwg:metadata id="meta2">
@@ -6138,7 +6130,6 @@
</nmwg:message>
-
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="286d9cd7-8ea8-467b-b400-153cb6a7f87c"/><con:assertion type="SOAP Fault
Assertion" id="34ed4a8d-3407-4134-9a71-668eef4e1140"/><con:assertion
type="XPath Match"
id="97cf9d88-ad1f-4c22-82aa-915154f003a0"><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/';
@@ -6203,224 +6194,6 @@
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:testStep
type="request" name="SetupDataRequest without a key (topological info)"
id="430b486b-1ad2-42f9-9101-c3393c8c6553"><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 (topological
info)"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfSONAR.CARNet.hr:8080/perfSONAR-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"
- 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:subject id="subject1">
- <nmtl2:link>
-
- <nmwgtopo3:node>
- <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
- <nmwgtopo3:country>Poland</nmwgtopo3:country>
- <nmwgtopo3:city>Poznan</nmwgtopo3:city>
- <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
- </nmwgtopo3:node>
-
- <nmwgtopo3:node>
- <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:node>
-
- </nmtl2:link>
- </nmwg:subject>
- <nmwg:eventType>Path.Status</nmwg:eventType>
- </nmwg:metadata>
-
- <nmwg:metadata id="meta2">
- <select:subject id="iusub2" metadataIdRef="meta1"/>
- <select:parameters id="param1">
- <nmwg:parameter name="time">now</nmwg:parameter>
- </select:parameters>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
- </nmwg:metadata>
-
- <nmwg:data id="data1" metadataIdRef="meta2"/>
-
- </nmwg:message>
-
-
- </soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="cb0272f4-788b-4f9e-8d87-4973c0a94505"/><con:assertion type="SOAP Fault
Assertion" id="bff466c7-778c-4455-8d88-bca516a5c7d0"/><con:assertion
type="XPath Match"
id="41c2b7ec-9e9b-4134-9321-a15ee226dbe6"><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="4d2c6d2b-8fd9-42bb-9c6d-540e45ce9e01"><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 $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
-and
-(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
-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")
-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:testStep
type="request" name="SetupDataRequest without a key with time range
filtering (topological info)"
id="efd6b604-948c-4b4e-9ab1-e1756324a008"><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 with time range filtering (topological
info)"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://perfSONAR.CARNet.hr:8080/perfSONAR-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/">
- <soapenv:Header/>
- <soapenv:Body>
- <nmwg:message type="SetupDataRequest"
- 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:subject id="subject1">
- <nmtl2:link>
-
- <nmwgtopo3:node>
- <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
- <nmwgtopo3:country>Poland</nmwgtopo3:country>
- <nmwgtopo3:city>Poznan</nmwgtopo3:city>
- <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
- </nmwgtopo3:node>
-
- <nmwgtopo3:node>
- <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:node>
-
- </nmtl2:link>
- </nmwg:subject>
- <nmwg:eventType>Path.Status</nmwg:eventType>
- </nmwg:metadata>
-
- <nmwg:metadata id="meta2">
- <select:subject id="iusub2" metadataIdRef="meta1"/>
- <select:parameters id="param1">
- <nmwg:parameter name="startTime">1144318524</nmwg:parameter>
- <nmwg:parameter name="endTime">1144318527</nmwg:parameter>
- </select:parameters>
-
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
- </nmwg:metadata>
-
- <nmwg:data id="data1" metadataIdRef="meta2"/>
-
- </nmwg:message>
-
- </soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="8ac44c9e-b280-46dc-8db4-334e42e63f71"/><con:assertion type="SOAP Fault
Assertion" id="9c562c6e-3460-4552-ac40-0de46ca62ca6"/><con:assertion
type="XPath Match"
id="7502875d-4fc3-47b5-81d3-01cdb998c219"><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="34bbf4eb-6682-49e6-aca8-5f4c73010c2b"><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 $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
-and
-(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
-and
-count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
-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")
-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:testStep
type="request" name="SetupDataRequest with a key"
id="be07c6dc-9636-4f0e-888e-3b192910e995"><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 with 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/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
<soapenv:Header/>
<soapenv:Body>
@@ -6602,14 +6375,27 @@
<nmwg:message type="SetupDataRequest"
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: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:subject id="subject1">
<nmtl2:link>
- <nmtl2:globalName type="logical">
- PSNC-DFN-MUE-003
- </nmtl2:globalName>
+
+ <nmwgtopo3:node>
+ <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node>
+ <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:node>
+
</nmtl2:link>
</nmwg:subject>
<nmwg:eventType>Path.Status</nmwg:eventType>
@@ -6626,7 +6412,6 @@
<nmwg:data id="data1" metadataIdRef="meta2"/>
</nmwg:message>
-
</soapenv:Body>
</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="e8012e45-0af8-4bec-a31c-c9ad9df36ef1"/><con:assertion type="SOAP Fault
Assertion" id="98527796-6094-4c45-aeec-7225f9127965"/><con:assertion
type="XPath Match"
id="b12dccc7-765d-4ac2-8ffb-b474ca5e469d"><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/';
@@ -6787,7 +6572,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:testStep
type="request" name="SetupDataRequest without a key (topological info)2"
id="2dc591be-e373-42a2-b764-d82eedb16ef9"><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 (topological
info)2"><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:testStep
type="request" name="SetupDataRequest without a key (topological info)"
id="2dc591be-e373-42a2-b764-d82eedb16ef9"><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 (topological
info)"><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"
@@ -7180,6 +6965,209 @@
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:testStep
type="request" name="SetupDataRequest without a
key2"><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
key2"><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"
+ 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/">
+
+ <nmwg:metadata id="meta1">
+ <nmwg:subject id="subject1">
+ <nmtl2:link>
+ <nmtl2:globalName type="logical">
+ PSNC-DFN-MUE-003
+ </nmtl2:globalName>
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="meta2">
+ <select:subject id="iusub2" metadataIdRef="meta1"/>
+ <select:parameters id="param1">
+ <nmwg:parameter name="time">now</nmwg:parameter>
+ </select:parameters>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta2"/>
+
+ </nmwg:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="9aaf0f96-b9b5-4166-8475-761c8a132b4a"/><con:assertion type="SOAP Fault
Assertion" id="8e1fa587-121b-480e-bed6-d08eef652672"/><con:assertion
type="XPath Match"
id="192f2ab5-38ce-43fb-963c-816863ab47ed"><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="37886cc8-e363-4c6c-aac4-7dc4b73d8e5b"><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/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 $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
+and
+(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
+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")
+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:testStep
type="request" name="SetupDataRequest without a key with time range
filtering3"><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 with time range
filtering3"><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"
+ 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:subject id="subject1">
+ <nmtl2:link>
+
+ <nmwgtopo3:node>
+ <nmwgtopo3:name type="logical">PSNC-PL</nmwgtopo3:name>
+ <nmwgtopo3:country>Poland</nmwgtopo3:country>
+ <nmwgtopo3:city>Poznan</nmwgtopo3:city>
+ <nmwgtopo3:institution>PSNC</nmwgtopo3:institution>
+ </nmwgtopo3:node>
+
+ <nmwgtopo3:node>
+ <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:node>
+
+ </nmtl2:link>
+ </nmwg:subject>
+ <nmwg:eventType>Path.Status</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:metadata id="meta2">
+ <select:subject id="iusub2" metadataIdRef="meta1"/>
+ <select:parameters id="param1">
+ <nmwg:parameter name="startTime">1144318524</nmwg:parameter>
+ <nmwg:parameter name="endTime">1144318527</nmwg:parameter>
+ </select:parameters>
+
<nmwg:eventType>http://ggf.org/ns/nmwg/ops/select/2.0</nmwg:eventType>
+ </nmwg:metadata>
+
+ <nmwg:data id="data1" metadataIdRef="meta2"/>
+
+ </nmwg:message>
+
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP Response"
id="cf83d916-f5ef-42a7-944f-0348ef303585"/><con:assertion type="SOAP Fault
Assertion" id="beadd674-4ac9-4c39-b132-d3e9fdd7c1a6"/><con:assertion
type="XPath Match"
id="a4460f99-d931-4cac-aaa7-d8a1c2f92a51"><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="cd5d058e-aa1d-4434-b5c5-33f07838f012"><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/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 $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:name[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-Link-1001")
+and
+(every $logical in
//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmtl2:globalName[@type="logical"]
satisfies $logical="PSNC-DFN-MUE-003")
+and
+count((//nmwg:message/nmwg:metadata/nmwg:subject/nmtl2:link/nmwgtopo3:node/nmwgtopo3:role)="DemarcPoint")=1
+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")
+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="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>
@@ -12088,22 +12076,20 @@
<soapenv:Header/>
<soapenv:Body>
-<nmwg:message type="LSRegisterRequest"
- id="msg1"
+<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:nmtl2="http://ggf.org/ns/nmwg/topology/l2/3.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: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"
-
xmlns:psservice="http://ggf.org/ns/nmwg/tools/org/perfsonar/service/1.0/">
+ <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>
+
<psservice:accessPoint>http://reed.man.poznan.pl:8080/axis/services/MA
</psservice:accessPoint>
<psservice:serviceType>MA</psservice:serviceType>
<psservice:serviceDescription>
@@ -12175,7 +12161,6 @@
</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;
- perfsonar: r4340 - in trunk/functional-testing/JavaSQLMAsoapUI: General InterfaceBased L2Status, svnlog, 08/06/2008
Archive powered by MHonArc 2.6.16.