Update to ARC 4.1.0
[gp-arc-client-c.git] / test / test_helper.rb
1 require 'test/unit'
2
3 UNAME_JSDL = <<-EO_XML
4 <?xml version="1.0" encoding="UTF-8"?>
5 <JobDefinition
6   xmlns="http://schemas.ggf.org/jsdl/2005/11/jsdl"
7   xmlns:posix="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix"
8   xmlns:arc="http://www.nordugrid.org/ws/schemas/jsdl-arc">
9   <JobDescription>
10     <JobIdentification>
11       <JobName>hostname</JobName>
12     </JobIdentification>
13     <Application>
14      <posix:POSIXApplication>
15         <posix:Executable>/bin/uname</posix:Executable>
16               <posix:Argument>-s</posix:Argument>
17               <posix:Argument>-n</posix:Argument>
18         <posix:Output>out.txt</posix:Output>
19         <posix:Error>err.txt</posix:Error>
20       </posix:POSIXApplication>
21     </Application>
22     <DataStaging>
23       <FileName>out.txt</FileName>
24       <DeleteOnTermination>false</DeleteOnTermination>
25     </DataStaging>
26     <DataStaging>
27       <FileName>err.txt</FileName>
28       <DeleteOnTermination>false</DeleteOnTermination>
29     </DataStaging>
30   </JobDescription>
31 </JobDefinition>
32 EO_XML
33
34 SLEEP_JSDL = <<-EO_XML
35 <?xml version="1.0" encoding="UTF-8"?>
36 <JobDefinition
37   xmlns="http://schemas.ggf.org/jsdl/2005/11/jsdl"
38   xmlns:posix="http://schemas.ggf.org/jsdl/2005/11/jsdl-posix"
39   xmlns:arc="http://www.nordugrid.org/ws/schemas/jsdl-arc">
40   <JobDescription>
41     <JobIdentification>
42       <JobName>sleep</JobName>
43     </JobIdentification>
44     <Application>
45      <posix:POSIXApplication>
46         <posix:Executable>/bin/sleep</posix:Executable>
47               <posix:Argument>60</posix:Argument>
48         <posix:Output>out.txt</posix:Output>
49         <posix:Error>err.txt</posix:Error>
50       </posix:POSIXApplication>
51     </Application>
52     <DataStaging>
53       <FileName>out.txt</FileName>
54       <DeleteOnTermination>false</DeleteOnTermination>
55     </DataStaging>
56     <DataStaging>
57       <FileName>err.txt</FileName>
58       <DeleteOnTermination>false</DeleteOnTermination>
59     </DataStaging>
60   </JobDescription>
61 </JobDefinition>
62 EO_XML