committng patch given by Shabaz for https://issues.apache.org/jira/browse/AIRAVATA...
authorLahiru Gunathilake <lahiru@apache.org>
Mon, 21 Jan 2013 16:38:58 +0000 (16:38 +0000)
committerLahiru Gunathilake <lahiru@apache.org>
Mon, 21 Jan 2013 16:38:58 +0000 (16:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/airavata/sandbox@1436471 13f79535-47bb-0310-9956-ffa450edef68

grid-tools/bes-client/src/test/resources/fsp.xml

index 55b9bac..3c3199c 100644 (file)
                        </ac:Credential>
                </p:DataStaging>
        </p:JobDescription>
+</p:JobDefinition>
+<?xml version="1.0" encoding="UTF-8"?>
+<p:JobDefinition xmlns:p="http://schemas.ggf.org/jsdl/2005/11/jsdl"
+       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://schemas.ggf.org/jsdl/2005/11/jsdl jsdl.xsd ">
+       <p:JobDescription>
+               <p:Application>
+                       <POSIXApplication xmlns="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix">
+                               <Executable>/bin/date;/bin/cat</Executable>
+                               <Argument>input.txt</Argument>
+                               <Output>stdout.txt</Output>
+                               <Error>stderr.txt</Error>
+                       </POSIXApplication>
+               </p:Application>
+               <p:DataStaging>
+                       <p:FileName>input.txt</p:FileName>
+                       <p:CreationFlag>overwrite</p:CreationFlag>
+                       <p:Source>
+                               <p:URI>ftp://host.name:8004/hello.txt
+                               </p:URI>
+                       </p:Source>
+                       <ac:Credential xmlns:ac="http://schemas.ogf.org/hpcp/2007/11/ac">
+                               <wsse:UsernameToken
+                                       xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
+                                       <wsse:Username>myuser</wsse:Username>
+                                       <wsse:Password>mypass</wsse:Password>
+                               </wsse:UsernameToken>
+                       </ac:Credential>
+               </p:DataStaging>
+               <p:DataStaging>
+                       <p:FileName>input.txt</p:FileName>
+                       <p:CreationFlag>overwrite</p:CreationFlag>
+                       <p:Target>
+                               <p:URI>ftp://host.name:8004/input.txt</p:URI>
+                       </p:Target>
+                       <ac:Credential xmlns:ac="http://schemas.ogf.org/hpcp/2007/11/ac">
+                               <wsse:UsernameToken
+                                       xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
+                                       <wsse:Username>myuser</wsse:Username>
+                                       <wsse:Password>mypass</wsse:Password>
+                               </wsse:UsernameToken>
+                       </ac:Credential>
+               </p:DataStaging>
+               <p:DataStaging>
+                       <p:FileName>stderr.txt</p:FileName>
+                       <p:CreationFlag>overwrite</p:CreationFlag>
+                       <p:Target>
+                               <!-- replace gridsam with your middleware client - arc clients : ftp://zam1161v01.zam.kfa-juelich.de:8004/ogf27/arc/test__9_200.out 
+                                       - genesis clients : ftp://zam1161v01.zam.kfa-juelich.de:8004/ogf27/genesis/test__9_200.out -->
+                               <p:URI>ftp://host.name:8004/stderr.txt</p:URI>
+                       </p:Target>
+                       <ac:Credential xmlns:ac="http://schemas.ogf.org/hpcp/2007/11/ac">
+                               <wsse:UsernameToken
+                                       xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
+                                       <wsse:Username>myuser</wsse:Username>
+                                       <wsse:Password>mypass</wsse:Password>
+                               </wsse:UsernameToken>
+                       </ac:Credential>
+               </p:DataStaging>
+               <p:DataStaging>
+                       <p:FileName>stdout.txt</p:FileName>
+                       <p:CreationFlag>overwrite</p:CreationFlag>
+                       <!-- replace gridsam with your middleware client - arc clients : ftp://zam1161v01.zam.kfa-juelich.de:8004/ogf27/arc/test__9_200.out 
+                               - genesis clients : ftp://zam1161v01.zam.kfa-juelich.de:8004/ogf27/genesis/test__9_200.out -->
+
+                       <p:Target>
+                               <p:URI>ftp://host.name:8004/stdout.txt</p:URI>
+                       </p:Target>
+                       <ac:Credential xmlns:ac="http://schemas.ogf.org/hpcp/2007/11/ac">
+                               <wsse:UsernameToken
+                                       xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
+                                       <wsse:Username>myuser</wsse:Username>
+                                       <wsse:Password>mypass</wsse:Password>
+                               </wsse:UsernameToken>
+                       </ac:Credential>
+               </p:DataStaging>
+       </p:JobDescription>
 </p:JobDefinition>
\ No newline at end of file