WMS 3.5 units tests
- WMS_UT_001: the LDAP helper functions are tested.
Test ldap_search in emi.wms.wms-core/test
- WMS_UT_002: the ISM purchaser modules for GLUE1.3 and GLUE2.0 are tested in a standalone module.
- WMS_UT_003: generation of the job wrapper template.
Test jobwrapperTest in emi.wms.wms-core/examples
[mcecchi@devel09 examples]$ sudo WMS_JOBWRAPPER_TEMPLATE=/home/mcecchi/wms35/org.glite.wms/org.glite.wms.core/config/ ./jobwrapperTest/examples/inputclassad outclassad tmp glite_wms.conf
[mcecchi@devel09 examples]$ cat outclassad
[
outputsandboxpath = "gsiftp://grid012f.cnaf.infn.it/tmp/http/output";
stdoutput = "output.txt";
globusresourcecontactstring = "lxde01.pd.infn.it:2119/jobmanager-pbs";
queuename = "jobmanager-pbs";
executable = "job.sh";
type = "job";
lb_sequence_code = "UI=1:NS=1:WM=3:BH=3:JSS=2:LM=1:LRMS=1:APP=0";
arguments = "-i\"\\\"FabrizioPacini\"*.txt";
environment =
{
"VAL1=val1",
"VAL2=val2",
"VAL3=val3",
"BYPASS_SHADOW_PORT=12",
"BYPASS_SHADOW_HOST=dune.cnaf.infn.it"
};
jobtype = "INTERACTIVE";
ce_id = "emi002.grid.sinica.edu.tw:8443/cream-pbs-testers_q";
nodenumber = 2;
outputsandbox =
{
"pluto.txt",
"pippo.txt",
"genoveffa.txt"
};
inputsandbox =
{
"job.sh",
"inputfile1"
};
edg_jobId = "https://lxde04.pd.infn.it:9000/k4vXdFL_OKHugi9U9U8TvQ";
certificatesubject = "/C=IT/O=INFN/OU=host/L=CNAF/CN=grid012g.cnaf.infn.it/Email=sitemanager@cnaf.infn.it";
stderror = "stderror.txt";
inputsandboxpath = "gsiftp://grid012f.cnaf.infn.it/tmp/http/input";
ReallyRunningToken = "gsiftp://grid012f.cnaf.infn.it/tmp/http/token.txt_0";
lrms_type = "LSF";
x509userproxy = "/tmp/x509_u464";
stdinput = "input.txt";
requirements = other.GlueCEStateStatus == "Production" && other.freecpus > 5
]
[mcecchi@devel09 examples]$ cat tmp
outputsandboxpath = gsiftp://grid012f.cnaf.infn.it/tmp/http/output
+stdoutput = "output.txt"
+globusresourcecontactstring = "lxde01.pd.infn.it:2119/jobmanager-pbs"
+queuename = "jobmanager-pbs"
executable = job.sh
+type = "job"
+lb_sequence_code = "UI=1:NS=1:WM=3:BH=3:JSS=2:LM=1:LRMS=1:APP=0"
arguments = -i"\"FabrizioPacini"*.txt
+jobtype = "INTERACTIVE"
+ce_id = "emi002.grid.sinica.edu.tw:8443/cream-pbs-testers_q"
+nodenumber = 2
+edg_jobId = "https://lxde04.pd.infn.it:9000/k4vXdFL_OKHugi9U9U8TvQ"
+certificatesubject = "/C=IT/O=INFN/OU=host/L=CNAF/CN=grid012g.cnaf.infn.it/Email=sitemanager@cnaf.infn.it"
+stderror = "stderror.txt"
inputsandboxpath = gsiftp://grid012f.cnaf.infn.it/tmp/http/input
+ReallyRunningToken = "gsiftp://grid012f.cnaf.infn.it/tmp/http/token.txt_0"
+lrms_type = "LSF"
x509userproxy = /tmp/x509_u464
+stdinput = "input.txt"
Queue 1
- WMS_UT_004: check how URLs are parsed.
Test urlTest in emi.wms.wms-helper/examples
[mcecchi@devel08 emi.wms.wms-helper]$ ./build/examples/urlTest
Testing class URL...
Let's start with an easy one: http://www.google.com
protocol = http
host = www.google.com
port =
path =
http://www.google.com
Testing an empty URL...
Empty URL caused an exception, uhm ...right
Some examples...
gsiftp://cert-rb-03.cnaf.infn.it/var/glite/SandboxDir/xF/https3a2f2fcert-rb-03.cnaf.infn.it3a90002fxFyHs5fvSqxqzDQw0BnZe-Q/input = valid URL
protocol = gsiftp
host = cert-rb-03.cnaf.infn.it
port =
path = /var/glite/SandboxDir/xF/https3a2f2fcert-rb-03.cnaf.infn.it3a90002fxFyHs5fvSqxqzDQw0BnZe-Q/input
h ttp://www.ics.uci.edu = not valid URL
http://www.ic s.uci.edu = not valid URL
http://www.ics.uci.edu:8080/pub/ietf/uri/ = valid URL
http://www.ics.uci.edu:8080/pub/ietf/u%20ri/ = valid URL
http://www.ics.uci.edu:8080/pub/ietf/u%2ri/ = not valid URL
http://www.ics.uci.edu:8080/pub/ietf/uri = valid URL
http://www.ics.uci.edu:8080/pub/i:etf/uri = not valid URL
Testing copy constructor...
url1 = http://www.cnaf.infn.it/giaco
url2 = http://www.cnaf.infn.it/giaco
url1 protocol = http
url2 protocol = http
url1 host = www.cnaf.infn.it
url2 host = www.cnaf.infn.it
url1 port =
url2 port =
url1 path = /giaco
url2 path = /giaco
Testing assignment operator...
url1 = http://www.cnaf.infn.it/giaco
url2 = http://www.cnaf.infn.it/giaco
url1 protocol = http
url2 protocol = http
url1 host = www.cnaf.infn.it
url2 host = www.cnaf.infn.it
url1 port =
url2 port =
url1 path = /giaco
url2 path = /giaco
- WMS_UT_005: check condor submit file generation.
Test jobadapterTest in emi.wms.wms-helper/examples
[root@devel08 emi.wms.wms-helper]# ./build/examples/jobadapterTest examples/inputclassad.new examples/inputclassad.wmproxy aaa glite_wms.conf
[root@devel08 emi.wms.wms-helper]# cat aaa
+CEInfoHostName = ""
Universe = grid
error = /var/jobcontrol/condorio/k4/https_3a_2f_2flxde04.pd.infn.it_3a9000_2fk4vXdFL_5fOKHugi9U9U8TvQ/StandardError
Executable = /var/jobcontrol/submit/k4/JobWrapper.https_3a_2f_2flxde04.pd.infn.it_3a9000_2fk4vXdFL_5fOKHugi9U9U8TvQ.sh
+Type = "Job"
grid_type = globus
Log = /var/logmonitor/CondorG.log/CondorG.log
Transfer_Executable = True
Output = /var/jobcontrol/condorio/k4/https_3a_2f_2flxde04.pd.infn.it_3a9000_2fk4vXdFL_5fOKHugi9U9U8TvQ/StandardOutput
+ce_id = "kkjdjkkjjk"
Notification = never
+edg_jobid = "https://lxde04.pd.infn.it:9000/k4vXdFL_OKHugi9U9U8TvQ"
GlobusScheduler = lxde01.pd.infn.it:2119/jobmanager-pbs
GlobusRSL = (queue=jobmanager-pbs)(jobtype=single)(environment=(EDG_WL_JOBID 'https://lxde04.pd.infn.it:9000/k4vXdFL_OKHugi9U9U8TvQ'))(count=2)(hostCount=2)
stream_error = False
grid_resource = gt2 lxde01.pd.infn.it:2119/jobmanager-pbs
+UserSubjectName = "/C=IT/O=INFN/OU=host/L=CNAF/CN=grid012g.cnaf.infn.it/Email=sitemanager@cnaf.infn.it"
X509UserProxy = /tmp/x509_u464
stream_output = False
Copy_to_Spool = False
Queue 1
--
MarcoCecchi - 2013-02-14