Ensure that the Job Stops if the Security Test Fails
For this Evaluation, Don wants to be sure that files that do not pass
the company's security test are not moved to the Transfer Site server in
the DMZ. To mimic this circumstance in our evaluation setup, we'll make
the safefiles.txt
file read-only. When the Job command action tries to
write to this file, the action will fail. Because the first Job action
fails, no subsequent actions will run and you should get a failure email
notification.
Test the Job with a command failure
-
On the Reports file server, locate
safefiles.txt
, which was created by earlier tests in this location:c:\Reports\safefiles.txt
-
Make this file read-only (right-click > Properties > Read-only).
-
Copy one or more new
*.pdf
files toc:\Reports
or update the existing files. -
Return to Gateway Administrator. If you are not still viewing the Reports Job, select it from the Jobs page and click Edit
-
Click Run Now.
This time you should receive a failure email notification.
On the Transfer Site server, confirm that no new files were transferred to the Transfer Site directory (
C:\Gateway\Reflection\Reports
). -
After you've confirmed the failure case, return to the Reports file server and delete the read-only copy of
safefiles.txt
(or make it writable) so subsequent Jobs will succeed.
Test the Job again to be sure it is running successfully before you continue with the evaluation.