From 79ea5d8ca72bb6909b9247eb437dd12137db7d6f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Thu, 13 Apr 2006 14:27:40 +0000 Subject: [PATCH] my missing parts in JPPS standalone tests --- org.glite.jp/doc/testplan.tex | 94 ++++++++++++++++++++++++++++++------------- 1 file changed, 65 insertions(+), 29 deletions(-) diff --git a/org.glite.jp/doc/testplan.tex b/org.glite.jp/doc/testplan.tex index 6e9bc3a..b4a73d3 100644 --- a/org.glite.jp/doc/testplan.tex +++ b/org.glite.jp/doc/testplan.tex @@ -55,7 +55,7 @@ \subsubsection{Basic functionality} \label{regjob} -\req Running JPPS +\req\ Running JPPS \how \begin{itemize} @@ -74,18 +74,21 @@ $ jpps-test GetJobAttr JOBID http://egee.cesnet.cz/en/Schema/JP/System:owner \result Should print the OWNER value supplied. \subsubsection{AuthZ check} -\req JPPS running, a~job registered with the procedure in~\ref{regjob} \\ -\how -Call GetJobAttributes using different user credentials \\ -\result -Should fail with ``Permission denied'' error \\ +\req\ JPPS running, a~job registered with the procedure in~\ref{regjob} + +\how\ +Call GetJobAttributes using different user credentials +\result\ +Should fail with ``Permission denied'' error \subsection{Tag recording} \label{tagreg} \subsubsection{Basic functionality} -\req JPPS running, a~job registered with the procedure in~\ref{regjob} +\req\ +JPPS running, a~job registered with the procedure in~\ref{regjob} + \how \begin{itemize} \item Call RecordTag operation: @@ -100,45 +103,78 @@ $ jpps-test GetJobAttr JOBID TAGNAME \result The recorded value should be returned. -- record and retrieve more values of the same tag +\how\ Record another values(s) of the same tag by repeating the RecordTag call -\subsubsection{AuthZ check} -\req JPPS running, a~job registered with the procedure in~\ref{tagreg} \\ -\how Call RecordTag using different user credentials \\ -\result Should fail with ``Permission denied'' error \\ +\result\ GetJobAttr should return all the recorded values +\subsubsection{AuthZ check} +\req\ JPPS running, a~job registered with the procedure in~\ref{tagreg} \\ +\how\ Call RecordTag using different user credentials \\ +\result\ Should fail with ``Permission denied'' error \\ + \subsection{File upload} + \subsubsection{Basic functionality} -- call StartUpload, LB dump file type -* check with GetJobFiles -- shoud return nothing -- upload via ftp -- call CommitUpload -* check with GetJobFiles -- should return URL -- retrieve and check the file +\req\ JPPS running, my certificate subject amont JPPS trusted peers, +\verb'globus-url-copy' in PATH + +\how +Run the aggregate test script from \verb'org.glite.jp.primary/build' + +\begin{verbatim} +$ ../examples/jpps_store_test -o 'OWNER' -d ../examples/job_template +\end{verbatim} +(substitute real cert.\ subject for OWNER) + +\result\ +The script calls JPPS operations RegisterJob and StartUpload, +uploads an \LB\ job log generated from the template file, +calls CommitUpload. + +Finally, the upload is checked by retrieving two attribute +values: LB/Attributes:user and LB/Attributes:finalStatusk via the GetJobAttr +call. +Both calls should return OK and print reasonable values. + +%- call StartUpload, LB dump file type +%* check with GetJobFiles -- shoud return nothing +%- upload via ftp +%- call CommitUpload +%* check with GetJobFiles -- should return URL +%- retrieve and check the file + +\subsubsection{Phase checks} +\todo{salvet} +% soubor nelze zapsat pred otevrenim operaci StartUpload +% nelze cist pred Commitem +% nelze zapsat po Commitu \subsubsection{AuthZ checks} (should fail) -* call GetJobFiles with different credentials - -* StartUpload with different credentials -- StartUpload -* ftp upload with different credentials +\todo{salvet} +%* call GetJobFiles with different credentials +% +%* StartUpload with different credentials +% +%- StartUpload +%* ftp upload with different credentials +% +%* ftp GET with different credentials -* ftp GET with different credentials \subsubsection{Cleanup} (Foreseen test for feature which is not implemented yet) -- call StartUpload, short timeout -- upload via ftp -(don't call CommitUpload) -* uploaded file should be purged after timeout +%- call StartUpload, short timeout +%- upload via ftp +%(don't call CommitUpload) +%* uploaded file should be purged after timeout \section{LB plugin} -\todo{TBD} +\todo{honik} \section{JPPS-JPIS interaction (feeds)} -- 1.8.2.3