#******************************************************************************* # ALMA - Atacama Large Millimiter Array # (c) Associated Universities Inc., 2002 # (c) European Southern Observatory, 2002 # Copyright by ESO (in the framework of the ALMA collaboration) # and Cosylab 2002, All rights reserved # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either # version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public # License along with this library; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # # "@(#) $Id: TestList.lite,v 1.32 2013/03/06 08:45:39 hsommer Exp $" # # TestList # # who when what # -------- -------- ---------------------------------------------- # david 2002-04-15 created SOURCE jcontncTATEnvironment PROLOGUE acsutilTATPrologue -l #Test a Consumer connecting to a non-existent channel that is later created by the Supplier 1 consumerSimpleSupplier "acsutilTATTestRunner acsStartContainer -java frodoContainer" "@SLEEP 15" "acsutilTATTestRunner jcontncTATRunTest.sh acsStartJava alma.demo.test.client.EventComponentTest" 2 testCDBChannel "acsutilTATTestRunner acsStartContainer -java frodoContainer" "@SLEEP 15" "acsutilTATTestRunner jcontncTATRunTest.sh acsStartJava alma.demo.test.client.SupplierCDBChannelTest" #Test so-called NC integration logs 4 integrationLogs "acsutilTATTestRunner acsStartContainer -java frodoContainer" "@SLEEP 15" "acsutilTATTestRunner jcontncTATRunTest.sh acsStartJava alma.demo.test.client.EventILComponentTest" 5 testArchiveConsumer "acsutilTATTestRunner acsStartJava alma.acs.testsupport.tat.NoDotJUnitRunner alma.demo.test.client.ArchiveConsumerTest" "@SLEEP 8" "acsutilTATTestRunner archiveeventsSupplier" "@SLEEP 30" # Test archive supplier. Verification is done by checking of consumer output, for which we reuse the ArchiveConsumerTest 6 testArchiveSupplier "acsutilTATTestRunner acsStartJava alma.acs.testsupport.tat.NoDotJUnitRunner alma.demo.test.client.ArchiveConsumerTest" "@SLEEP 3" "acsutilTATTestRunner acsStartJava alma.demo.test.client.ArchiveSupplierTest" "@SLEEP 30" 7 testNotificationServiceConfiguration "acsutilTATTestRunner acsStartJava alma.demo.test.client.NotificationServiceConfigurationTest" 8 testRefactoredNCSubscriber "acsutilTATTestRunner runNCSubscriberTests.sh" 9 testHelper "acsutilTATTestRunner runHelperTest.sh" 10 testAnyAide "acsutilTATTestRunner runAnyAideTest.sh" # Check the reconnection of a publisher when autoreconnection is ON and its Notify Service is restarted. 11 testPublisherAutoreconnectNSRestarted "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleSupplierReconnClient 30 5 AUTORECONNECT NS_RESTARTED" "@SLEEP 5" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 40" # Check the reconnection of a publisher when autoreconnection is ON and its Notify Service is stopped. 12 testPublisherAutoreconnectNSStopped "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleSupplierReconnClient 13 5 AUTORECONNECT NS_STOPPED" "@SLEEP 5" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory STOP" "@SLEEP 65" # Check the reconnection of a publisher when autoreconnection is OFF and its Notify Service is restarted. 13 testPublisherNoAutoreconnectNSRestarted "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleSupplierReconnClient 30 5 NO_AUTORECONNECT NS_RESTARTED" "@SLEEP 5" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 25" # Check the reconnection of a publisher when autoreconnection is OFF and its Notify Service is stopped. 14 testPublisherNoAutoreconnectNSStopped "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleSupplierReconnClient 13 5 NO_AUTORECONNECT NS_STOPPED" "@SLEEP 5" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory STOP" "@SLEEP 50" # Test 1 autoreconnect of consumers 15 test1ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 1" "@SLEEP 12" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 20" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_1_CONSUMER_AUTORECONNECT" # Test 2 autoreconnect of consumers 16 test2ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 2" "@SLEEP 9" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 25" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_2_CONSUMER_AUTORECONNECT" # Test 3 autoreconnect of consumers 17 test3ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 3" "@SLEEP 5" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 25" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_3_CONSUMER_AUTORECONNECT" # Test 4 autoreconnect of consumers 18 test4ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 4" "@SLEEP 17" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 25" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_4_CONSUMER_AUTORECONNECT" # Test 5 autoreconnect of consumers 19 test5ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 5" "@SLEEP 10" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 25" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_5_CONSUMER_AUTORECONNECT" # Test 6 autoreconnect of consumers 20 test6ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 6" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 6" "@SLEEP 15" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 3" "@SLEEP 50" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_6_CONSUMER_AUTORECONNECT" # Test 7 autoreconnect of consumers 21 test7ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 7" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 7" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 7" "@SLEEP 15" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 1" "@SLEEP 10" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 4" "@SLEEP 90" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_7_CONSUMER_AUTORECONNECT" # Test 8 autoreconnect of consumers 22 test8ConsumerAutoreconnect "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 0" "@SLEEP 4" \ "acsutilTATTestRunner acsStartJava alma.acs.nc.SimpleConsumerReconnClient 8" "@SLEEP 20" \ "acsutilTATTestRunner jcontncExecNotifyService.sh NotifyEventChannelFactory RESTART 4" "@SLEEP 85" \ "acsutilTATTestRunner jcontncEcho.sh END_TEST_8_CONSUMER_AUTORECONNECT" EPILOGUE acsutilTATEpilogue