#!/bin/bash TC_ONELINE_DESCR="<test case description>" . ../common/testcase_common.sh $1 $2 #### TEST BEGIN #### <tests here> #### TEST COMPLETE #### store_logs END print_result
The ../common/testcase_common.sh contains all functions needed for the test case file. See the README.md file in the ../common dir for a description of all available functions.
##Test suite files## A test suite file contains one or more test cases to run in sequence. A description of the test case should be given to the TS_ONELINE_DESCR
var. The description will be printed in the test result.
The empty template for a test suite files looks like this:
(Only the parts noted with <
and >
shall be changed.)
#!/bin/bash TS_ONELINE_DESCR="<test-suite-description>" . ../common/testsuite_common.sh suite_setup ############# TEST CASES ################# run_tc <tc-id or ts-id>.sh $1 $2 ... ... ########################################## suite_complete
The ../common/testsuite_common.sh contains all functions needed for a test suite file. See the README.md file in the ../common dir for a description of all available functions.
##Known limitations## When DFC has polled a new event from the MR simulator, DFC starts to check each file whether it has been already published or not. This check is done per file towards the DR simulator. If the event contains a large amount of files, there is a risk that DFC will flood the DR simulator with requests for these checks. The timeout in DFC for the response is currently 4 sec and the DR simulator may not be able to answer all request within the timeout. DR simulator is single threaded. This seem to be a problem only for the first polled event. For subsequent events these requests seem to be spread out in time by DFC so the DR simulator can respond in time. The problem is visible in the DR simulator counters ctr_publish_query
andctr_publish_query_not_published
in the auto-test scripts. They will have a count slightly less (1 to 5) than the actual number of files in the event. The application log in DFC also prints a timeout error for each failed request. A number of the test script will report failure due to this limitation in the DR simulator.
The FTP servers may deny connection when too many file download requests are made in a short time from DFC. This is visible in the DFC application log as WARNINGs for failed downloads. However, DFC always retry the failed download a number of times to minimize the risk of giving up download completely for these files.