perfsonar-dev - perfsonar: r3539 - trunk/functional-testing/aa-test
Subject: perfsonar development work
List archive
- From:
- To:
- Subject: perfsonar: r3539 - trunk/functional-testing/aa-test
- Date: Wed, 19 Mar 2008 08:50:38 -0400
Author: david.schmitz
Date: 2008-03-19 08:50:38 -0400 (Wed, 19 Mar 2008)
New Revision: 3539
Modified:
trunk/functional-testing/aa-test/aa-func-test-soapui-project.xml
Log:
update for new jar AA libs, current response codes, and with echo request
Modified: trunk/functional-testing/aa-test/aa-func-test-soapui-project.xml
===================================================================
--- trunk/functional-testing/aa-test/aa-func-test-soapui-project.xml
2008-03-19 12:33:54 UTC (rev 3538)
+++ trunk/functional-testing/aa-test/aa-func-test-soapui-project.xml
2008-03-19 12:50:38 UTC (rev 3539)
@@ -251,6 +251,120 @@
</port>
</service>
+</definitions></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache></con:interface><con:interface
name="EchoRequest"
bindingName="{http://ggf.org/ns/nmwg/base/2.0/}EchoRequest" soapVersion="1_1"
definition="file:C:\Documents and Settings\IBM\My
Documents\EchosoapUI\echo-req.wsdl"><con:settings/><con:endpoints><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint></con:endpoints><con:operation
action="" name="Echo" bindingOperationName="Echo" inputName=""
isOneWay="false" receivesAttachments="false"
sendsAttachments="false"><con:settings/><con:call name="Request
1"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="?" messageIdRef="?" type="?">
+ <!--You have a CHOICE of the next 2 items at this level-->
+ <ns:metadata id="?" metadataIdRef="?">
+ <ns:eventType>?</ns:eventType>
+ </ns:metadata>
+ <ns:data id="?" metadataIdRef="?"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:wssConfig/></con:call></con:operation><con:definitionCache
rootPart="file:C:\Documents and Settings\IBM\My
Documents\EchosoapUI\echo-req.wsdl"><con:part><con:url>file:C:\Documents and
Settings\IBM\My
Documents\EchosoapUI\echo-req\EchoRequest.xsd</con:url><con:content><xs:schema
elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <xs:element name="message" type="nmwg:MessageContent"/>
+ <xs:complexType name="MessageContent">
+ <xs:choice minOccurs="0" maxOccurs="unbounded">
+ <xs:element ref="nmwg:metadata"/>
+ <xs:element ref="nmwg:data"/>
+ </xs:choice>
+ <xs:attribute name="id" type="xs:string"/>
+ <xs:attribute name="messageIdRef" type="xs:string"/>
+ <xs:attributeGroup ref="nmwg:Type"/>
+ </xs:complexType>
+ <xs:attributeGroup name="Identifier">
+ <xs:attribute name="id" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="MessageIdentifierRef">
+ <xs:attribute name="messageIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:attributeGroup name="Type">
+ <xs:attribute name="type" use="required">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration value="EchoRequest"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ </xs:attributeGroup>
+ <xs:element name="metadata">
+ <xs:complexType>
+ <xs:complexContent>
+ <xs:extension base="nmwg:EventType">
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attribute name="metadataIdRef" type="xs:string"/>
+ </xs:extension>
+ </xs:complexContent>
+ </xs:complexType>
+ </xs:element>
+ <xs:attributeGroup name="MetadataIdentifierRef">
+ <xs:attribute name="metadataIdRef" use="required" type="xs:string"/>
+ </xs:attributeGroup>
+ <xs:complexType name="EventType">
+ <xs:sequence>
+ <xs:element ref="nmwg:eventType"/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="eventType">
+ <xs:simpleType>
+ <xs:restriction base="xs:token">
+ <xs:enumeration
value="http://schemas.perfsonar.net/tools/admin/echo/2.0"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:element>
+ <xs:element name="data">
+ <xs:complexType>
+ <xs:attributeGroup ref="nmwg:Identifier"/>
+ <xs:attributeGroup ref="nmwg:MetadataIdentifierRef"/>
+ </xs:complexType>
+ </xs:element>
+</xs:schema></con:content><con:type>http://www.w3.org/2001/XMLSchema</con:type></con:part><con:part><con:url>file:C:\Documents
and Settings\IBM\My
Documents\EchosoapUI\echo-req.wsdl</con:url><con:content><definitions
name="RRD MA" targetNamespace="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:tns="http://ggf.org/ns/nmwg/base/2.0/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns="http://schemas.xmlsoap.org/wsdl/">
+
+ <types>
+ <schema elementFormDefault="qualified"
targetNamespace="http://ggf.org/ns/nmwg/base/2.0/"
xmlns="http://www.w3.org/2001/XMLSchema">
+ <include schemaLocation="echo-req/EchoRequest.xsd"/>
+ </schema>
+ </types>
+
+ <message name="EchoRequest">
+ <part name="EchoRequest" element="tns:message"/>
+ </message>
+
+ <message name="EchoResponse">
+ <part name="EchoResponse" element="tns:message"/>
+ </message>
+
+
+ <portType name="pS-Echo">
+ <operation name="Echo">
+ <input message="tns:EchoRequest"/>
+ <output message="tns:EchoResponse"/>
+ </operation>
+ </portType>
+
+ <binding name="EchoRequest" type="tns:pS-Echo">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="Echo">
+ <soap:operation style="document" soapAction=""/>
+ <input>
+ <soap:body use="literal"/>
+ </input>
+ <output>
+ <soap:body use="literal"/>
+ </output>
+ </operation>
+ </binding>
+
+ <service name="pS service">
+ <documentation>
+ SOAP Service.
+ </documentation>
+ <port name="EchoPort" binding="tns:EchoRequest">
+ <soap:address
location="http://192.168.10.86:8080/geant2_java-rrd-ma-x86_32/services/MeasurementArchiveService"/>
+ </port>
+ </service>
+
</definitions></con:content><con:type>http://schemas.xmlsoap.org/wsdl/</con:type></con:part></con:definitionCache></con:interface><con:testSuite
name="MetadataKeyBinding TestSuite"
id="3e494679-1692-4add-8d8f-201fcc1984b0"><con:settings/><con:runType>PARALLELL</con:runType><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Normal Authenticated Request/Certificate" searchProperties="true"
id="1d231643-9594-4451-a629-eb1a3da2e310"><con:settings/><con:testStep
type="groovy" name="Groovy Script
Test"><con:settings/><con:config><script>def greet = 5
log.info "Hello $context"</script></con:config></con:testStep><con:testStep
type="groovy"
name="SignRequestMessage"><con:settings/><con:config><script><![CDATA[
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
@@ -273,14 +387,17 @@
//import org.perfsonar.base.auxiliary.components.authn.DynamicCrypto;
import org.perfsonar.client.base.authn.AuthNDataFactory;
-import org.perfsonar.client.base.authn.AuthNData;
+//import org.perfsonar.client.base.authn.AuthNData;
+import org.perfsonar.client.base.authn.AuthNX509Data;
+import org.perfsonar.client.base.authn.WSSAuthNX509Data;
import org.w3c.dom.Document;
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get security token from files (java)
-AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+//AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+AuthNX509Data authnData = new WSSAuthNX509Data();
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get current request soap message (groovy)
@@ -299,8 +416,10 @@
InputStream is = new ByteArrayInputStream(request_groovy.value.getBytes());
request = builder.parse(is);
org.w3c.dom.NodeList nodeList = request.getElementsByTagName("ns:message");
+
SOAPBodyElement requestMessage = new SOAPBodyElement(nodeList.item(0));
+
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// sign soap body contents (java)
@@ -522,14 +641,17 @@
//import org.perfsonar.base.auxiliary.components.authn.DynamicCrypto;
import org.perfsonar.client.base.authn.AuthNDataFactory;
-import org.perfsonar.client.base.authn.AuthNData;
+//import org.perfsonar.client.base.authn.AuthNData;
+import org.perfsonar.client.base.authn.AuthNX509Data;
+import org.perfsonar.client.base.authn.WSSAuthNX509Data;
import org.w3c.dom.Document;
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get security token from files (java)
-AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+//AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+AuthNX509Data authnData = new WSSAuthNX509Data();
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get current request soap message (groovy)
@@ -548,8 +670,10 @@
InputStream is = new ByteArrayInputStream(request_groovy.value.getBytes());
request = builder.parse(is);
org.w3c.dom.NodeList nodeList = request.getElementsByTagName("ns:message");
+
SOAPBodyElement requestMessage = new SOAPBodyElement(nodeList.item(0));
+
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// sign soap body contents (java)
@@ -598,7 +722,9 @@
//import org.perfsonar.base.auxiliary.components.authn.DynamicCrypto;
import org.perfsonar.client.base.authn.AuthNDataFactory;
-import org.perfsonar.client.base.authn.AuthNData;
+//import org.perfsonar.client.base.authn.AuthNData;
+import org.perfsonar.client.base.authn.AuthNX509Data;
+import org.perfsonar.client.base.authn.WSSAuthNX509Data;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
@@ -719,7 +845,7 @@
//
-]]></script></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Normal Authenticated Request SAML Assertion"
searchProperties="true"><con:settings/><con:testStep type="groovy"
name="AddSAMLAssertionToRequestMessage"><con:settings/><con:config><script><![CDATA[
+]]></script></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Normal Authenticated Request SAML Assertion" searchProperties="true"
id="8c5160a5-b5c6-4d9b-8e6a-656f8c46009b"><con:settings/><con:testStep
type="groovy"
name="AddSAMLAssertionToRequestMessage"><con:settings/><con:config><script><![CDATA[
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
@@ -745,7 +871,7 @@
// get copy pasted string of SAML assertion auth template xml
DocumentBuilder builder1 = factory.newDocumentBuilder();
-String saml_assertion_auth_xml_filename="/cert/saml-auth-template.xml";
+String saml_assertion_auth_xml_filename="/cert/saml-auth-template2.xml";
FileInputStream is1 = new FileInputStream(saml_assertion_auth_xml_filename);
Document saml_assertion_auth_xml = builder1.parse(is1);
@@ -798,7 +924,9 @@
// soap message -> xml formatted string (java + some groovy)
def StringWriter outWriter = new java.io.StringWriter();
-XMLUtils.ElementToWriter(request.getDocumentElement(), outWriter);
+//XMLUtils.ElementToWriter(request.getDocumentElement(), outWriter);
+XMLUtils.ElementToWriter(saml_assertion_auth_xml.getDocumentElement(),
outWriter);
+
outWriter.close();
log.info( "soap message with SAML assertion auth='"+outWriter.toString()+"'"
)
@@ -810,148 +938,45 @@
request_groovy.setValue( outWriter.toString() )
//
-]]></script></con:config></con:testStep><con:testStep type="request"
name="CallAuthenticatedService"
id="8ee63556-9a58-4ea2-a2f6-6a2b3da55079"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataKeyBinding</con:interface><con:operation>MetadataKey</con:operation><con:request
name="CallAuthenticatedService"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://chaos169.test.atlantis.ugent.be:8080/JAVA-SSHTELNET-MP-1.2.1/services/TelnetSSH</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><wsse:Security
soapenv:actor="ac" soapenv:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
- <Assertion AssertionID="_e513e929b35f38e47f87e5f42b3dc7e0"
IssueInstant="2007-08-27T15:13:04.013Z"
Issuer="urn:geant:edugain:component:filter:jra3:BoD" MajorVersion="1"
MinorVersion="1" xmlns="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">
- <Conditions>
- <AudienceRestrictionCondition>
- <Audience>urn:geant:edugain:component:filter:jra3:BoD</Audience>
- </AudienceRestrictionCondition>
- </Conditions>
- <AuthenticationStatement
AuthenticationInstant="2007-08-27T15:13:04.012Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified">
- <Subject>
- <SubjectConfirmation>
- <ConfirmationMethod>relayed-trust</ConfirmationMethod>
- <SubjectConfirmationData>
- <Assertion AssertionID="_64de76b4e2e9167d0e0d8d9d8e8f502b"
IssueInstant="2007-08-27T14:51:46.213Z"
Issuer="urn:geant:edugain:component:be:net:geant:central" MajorVersion="1"
MinorVersion="1">
- <Conditions NotBefore="2007-08-27T14:51:46.008Z"
NotOnOrAfter="2007-08-27T14:56:46.008Z"/>
- <AuthenticationStatement
AuthenticationInstant="2007-08-27T14:51:46.008Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified">
- <Subject>
- <NameIdentifier
NameQualifier="urn:geant:edugain:component:be:net:geant:central">f30387fcc2c59875b425865184575f23d3021b04</NameIdentifier>
- </Subject>
- </AuthenticationStatement>
- <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInfo>
- <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
- <ds:Reference URI="#_64de76b4e2e9167d0e0d8d9d8e8f502b">
- <ds:Transforms>
- <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
- <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
- <ec:InclusiveNamespaces PrefixList="code ds kind
rw saml samlp typens #default xsd xsi"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- </ds:Transform>
- </ds:Transforms>
- <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
-
<ds:DigestValue>4WsHk4PakUsN1khXmNgRZeMm5XM=</ds:DigestValue>
- </ds:Reference>
- </ds:SignedInfo>
- <ds:SignatureValue>
-
B1JenJ+0StNltpcFgJ+QDyhpqL34bR0lCdHmNh1fv6gaOySupbIDj0t7K2cWO9lmIFAXmIEILjhw
-
Pq60cu8qk/EwKg4ullFTHWa2WlxQAsQaoMNSllvYbp92ZnhZ1Si4hMoO/qbuhgXfliK61IoioUfZ
- U5vUuJjo6feVke5bEp8=
- </ds:SignatureValue>
- <ds:KeyInfo>
- <ds:X509Data>
- <ds:X509Certificate>
-
MIIEJDCCAwygAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYKCZImiZPyLGQBGRMDbmV0MRUw
-
EwYKCZImiZPyLGQBGRMFZ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gQWBBT986ZwSS7PGW7gRuD7nS1H5vuwvTAfBgNVHSMEGDAWgBQGTtghG6aiIdEEuth/T18f
-
5bJH2DALBgNVHQ8EBAMCAcYwEwYDVR0lBAwwCgYIKwYBBQUHAwgwOQYDVR0fBDIwMDAuoCygKoYo
-
aHR0cDovL3d3dy5pcmlzZ3JpZC5lcy9wa2kvY3JsL2NhY3JsLnBlbTAaBgNVHSAEEzARMA8GDSsG
-
AQQBunsCAgQBAQEwDQYJKoZIhvcNAQEFBQADggEBAFNEoS8vMb4JCJb0uWe2a7hTELIM4EkmWnR1
-
6HEpf/Q79nnJzzm9KvooTYSfVVdRnIErH3vGE+ASSlwNT8Zg8eDs8t7B2cdfkGzhJrfV/x+oaQ08
-
wUirfQYjjaUhIzr0YIzH2Lw9/DEWQ/1DjPCZNt9K0BxcGJ7VJwgkkT/sJWoao25cwmtRF8k7CsaC
-
1ldUG9REvVrk/vvNonmSdVQgCkj+bpNg2IJvT3rZAFcPpDj2MruA8nqcqn97QMwrWLWvAE6ZrPTR
-
i3I7gR7Ch0rSRVT3vHzvGIMv5Ay+YF8B+NzzGjJ6JaztPcY6OGwTVGHD3I/RcktRxfCBsywDoefY
- laU=
- </ds:X509Certificate>
- </ds:X509Data>
- </ds:KeyInfo>
- </ds:Signature>
- </Assertion>
- </SubjectConfirmationData>
- </SubjectConfirmation>
- </Subject>
- </AuthenticationStatement>
- <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInfo>
- <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
- <ds:Reference URI="#_e513e929b35f38e47f87e5f42b3dc7e0">
- <ds:Transforms>
- <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
- <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
- <ec:InclusiveNamespaces PrefixList="code ds kind rw saml
samlp typens #default xsd xsi"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- </ds:Transform>
- </ds:Transforms>
- <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
- <ds:DigestValue>XqKJ3abh2jeQBPK/nAFYLk0UslQ=</ds:DigestValue>
- </ds:Reference>
- </ds:SignedInfo>
- <ds:SignatureValue>
-
DSpdXmniDZyMFfhWUiDQh9Wz7WHakgqS245GNpB5R7aXxisTVjApw3nGWWoPq2cpL2XG1MblwAUu
-
uw6MYdh5SYF5KZTw9ezdEg/pbb16udbqbpTooA8XmZX5jB2HObrNR2Fvu0tx///L0vuaixz2P5+F
-
WZUeiVNn0/Nu0iSjK37g68DqRECkYC99LLvXVO9ixQBcaIUvaE6Nu2TNK6hmLmyd6rhVqttVgxQP
-
2bNe1riz+sHoQfgug9nayHNyaZa+O7Zha8W9qh8LOf9Vp5SNu3cg+z5ijkxQBr4OxXL/2Obgx07e
- gl569NF0N+FURehgct9Su7gHYu8Wo/lyu7LB1A==
- </ds:SignatureValue>
- <ds:KeyInfo>
- <ds:X509Data>
- <ds:X509Certificate>
-
MIIElDCCA3ygAwIBAgIBQzANBgkqhkiG9w0BAQUFADBBMRMwEQYKCZImiZPyLGQBGRMDbmV0MRUw
-
EwYKCZImiZPyLGQBGRMFZ2VhbnQxEzARBgNVBAMTCmVkdUdBSU5TQ0EwHhcNMDcwNTI4MDgxNjE2
-
WhcNMDgwNTI3MDgxNjE2WjBbMRMwEQYKCZImiZPyLGQBGRYDbmV0MRUwEwYKCZImiZPyLGQBGRYF
-
Z2VhbnQxEDAOBgNVBAoTB0ZlZElSSVMxGzAZBgNVBAMTEnRlc3QtYXMucmVkaXJpcy5lczCCASIw
-
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANQxCW2uup3EDvVgWlpOluEAZ9g/gfp6iwaypIrg
-
p/uk3J3LNT4iAfBg4KscZT4KnY97wHzCRoU2Uqgr3Lg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5
-
JK5IKrRfXINlutqZgfUGXvyaxNh7Zgl3MpDaw8U5khl5ZSjcyfsBro2qQVMAJCcph1rwKNjgX8Mk
- Tb4GYbUpcnVP7p089kz9OTOLteEzVTIi3VKKiykPWcUYlgwY
- </ds:X509Certificate>
- </ds:X509Data>
- </ds:KeyInfo>
- </ds:Signature>
- </Assertion>
- </wsse:Security></soapenv:Header><soapenv:Body><ns:message id="msg1"
type="MetadataKeyRequest" xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+]]></script></con:config></con:testStep><con:testStep type="request"
name="CallAuthenticatedService"
id="8ee63556-9a58-4ea2-a2f6-6a2b3da55079"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>MetadataKeyBinding</con:interface><con:operation>MetadataKey</con:operation><con:request
name="CallAuthenticatedService"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://chaos169.test.atlantis.ugent.be:8080/JAVA-SSHTELNET-MP-1.2.1/services/TelnetSSH</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><wsse:Security
soapenv:actor="we" soapenv:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsse:BinarySecurityToken
EncodingType="http://docs.oasis-open.org/ws
s/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"
wsu:Id="CertId-15005985"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">MIIEhTCCA22gAwIBAgIBZDANBgkqhkiG9w0BAQUFADBBMRMwEQYKCZImiZPyLGQBGRMDbmV0MR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NybC5kZXIwFwYDVR0gBBAwDjAMBgorBgEEAbp7AgACMA0GCSqGSIb3DQEBBQUAA4IBAQCAWhhZGb+LqDIa4EocxyzfHiLXey2MZuE7N+U4zSn9KUHOoGR91Y3pieHJ9I9EdOJZGMc+xJDcGenLxo03p1wA/2t1/iv53WW0iEszEoQAyZWqBiNFHjFNp9VpcciuiIXaiDRV1n4KzlUMzTR2IRnW9mZ+VjoHEW7m3z0JIdJM82s7rBtqVQ1/DmKuqsEparHx0FL4kIZ/pa/NHLXz7gblaHvx9L2wQV2GezSPFT20CThoWc8EQ6/V5NHJ3VmfscJNOFpiyChpFiwq1+k6eKbNfN8faAUg82UBOFvTG2UOADoTAS2NfFTlAIA3PJKacBNuL6pGQH+XBv0tL4R9L1KM</wsse:BinarySecurityToken><ds:Signature
Id="Signature-30877675" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+<ds:SignedInfo>
+<ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
+<ds:Reference URI="#STRId-4626502">
+<ds:Transforms>
+<ds:Transform
Algorithm="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#STR-Transform">
+<wsse:TransformationParameters><ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/></wsse:TransformationParameters>
+</ds:Transform>
+</ds:Transforms>
+<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
+<ds:DigestValue>DFEHz/yFjGyTvbjLmY99YNWvJWA=</ds:DigestValue>
+</ds:Reference>
+<ds:Reference URI="#Timestamp-22496335">
+<ds:Transforms>
+<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+</ds:Transforms>
+<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
+<ds:DigestValue>22mFKibG79xNfeVFYbNk8YQbwCU=</ds:DigestValue>
+</ds:Reference>
+<ds:Reference URI="#SAML">
+<ds:Transforms>
+<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+</ds:Transforms>
+<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
+<ds:DigestValue>iZRukGAgqZDermeYZwL0IzaiVMk=</ds:DigestValue>
+</ds:Reference>
+</ds:SignedInfo>
+<ds:SignatureValue>
+o+HsItEdtZLeDvyKKiNOWgLLwB9rsYcdmkiyQfccyqaV/Eo5869CBu8ffEPMz45ZuD6wQrcuWFou
+YWt6LUZtQdK/24whpuZH3OMj77vx4SXPNmJbQlYULXI0yJR81VQlsaioruo03/yj+fhsiKOjuxuF
+4TOK1Z0ccheeskazI1ooRRQ6/fZurSE+m7IeSgGRr7c29id5OOfoVar5sZYD1kksOtrsURy1jW0x
+Mom/vH2nq7zm8sZSLyGyoxOkQ/axuOK6BK8s/aHvzlFhwFBEy5MUb/AlpTVquZZURjCerxAdtkWj
+Zq9eYNUOVlroehjLqvVfwhP8ltLdgXrGI40bRg==
+</ds:SignatureValue>
+<ds:KeyInfo Id="KeyId-8253623">
+<wsse:SecurityTokenReference wsu:Id="STRId-4626502"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:Reference
URI="#CertId-15005985"
ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/></wsse:SecurityTokenReference>
+</ds:KeyInfo>
+</ds:Signature><wsse:BinarySecurityToken
EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary"
ValueType="#SAMLBase64Binary" wsu:Id="SAML"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">PEFzc2VydGlvbiB4bWxucz0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6MS4wOmFzc2VydG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0puTDNKbGMyOXNkbVZ5UDNWeWJqMTFjbTRsTTBGblpXRnVkQ1V6UVdWa2RXZGhhVzRsTTBGamIyMXdiMjVsYm5RbApNMEZsWlNVelFXWmxaR2x5YVhNbE0wRXhOV05rTjJGaVlTMDNOalJoTFRFeFpHTXRPRE14TkMwd09EQXdNakF3WXpsaE5qWXdRQVlEClZSMGZCRGt3TnpBMW9ET2dNWVl2YUhSMGNEb3ZMM2QzZHk1eVpXUnBjbWx6TG1WekwzQnJhUzlsWkhWbllXbHVMMk55YkM5allXTnkKYkM1a1pYSXdGd1
lEVlIwZ0JCQXdEakFNQmdvckJnRUVBYnA3QWdBQ01BMEdDU3FHU0liM0RRRUJCUVVBQTRJQkFRQ0FXaGhaR2IrTApxRElhNEVvY3h5emZIaUxYZXkyTVp1RTdOK1U0elNuOUtVSE9vR1I5MVkzcGllSEo5STlFZE9KWkdNYyt4SkRjR2VuTHhvMDNwMXdBCi8ydDEvaXY1M1dXMGlFc3pFb1FBeVpXcUJpTkZIakZOcDlWcGNjaXVpSVhhaURSVjFuNEt6bFVNelRSMklSblc5bVorVmpvSEVXN20KM3owSklkSk04MnM3ckJ0cVZRMS9EbUt1cXNFcGFySHgwRkw0a0laL3BhL05ITFh6N2dibGFIdng5TDJ3UVYyR2V6U1BGVDIwQ1RobwpXYzhFUTYvVjVOSEozVm1mc2NKTk9GcGl5Q2hwRml3cTErazZlS2JOZk44ZmFBVWc4MlVCT0Z2VEcyVU9BRG9UQVMyTmZGVGxBSUEzClBKS2FjQk51TDZwR1FIK1hCdjB0TDRSOUwxS00KPC9kczpYNTA5Q2VydGlmaWNhdGU+CjwvZHM6WDUwOURhdGE+CjwvZHM6S2V5SW5mbz48L2RzOlNpZ25hdHVyZT48L0Fzc2VydGlvbj4=</wsse:BinarySecurityToken><wsu:Timestamp
wsu:Id="Timestamp-22496335"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Created>2008-03-18T13:42:12.904Z</wsu:Created><wsu:Expires>2008-03-28T23:42:12.904Z</wsu:Expires></wsu:Timestamp></wsse:Security></soapenv:Header><soapenv:Body><ns:message
id="m
sg1" type="MetadataKeyRequest" xmlns:ns="http://ggf.org/ns/n!
mwg/base
/2.0/">
<ns:metadata id="md1">
<ns:subject id="subj1">
<ns:parameters id="param_list1">
@@ -1137,14 +1162,17 @@
//import org.perfsonar.base.auxiliary.components.authn.DynamicCrypto;
import org.perfsonar.client.base.authn.AuthNDataFactory;
-import org.perfsonar.client.base.authn.AuthNData;
+//import org.perfsonar.client.base.authn.AuthNData;
+import org.perfsonar.client.base.authn.AuthNX509Data;
+import org.perfsonar.client.base.authn.WSSAuthNX509Data;
import org.w3c.dom.Document;
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get security token from files (java)
-AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+//AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+AuthNX509Data authnData = new WSSAuthNX509Data();
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get current request soap message (groovy)
@@ -1192,7 +1220,7 @@
//
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-]]></script></con:config></con:testStep><con:testStep type="request"
name="AuthNEE"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><nmwg:message
id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+]]></script></con:config></con:testStep><con:testStep type="delay"
name="DelayBecauseOfTimestampProblem"><con:settings/><con:config><delay>1000</delay></con:config></con:testStep><con:testStep
type="request" name="AuthNEE"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><nmwg:message
id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
<nmwg:metadata id="authNMetadata">
<nmwg:parameters id="keys">
<nmwg:parameter
name="SecurityToken">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</nmwg:parameter>
@@ -1289,14 +1317,17 @@
//import org.perfsonar.base.auxiliary.components.authn.DynamicCrypto;
import org.perfsonar.client.base.authn.AuthNDataFactory;
-import org.perfsonar.client.base.authn.AuthNData;
+//import org.perfsonar.client.base.authn.AuthNData;
+import org.perfsonar.client.base.authn.AuthNX509Data;
+import org.perfsonar.client.base.authn.WSSAuthNX509Data;
import org.w3c.dom.Document;
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get security token from files (java)
-AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+//AuthNData authnData = AuthNDataFactory.getDefaultAuthNData();
+AuthNX509Data authnData = new WSSAuthNX509Data();
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
// get current request soap message (groovy)
@@ -1365,8 +1396,11 @@
//import org.perfsonar.base.auxiliary.components.authn.DynamicCrypto;
import org.perfsonar.client.base.authn.AuthNDataFactory;
-import org.perfsonar.client.base.authn.AuthNData;
+//import org.perfsonar.client.base.authn.AuthNData
+import org.perfsonar.client.base.authn.AuthNX509Data;
+import org.perfsonar.client.base.authn.WSSAuthNX509Data;
+
import org.w3c.dom.Document;
import org.w3c.dom.Node;
@@ -1408,7 +1442,7 @@
//
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-]]></script></con:config></con:testStep><con:testStep type="request"
name="AuthNEE"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><nmwg:message
id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+]]></script></con:config></con:testStep><con:testStep type="delay"
name="DelayBecauseOfTimestampProblem"><con:settings/><con:config><delay>1000</delay></con:config></con:testStep><con:testStep
type="request" name="AuthNEE"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><nmwg:message
id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
<nmwg:metadata id="authNMetadata">
<nmwg:parameters id="keys">
<nmwg:parameter
name="SecurityToken">http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3</nmwg:parameter>
@@ -1425,7 +1459,7 @@
return <id>{data($z)}</id>
}
</items></path><content><items>
-<id>error.authn.getting_sec_token</id>
+<id>unknown</id>
</items></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="groovy"
name="UnsignRequestMessage"><con:settings/><con:config><script><![CDATA[
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
@@ -1563,7 +1597,10 @@
// soap message -> xml formatted string (java + some groovy)
def StringWriter outWriter = new java.io.StringWriter();
-XMLUtils.ElementToWriter(request.getDocumentElement(), outWriter);
+//XMLUtils.ElementToWriter(request.getDocumentElement(), outWriter);
+XMLUtils.ElementToWriter(saml_assertion_auth_xml.getDocumentElement(),
outWriter);
+
+
outWriter.close();
log.info( "soap message with SAML assertion auth='"+outWriter.toString()+"'"
)
@@ -1575,161 +1612,14 @@
request_groovy.setValue( outWriter.toString() )
//
-]]></script></con:config></con:testStep><con:testStep type="request"
name="AuthNEE"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <soapenv:Header>
- <wsse:Security soapenv:actor="ac" soapenv:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
- <Assertion AssertionID="_e513e929b35f38e47f87e5f42b3dc7e0"
IssueInstant="2007-08-27T15:13:04.013Z"
Issuer="urn:geant:edugain:component:filter:jra3:BoD" MajorVersion="1"
MinorVersion="1" xmlns="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">
- <Conditions>
- <AudienceRestrictionCondition>
- <Audience>urn:geant:edugain:component:filter:jra3:BoD</Audience>
- </AudienceRestrictionCondition>
- </Conditions>
- <AuthenticationStatement
AuthenticationInstant="2007-08-27T15:13:04.012Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified">
- <Subject>
- <SubjectConfirmation>
- <ConfirmationMethod>relayed-trust</ConfirmationMethod>
- <SubjectConfirmationData>
- <Assertion AssertionID="_64de76b4e2e9167d0e0d8d9d8e8f502b"
IssueInstant="2007-08-27T14:51:46.213Z"
Issuer="urn:geant:edugain:component:be:net:geant:central" MajorVersion="1"
MinorVersion="1">
- <Conditions NotBefore="2007-08-27T14:51:46.008Z"
NotOnOrAfter="2007-08-27T14:56:46.008Z"/>
- <AuthenticationStatement
AuthenticationInstant="2007-08-27T14:51:46.008Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified">
- <Subject>
- <NameIdentifier
NameQualifier="urn:geant:edugain:component:be:net:geant:central">f30387fcc2c59875b425865184575f23d3021b04</NameIdentifier>
- </Subject>
- </AuthenticationStatement>
- <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInfo>
- <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
- <ds:Reference URI="#_64de76b4e2e9167d0e0d8d9d8e8f502b">
- <ds:Transforms>
- <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
- <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
- <ec:InclusiveNamespaces PrefixList="code ds kind
rw saml samlp typens #default xsd xsi"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- </ds:Transform>
- </ds:Transforms>
- <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
-
<ds:DigestValue>4WsHk4PakUsN1khXmNgRZeMm5XM=</ds:DigestValue>
- </ds:Reference>
- </ds:SignedInfo>
- <ds:SignatureValue>
-
B1JenJ+0StNltpcFgJ+QDyhpqL34bR0lCdHmNh1fv6gaOySupbIDj0t7K2cWO9lmIFAXmIEILjhw
-
Pq60cu8qk/EwKg4ullFTHWa2WlxQAsQaoMNSllvYbp92ZnhZ1Si4hMoO/qbuhgXfliK61IoioUfZ
- U5vUuJjo6feVke5bEp8=
- </ds:SignatureValue>
- <ds:KeyInfo>
- <ds:X509Data>
- <ds:X509Certificate>
-
MIIEJDCCAwygAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYKCZImiZPyLGQBGRMDbmV0MRUw
-
EwYKCZImiZPyLGQBGRMFZ2VhbnQxEzARBgNVBAMTCmVkdUdBSU5TQ0EwHhcNMDYwNTAyMTEzNzEw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aiIdEEuth/T18f
-
5bJH2DALBgNVHQ8EBAMCAcYwEwYDVR0lBAwwCgYIKwYBBQUHAwgwOQYDVR0fBDIwMDAuoCygKoYo
-
aHR0cDovL3d3dy5pcmlzZ3JpZC5lcy9wa2kvY3JsL2NhY3JsLnBlbTAaBgNVHSAEEzARMA8GDSsG
-
AQQBunsCAgQBAQEwDQYJKoZIhvcNAQEFBQADggEBAFNEoS8vMb4JCJb0uWe2a7hTELIM4EkmWnR1
-
6HEpf/Q79nnJzzm9KvooTYSfVVdRnIErH3vGE+ASSlwNT8Zg8eDs8t7B2cdfkGzhJrfV/x+oaQ08
-
wUirfQYjjaUhIzr0YIzH2Lw9/DEWQ/1DjPCZNt9K0BxcGJ7VJwgkkT/sJWoao25cwmtRF8k7CsaC
-
1ldUG9REvVrk/vvNonmSdVQgCkj+bpNg2IJvT3rZAFcPpDj2MruA8nqcqn97QMwrWLWvAE6ZrPTR
-
i3I7gR7Ch0rSRVT3vHzvGIMv5Ay+YF8B+NzzGjJ6JaztPcY6OGwTVGHD3I/RcktRxfCBsywDoefY
- laU=
- </ds:X509Certificate>
- </ds:X509Data>
- </ds:KeyInfo>
- </ds:Signature>
- </Assertion>
- </SubjectConfirmationData>
- </SubjectConfirmation>
- </Subject>
- </AuthenticationStatement>
- <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInfo>
- <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
- <ds:Reference URI="#_e513e929b35f38e47f87e5f42b3dc7e0">
- <ds:Transforms>
- <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
- <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
- <ec:InclusiveNamespaces PrefixList="code ds kind rw saml
samlp typens #default xsd xsi"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- </ds:Transform>
- </ds:Transforms>
- <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
- <ds:DigestValue>XqKJ3abh2jeQBPK/nAFYLk0UslQ=</ds:DigestValue>
- </ds:Reference>
- </ds:SignedInfo>
- <ds:SignatureValue>
-
DSpdXmniDZyMFfhWUiDQh9Wz7WHakgqS245GNpB5R7aXxisTVjApw3nGWWoPq2cpL2XG1MblwAUu
-
uw6MYdh5SYF5KZTw9ezdEg/pbb16udbqbpTooA8XmZX5jB2HObrNR2Fvu0tx///L0vuaixz2P5+F
-
WZUeiVNn0/Nu0iSjK37g68DqRECkYC99LLvXVO9ixQBcaIUvaE6Nu2TNK6hmLmyd6rhVqttVgxQP
-
2bNe1riz+sHoQfgug9nayHNyaZa+O7Zha8W9qh8LOf9Vp5SNu3cg+z5ijkxQBr4OxXL/2Obgx07e
- gl569NF0N+FURehgct9Su7gHYu8Wo/lyu7LB1A==
- </ds:SignatureValue>
- <ds:KeyInfo>
- <ds:X509Data>
- <ds:X509Certificate>
-
MIIElDCCA3ygAwIBAgIBQzANBgkqhkiG9w0BAQUFADBBMRMwEQYKCZImiZPyLGQBGRMDbmV0MRUw
-
EwYKCZImiZPyLGQBGRMFZ2VhbnQxEzARBgNVBAMTCmVkdUdBSU5TQ0EwHhcNMDcwNTI4MDgxNjE2
-
WhcNMDgwNTI3MDgxNjE2WjBbMRMwEQYKCZImiZPyLGQBGRYDbmV0MRUwEwYKCZImiZPyLGQBGRYF
-
Z2VhbnQxEDAOBgNVBAoTB0ZlZElSSVMxGzAZBgNVBAMTEnRlc3QtYXMucmVkaXJpcy5lczCCASIw
-
DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBANQxCW2uup3EDvVgWlpOluEAZ9g/gfp6iwaypIrg
-
p/uk3J3LNT4iAfBg4KscZT4KnY97wHzCRoU2Uqgr3Lgm14RXZgbIl1pDf0XZa9uHVx0A+Q+hnFhN
-
evCbM7Bcw5gBwBEXKRm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ro2qQVMAJCcph1rwKNjgX8Mk
- Tb4GYbUpcnVP7p089kz9OTOLteEzVTIi3VKKiykPWcUYlgwY
- </ds:X509Certificate>
- </ds:X509Data>
- </ds:KeyInfo>
- </ds:Signature>
- </Assertion>
- </wsse:Security></soapenv:Header>
- <soapenv:Body>
- <nmwg:message id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
- <nmwg:metadata id="authNMetadata">
- <nmwg:parameters id="keys">
- <nmwg:parameter
name="SecurityToken">http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</nmwg:parameter>
- </nmwg:parameters>
- </nmwg:metadata>
- <nmwg:data id="authN1" metadataIdRef="authNMetadata"/>
- </nmwg:message>
- </soapenv:Body>
-</soapenv:Envelope>]]></con:request><con:assertion type="Schema Compliance"
disabled="true"><con:configuration><definition/></con:configuration></con:assertion><con:assertion
type="XQuery Match"><con:configuration><path>declare namespace
soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+]]></script></con:config></con:testStep><con:testStep type="delay"
name="DelayBecauseOfTimestampProblem"><con:settings/><con:config><delay>1000</delay></con:config></con:testStep><con:testStep
type="request" name="AuthNEE"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><nmwg:message
id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+ <nmwg:metadata id="authNMetadata">
+ <nmwg:parameters id="keys">
+ <nmwg:parameter
name="SecurityToken">http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</nmwg:parameter>
+ </nmwg:parameters>
+ </nmwg:metadata>
+ <nmwg:data id="authN1" metadataIdRef="authNMetadata"/>
+
</nmwg:message></soapenv:Body></soapenv:Envelope>]]></con:request><con:assertion
type="Schema Compliance"
disabled="true"><con:configuration><definition/></con:configuration></con:assertion><con:assertion
type="XQuery Match"><con:configuration><path>declare namespace
soapenv='http://schemas.xmlsoap.org/soap/envelope/';
declare namespace nmwg='http://ggf.org/ns/nmwg/base/2.0/';
<items>
@@ -1877,7 +1767,9 @@
// soap message -> xml formatted string (java + some groovy)
def StringWriter outWriter = new java.io.StringWriter();
-XMLUtils.ElementToWriter(request.getDocumentElement(), outWriter);
+//XMLUtils.ElementToWriter(request.getDocumentElement(), outWriter);
+XMLUtils.ElementToWriter(saml_assertion_auth_xml.getDocumentElement(),
outWriter);
+
outWriter.close();
log.info( "soap message with SAML assertion auth='"+outWriter.toString()+"'"
)
@@ -1915,8 +1807,11 @@
//import org.perfsonar.base.auxiliary.components.authn.DynamicCrypto;
import org.perfsonar.client.base.authn.AuthNDataFactory;
-import org.perfsonar.client.base.authn.AuthNData;
+//import org.perfsonar.client.base.authn.AuthNData;
+import org.perfsonar.client.base.authn.AuthNX509Data;
+import org.perfsonar.client.base.authn.WSSAuthNX509Data;
+
import org.w3c.dom.Document;
import org.w3c.dom.Node;
@@ -1958,148 +1853,7 @@
//
//
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-]]></script></con:config></con:testStep><con:testStep type="request"
name="AuthNEE"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header><wsse:Security
soapenv:actor="ac" soapenv:mustUnderstand="1"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
- <Assertion AssertionID="_e513e929b35f38e47f87e5f42b3dc7e0"
IssueInstant="2007-08-27T15:13:04.013Z"
Issuer="urn:geant:edugain:component:filter:jra3:BoD" MajorVersion="1"
MinorVersion="1" xmlns="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion"
xmlns:samlp="urn:oasis:names:tc:SAML:1.0:protocol">
- <Conditions>
- <AudienceRestrictionCondition>
- <Audience>urn:geant:edugain:component:filter:jra3:BoD</Audience>
- </AudienceRestrictionCondition>
- </Conditions>
- <AuthenticationStatement
AuthenticationInstant="2007-08-27T15:13:04.012Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified">
- <Subject>
- <SubjectConfirmation>
- <ConfirmationMethod>relayed-trust</ConfirmationMethod>
- <SubjectConfirmationData>
- <Assertion AssertionID="_64de76b4e2e9167d0e0d8d9d8e8f502b"
IssueInstant="2007-08-27T14:51:46.213Z"
Issuer="urn:geant:edugain:component:be:net:geant:central" MajorVersion="1"
MinorVersion="1">
- <Conditions NotBefore="2007-08-27T14:51:46.008Z"
NotOnOrAfter="2007-08-27T14:56:46.008Z"/>
- <AuthenticationStatement
AuthenticationInstant="2007-08-27T14:51:46.008Z"
AuthenticationMethod="urn:oasis:names:tc:SAML:1.0:am:unspecified">
- <Subject>
- <NameIdentifier
NameQualifier="urn:geant:edugain:component:be:net:geant:central">f30387fcc2c59875b425865184575f23d3021b04</NameIdentifier>
- </Subject>
- </AuthenticationStatement>
- <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInfo>
- <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
- <ds:Reference URI="#_64de76b4e2e9167d0e0d8d9d8e8f502b">
- <ds:Transforms>
- <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
- <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
- <ec:InclusiveNamespaces PrefixList="code ds kind
rw saml samlp typens #default xsd xsi"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- </ds:Transform>
- </ds:Transforms>
- <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
-
<ds:DigestValue>4WsHk4PakUsN1khXmNgRZeMm5XM=</ds:DigestValue>
- </ds:Reference>
- </ds:SignedInfo>
- <ds:SignatureValue>
-
B1JenJ+0StNltpcFgJ+QDyhpqL34bR0lCdHmNh1fv6gaOySupbIDj0t7K2cWO9lmIFAXmIEILjhw
-
Pq60cu8qk/EwKg4ullFTHWa2WlxQAsQaoMNSllvYbp92ZnhZ1Si4hMoO/qbuhgXfliK61IoioUfZ
- U5vUuJjo6feVke5bEp8=
- </ds:SignatureValue>
- <ds:KeyInfo>
- <ds:X509Data>
- <ds:X509Certificate>
-
MIIEJDCCAwygAwIBAgIBADANBgkqhkiG9w0BAQUFADBBMRMwEQYKCZImiZPyLGQBGRMDbmV0MRUw
-
EwYKCZImiZPyLGQBGRMFZ2VhbnQxEzARBgNVBAMTCmVkdUdBSU5TQ0EwHhcNMDYwNTAyMTEzNzEw
-
WhcNMDcwNTAyMTEzNzEwWjBbMRMwEQYKCZImiZPyLGQBGRMDbmV0MRUwEwYKCZImiZPyLGQBGRMF
-
Z2VhbnQxEDAOBgNVBAoTB0ZlZElS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mlzZ3JpZC5lcy9wa2kvY3JsL2NhY3JsLnBlbTAaBgNVHSAEEzARMA8GDSsG
-
AQQBunsCAgQBAQEwDQYJKoZIhvcNAQEFBQADggEBAFNEoS8vMb4JCJb0uWe2a7hTELIM4EkmWnR1
-
6HEpf/Q79nnJzzm9KvooTYSfVVdRnIErH3vGE+ASSlwNT8Zg8eDs8t7B2cdfkGzhJrfV/x+oaQ08
-
wUirfQYjjaUhIzr0YIzH2Lw9/DEWQ/1DjPCZNt9K0BxcGJ7VJwgkkT/sJWoao25cwmtRF8k7CsaC
-
1ldUG9REvVrk/vvNonmSdVQgCkj+bpNg2IJvT3rZAFcPpDj2MruA8nqcqn97QMwrWLWvAE6ZrPTR
-
i3I7gR7Ch0rSRVT3vHzvGIMv5Ay+YF8B+NzzGjJ6JaztPcY6OGwTVGHD3I/RcktRxfCBsywDoefY
- laU=
- </ds:X509Certificate>
- </ds:X509Data>
- </ds:KeyInfo>
- </ds:Signature>
- </Assertion>
- </SubjectConfirmationData>
- </SubjectConfirmation>
- </Subject>
- </AuthenticationStatement>
- <ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
- <ds:SignedInfo>
- <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
- <ds:Reference URI="#_e513e929b35f38e47f87e5f42b3dc7e0">
- <ds:Transforms>
- <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
- <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#">
- <ec:InclusiveNamespaces PrefixList="code ds kind rw saml
samlp typens #default xsd xsi"
xmlns:ec="http://www.w3.org/2001/10/xml-exc-c14n#"/>
- </ds:Transform>
- </ds:Transforms>
- <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
- <ds:DigestValue>XqKJ3abh2jeQBPK/nAFYLk0Usl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</ds:Signature>
- </Assertion>
- </wsse:Security></soapenv:Header><soapenv:Body><nmwg:message
id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
+]]></script></con:config></con:testStep><con:testStep type="delay"
name="DelayBecauseOfTimestampProblem"><con:settings/><con:config><delay>1000</delay></con:config></con:testStep><con:testStep
type="request" name="AuthNEE"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>AuthNEEBinding</con:interface><con:operation>AuthNEE</con:operation><con:request
name="AuthNEE"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Header/><soapenv:Body><nmwg:message
id="authNMessage1" type="AuthNEERequest"
xmlns:nmwg="http://ggf.org/ns/nmwg/base/2.0/">
<nmwg:metadata id="authNMetadata">
<nmwg:parameters id="keys">
<nmwg:parameter
name="SecurityToken">http://docs.oasis-open.org/wss/oasis-wss-saml-token-profile-1.1#SAMLV1.1</nmwg:parameter>
@@ -2116,7 +1870,7 @@
return <id>{data($z)}</id>
}
</items></path><content><items>
-<id>error.authn.getting_sec_token</id>
+<id>unknown</id>
</items></content><allowWildcards>false</allowWildcards></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="groovy"
name="UnsignRequestMessage"><con:settings/><con:config><script><![CDATA[
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.DocumentBuilder;
@@ -2175,6 +1929,438 @@
//
-]]></script></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:beforeSaveScript>
+]]></script></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:testSuite
name="EchoRequest for
AS"><con:settings/><con:runType>SEQUENTIAL</con:runType><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Valid and well formed requests" searchProperties="true"
id="a193e98c-b28d-4ead-9a22-2f450e0e081c"><con:settings/><con:testStep
type="request" name="Echo"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest">
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="success.echo")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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());
+
+log.info("bla2");
+
+def factory = SchemaFactory.newInstance(XMLConstants.RELAXNG_NS_URI);
+
+log.info("bla3");
+
+
+def schema = factory.newSchema(new File("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:testCase
failOnError="true" failTestCaseOnErrors="true" keepSession="false"
name="Malformed Requests" searchProperties="true"
id="c2f56086-3435-4aa2-afc3-e18c98fa650b"><con:settings/><con:testStep
type="request" name="Echo No type attribute in message
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo No type attribute in message
element"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" >
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo empty type attribute in message
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo empty type attribute in message
element"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="" >
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name=" Echo wrong type attribute in message
element"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name=" Echo wrong type attribute in message
element"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="Request" >
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo no metadata"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo no
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest" >
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="warning.common.no_metadata")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo no data"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo no
data"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest" >
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="warning.common.no_metadata")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo no id in metadata"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo no id in
metadata"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest" >
+ <ns:metadata metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="warning.common.no_metadata")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo no eventType element"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo no eventType
element"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest" >
+ <ns:metadata id="meta1" metadataIdRef="">
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.request")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo wrong eventType"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo wrong
eventType"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest" >
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/noecho/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.action_not_supported")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo metadata id does not match data
metadataIdRef"><con:settings/><con:config xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo metadata id does not match data
metadataIdRef"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/nmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest" >
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="nometa1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="warning.common.no_metadata")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:testStep
type="request" name="Echo wrong nmwg namespace"><con:settings/><con:config
xsi:type="con:RequestStep"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><con:interface>EchoRequest</con:interface><con:operation>Echo</con:operation><con:request
name="Echo wrong nmwg
namespace"><con:settings/><con:encoding>UTF-8</con:encoding><con:endpoint>http://homer.rediris.es:8080/perfSONAR-AS/services/AuthService</con:endpoint><con:request><![CDATA[<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns="http://ggf.org/ns/wrongnmwg/base/2.0/">
+ <soapenv:Header/>
+ <soapenv:Body>
+ <ns:message id="msg1" messageIdRef="id1" type="EchoRequest" >
+ <ns:metadata id="meta1" metadataIdRef="">
+
<ns:eventType>http://schemas.perfsonar.net/tools/admin/echo/2.0</ns:eventType>
+ </ns:metadata>
+ <ns:data id="data1" metadataIdRef="meta1"/>
+ </ns:message>
+ </soapenv:Body>
+</soapenv:Envelope>]]></con:request><con:assertion type="SOAP
Response"/><con:assertion type="SOAP Fault Assertion"/><con:assertion
type="XPath Match"><con:configuration><path>declare namespace
nmwg='http://ggf.org/ns/nmwg/base/2.0/';
+declare namespace soapenv='http://schemas.xmlsoap.org/soap/envelope/';
+declare namespace nmwgr='http://ggf.org/ns/nmwg/result/2.0/';
+declare namespace fn="http://www.w3.org/2005/xpath-functions";
+
+(count(//nmwg:metadata)=count(//nmwg:data))
+and
+(fn:string(//nmwg:metadata/nmwg:eventType)="error.common.parse_error")
+and
+(count(//nmwg:data/nmwgr:datum)=1)</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.*;
+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("/cert/EchoResponse.rng"));
+def validator = schema.newValidator();
+def node = holder.getDomNode("//nmwg:message")
+validator.validate(new DOMSource(node));
+</scriptText></con:configuration></con:assertion><con:wssConfig/></con:request></con:config></con:testStep><con:properties/></con:testCase><con:properties/></con:testSuite><con:properties/><con:beforeSaveScript>
+
</con:beforeSaveScript></con:soapui-project>
\ No newline at end of file
- perfsonar: r3539 - trunk/functional-testing/aa-test, svnlog, 03/19/2008
Archive powered by MHonArc 2.6.16.