Check that the job scripts work
In a command shell on the batch server, go to the scripts installation directory (e.g. /opt/ijp/bin) and run:
test_args.py --datasetIds=1,2,3 --datafileIds=4,5,6
This should succeed and report the supplied dataset/datafile IDs. (It will also report that other properties have
not been supplied, but this is OK.)
In a browser on any suitable system, launch the IJP by visiting https://ijp-server-name:8181/ijp
(where ijp-server-name is the domain name of the IJP server), and login with the credentials defined in ijp.properties. Then:
- Choose "date" from the list of Job Types
- Click "Submit Job"; this should bring up a dialog "date Options" with buttons labelled Submit and Close.
- Click "Submit". The resulting dialog should display a single Submitted Job ID. Note the ID, and click Close.
- Click on "Show job status panel"; this should launch a separate dialog listing known jobs and their statuses.
- At or near the top of the list should be an entry for the noted ID, with name "date". If the Status is Queued,
wait until it changes to Completed. Once Completed, click Display Job Output.
- The output display should show that the job has run; at or near the end should be a line that ends with
"date ending with code 0".
Repeat for other job types, to test other aspects of the IJP, e.gs:
- sleepcount
- Asks for sleep duration and no. of iterations. It should be possible to observe the output before the job completes.
- test_args_multi
- Allows the user to select multiple datasets and datafiles and submit them either to a single job, or one job per selection.
Output reports the IDs of the selected datasets/datafiles.
- create_datafile
- Allows the user to select one or more datasets; requests a filename and (one-line) contents.
For each selected dataset, runs a (separate) job that creates the file in that dataset.
- copy_datafile
- The user should select a single target dataset and a single datafile (in a different dataset).
The job will create a copy of the datafile in the target dataset.
Note that the IJP allows selection of multiple datasets and/or datafiles, and allows the user to run
multiple jobs; but in these cases the jobs will fail. Only a single dataset and a single datafile
(in a different dataset) should be selected.