From ba2895bb33279d9c9cce82f90eaad195e55446d0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Ale=C5=A1=20K=C5=99enek?= Date: Tue, 8 Jul 2008 07:55:19 +0000 Subject: [PATCH] basic smoke tests --- org.glite.lb.doc/src/LBAG-Installation.tex | 70 ++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/org.glite.lb.doc/src/LBAG-Installation.tex b/org.glite.lb.doc/src/LBAG-Installation.tex index 33fd5c6..f899f1b 100644 --- a/org.glite.lb.doc/src/LBAG-Installation.tex +++ b/org.glite.lb.doc/src/LBAG-Installation.tex @@ -101,3 +101,73 @@ Namergovat do serveru \subsection{Smoke tests} \TODO{ljocha: get something from the old testing docs} + +Thorough tests of \LB, including performance measurement, are +covered in a~specialized document~\cite{testplan}. +This section describes only elementary tests that verify basic +functionality of the services. + +The following test description assumes the \LB services installed +and started as described above. + +\def\req{\noindent\textbf{Prerequisities:}\xspace} +\def\how{\noindent\textbf{How to run:}\xspace} +\def\result{\noindent\textbf{Expected result:}\xspace} + +\subsubsection{Job registration} + +Register a~new job with the \LB server and check that its status is +reported correctly. + +\req Installed glite-lb-client package, valid user's X509 credentials. +Can be invoked from any machine. + +\how +\begin{quote} +\verb'/opt/glite/examples/glite-lb-job_reg -m' \emph{my.server.name:port} +\end{quote} +A~new jobid is generated and printed. Run +\begin{quote} +\verb'/opt/glite/examples/glite-lb-job_status' \emph{the\_\/new\_\/jobid} +\end{quote} + +\result +The command should report ``Submitted'' job status. + +\subsubsection{Logging events via lb-logger} + +Send several \LB events, simulating normal job life cycle. +Checks delivery of the events via \LB logger. + +\req Installed glite-lb-client package, valid user's X509 credentials. +Must be run on a~machine where glite-lb-logger package is set up and running. + +\how +\begin{quote} +\verb'/opt/glite/examples/glite-lb-running.sh -m ' \emph{my.server.name:port} +\end{quote} + +The command prints a~new jobid, followed by diagnostic messages as the events are logged. +Check the status of the new job with +\begin{quote} +\verb'/opt/glite/examples/glite-lb-job_status' \emph{the\_\/new\_\/jobid} +\end{quote} + +\result +Due to asynchronous event +delivery various job states can be reported for limited time (several seconds). +Finally the +``Running'' status should be reached. + +\subsubsection{Logging events via lb-proxy} + +Send events via \LB proxy. Checks the proxy functionality. + +\TODO{} + +\subsubsection{Notification delivery} + +Register for receiving notifications, and log events which trigger +the notification delivery. Checks the whole notification mechanism. + +\TODO{} -- 1.8.2.3