Overview of test executables.
authorZdeněk Šustr <sustr4@cesnet.cz>
Tue, 21 Oct 2008 15:04:01 +0000 (15:04 +0000)
committerZdeněk Šustr <sustr4@cesnet.cz>
Tue, 21 Oct 2008 15:04:01 +0000 (15:04 +0000)
org.glite.lb.doc/src/LBTP-IntegrationTests.tex
org.glite.lb.doc/src/LBTP-Tests.tex
org.glite.lb.doc/src/definitions.tex

index 695769f..1dcbd89 100644 (file)
@@ -28,6 +28,24 @@ In this section we describe basic tests of \LB if the services are up and runnin
 % Local tests are meant to be run on the install node (where the appropriate daemon is running)
 % whereas remote tests are meant to be run via another node.
 
+\subsection{Test Suite Overview}
+
+This subsection gives a comprehensive overview of all system functionality tests.
+
+\begin{tabularx}{\textwidth}{|l|l|X|}
+\hline
+     {\bf Executable} & {\bf Status} & {\bf Use} \\
+\hline
+{\tt lb-test-logger-local.sh} & Implemented & Test job logging facilities on a local machine (processes running, ports listening, etc.). \\
+\hline
+{\tt lb-test-logger-remote.sh} & Implemented & Test the local logger availability remotely (open ports). \\
+\hline
+{\tt lb-test-server-local.sh} & Implemented & Test for LB server running on a local machine (processes running, ports listening, etc.). \\
+\hline
+{\tt lb-test-server-remote.sh} & Implemented & Test the LB server availability remotely (open ports). \\
+\hline
+\end{tabularx}
+
 \subsection{Logger (local \& inter)}
 
 \subsubsection{Local tests}
index 21da4fe..0e005ff 100644 (file)
@@ -5,23 +5,35 @@
 
 \subsection{Test Suite Overview}
 
-This subsection gives a comprehensive overview of all tests.
+This subsection gives a comprehensive overview of all system functionality tests.
 
 \begin{tabularx}{\textwidth}{|l|l|X|}
 \hline
      {\bf Executable} & {\bf Status} & {\bf Use} \\
 \hline
-{\tt lb-test-logger-local.sh} & Implemented & Test job logging facilities on a local machine (processes running, ports listening, etc.). \\
+{\tt lb-test-job-registration.sh} & Implemented & Tries to register a job and checks if the registration worked. \\
 \hline
-{\tt lb-test-logger-remote.sh} & Implemented & Test the local logger remotely (open ports). \\
+{\tt lb-test-normal-event-delivery-remote.sh} & Implemented & Tries to register a job and log events. Checks if the registration worked and events resulted in state change accordingly. \\
 \hline
-{\tt lb-test-server-local.sh} & Implemented & Test for LB server running on a local machine (processes running, ports listening, etc.). \\
+{\tt lb-test-logevent.sh} & Proposed & Test if local logger accepts events correctly (i.e. returns 0). \\
 \hline
-{\tt lb-test-server-remote.sh} & Implemented & Test the LB server remotely (open ports). \\
+{\tt lb-l2ILR.sh} & Proposed & Tests if iterlogger recovers correctly and processes events logged inbetween when restarted. \\
 \hline
-{\tt lb-test-job-registration.sh} & Implemented & Tries to register a job and checks if the registration worked. \\
+{\tt lb-test-job-states.sh} & Proposed & Test that job state queries return correctly and that testing jobs are in expected states. \\
 \hline
-{\tt lb-test-normal-event-delivery-remote.sh} & Implemented & Tries to register a job and log events. Checks if the registration worked and events resulted in state change accordingly. \\
+{\tt lb-test-proxy-delivery.sh} & Proposed & Test correct event delivery through LB proxy. \\
+\hline
+{\tt lb-test-ws.sh} & Proposed & Query events and job states throught the WebService interface. \\
+\hline
+{\tt lb-test-notif.sh} & Proposed & Test if notifications are delivered correctly for testing jobs. \\
+\hline
+{\tt lb-test-notif-additional.sh} & Proposed & Test notification delivery with additional options. \\
+\hline
+{\tt lb-test-notif-switch.sh} & Proposed & Test the correct behavior of a notification once its target jobid changes.  \\
+\hline
+{\tt lb-test-notif-recovery.sh} & Proposed & Test if notification client receives notifications correctly upon restart.  \\
+\hline
+{\tt lb-test-purge.sh} & Proposed & Test that LB server purge works correctly. \\
 \hline
 \end{tabularx}
 
@@ -148,6 +160,8 @@ format as the locallogger files.
 \what\ Check state of the jobs with \code{edg\_wll\_JobStatus}. Check all possible job states 
 (if necessary, log relevant events). Query both server and/or proxy.
 
+\how\ \ctblb{lb-test-job-states.sh}
+
 \result\ The API call should return 0, the jobs should be in the expected
 states. Thorough tests may also cross check the values supplied in the
 events (e.g. destination computing element) wrt. the values reported in the job states.
@@ -177,7 +191,8 @@ job status and to the automatic purge from proxy.
 
 %  - check the timeouts. - ??tam byly nejaky timeouty???
 
-\how \\
+\how\ \ctblb{lb-test-proxy-delivery.sh}
+
 \TODO{mozna to ma prijit do nejakeho testsuitu, netusim} 
 {\tt glite-lb-running.sh -x -m LB\_HOST:PORT} \\
 - logs sequence of events and returns JOBID \\
@@ -203,9 +218,11 @@ are really purged from the proxy.
 \TODO{fila: ws example + html example}
 \req\ \path{glite-lb-bkserverd} running, events from \ref{normal} logged
 
-\how\ retrieve both events and job states with the \LB\ WS interface
+\what\ retrieve both events and job states with the \LB\ WS interface
 (operations \code{JobStatus}, \code{QueryEvents}).
 
+\how\ \ctblb{lb-test-ws.sh}
+
 \result\ the returened data should match those returned by the legacy
 API calls.
 
@@ -243,6 +260,8 @@ and repeatedly invoke \code{edg\_wll\_NotifReceive}.
 \item One by one send events triggering job state change.
 \end{enumerate}
 
+\how\ \ctblb{lb-test-notif.sh}
+
 \result\ All the events should trigger notification reported by the running
 notification client.
 
@@ -256,9 +275,11 @@ notification client.
 \label{notif-complex}
 \req\ All \LB\ services running
 
-\how\ Like~\ref{notif1} but include additional criteria,
+\what\ Like~\ref{notif1} but include additional criteria,
 e.g. job is scheduled for a~specific destination.
 
+\how\ \ctblb{lb-test-notif-additional.sh}
+
 \result\ Only notifications matching the criteria should be delivered.
 
 % rozsireni dotazu o dalsi job
@@ -279,6 +300,8 @@ e.g. job is scheduled for a~specific destination.
 \item Send events for the new job.
 \end{enumerate}
 
+\how\ \ctblb{lb-test-notif-switch.sh}
+
 \result\ Notifications should be received by the client.
 
 \begin{hints}
@@ -298,7 +321,7 @@ can be used.
 
 \req\ All \LB\ services running
 
-\how\
+\what\
 \begin{enumerate}
 \item Register another job.
 \item Register a~notification as in~\ref{notif1} but terminate the client
@@ -308,6 +331,8 @@ immediately.
 \code{edg\_wll\_NotifReceive} repeatedly.
 \end{enumerate}
 
+\how\ \ctblb{lb-test-notif-recovery.sh}
+
 \result\ Delayed notifications should be received by the client almost
 immediately.
 
@@ -325,7 +350,7 @@ artificially.
 
 \req\ All \LB services running, preferably a~dedicated server for this test.
 
-\how
+\what
 \begin{enumerate}
 \item Purge all data on the server with \path{glite-lb-purge}
 \item Log two sets of jobs, separated with delay of at least 60s so
@@ -339,6 +364,8 @@ letting the server dump the purged events.
 \item \label{purge3} Run purge once more.
 \end{enumerate}
 
+\how\ \ctblb{lb-test-purge.sh}
+
 \result\ The data dumped in steps \ref{purge1}, \ref{purge2} should be the
 same as retrieved in~\ref{purgel}. The final purge invocation should
 do nothing (i.e. nothing was left in the database).
index 987e907..e923357 100644 (file)
@@ -22,7 +22,7 @@
 \def\result{\noindent\textbf{Expected result:}}
 \def\path#1{{\normalfont\textsf{#1}}}
 \def\code#1{\texttt{#1}}
-\def\ctblb#1{\code{org.glite.testsuites.ctb/LB/#1}}
+\def\ctblb#1{\code{org.glite.testsuites.ctb/LB/tests/#1}}
 
 \specialcomment{hints}{\par\noindent\textbf{Hints: }\begingroup\slshape}{\endgroup}
 %\includecomment{hints}