pax_global_header 0000666 0000000 0000000 00000000064 13770636766 0014537 g ustar 00root root 0000000 0000000 52 comment=40a5f2b2914ea609b5ff6b9a0f30b408719087a2
test_ci-test/ 0000775 0000000 0000000 00000000000 13770636766 0013512 5 ustar 00root root 0000000 0000000 test_ci-test/.gitlab-ci.yml 0000664 0000000 0000000 00000001744 13770636766 0016154 0 ustar 00root root 0000000 0000000 image:
name: acscommunity/acs
entrypoint: [""]
include:
template: Jobs/Code-Quality.gitlab-ci.yml
code_quality_html:
extends: code_quality
variables:
REPORT_FORMAT: html
artifacts:
paths: [gl-code-quality-report.html]
code_quality:
variables:
CODE_QUALITY_IMAGE: "registry.gitlab.com/gitlab-org/ci-cd/codequality:0.85.18"
code_quality_html:
extends: code_quality
variables:
REPORT_FORMAT: html
build-job:
stage: build
script:
- echo "Hello, $GITLAB_USER_LOGIN!"
test-job1:
stage: test
script:
- echo "This job tests something"
test-job2:
stage: test
script:
- echo "This job tests something, but takes more time than test-job1."
- echo "After the echo commands complete, it runs the sleep command for 20 seconds"
- echo "which simulates a test that runs 20 seconds longer than test-job1"
- sleep 20
deploy-prod:
stage: deploy
script:
- echo "This job deploys something from the $CI_COMMIT_BRANCH branch."
test_ci-test/sag_supervisor/ 0000775 0000000 0000000 00000000000 13770636766 0016565 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/ 0000775 0000000 0000000 00000000000 13770636766 0017155 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/MACI/ 0000775 0000000 0000000 00000000000 13770636766 0017666 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/MACI/Components/ 0000775 0000000 0000000 00000000000 13770636766 0022013 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/MACI/Components/Components.xml 0000664 0000000 0000000 00000003234 13770636766 0024664 0 ustar 00root root 0000000 0000000
test_ci-test/sag_supervisor/CDB/MACI/Managers/ 0000775 0000000 0000000 00000000000 13770636766 0021423 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/MACI/Managers/Manager/ 0000775 0000000 0000000 00000000000 13770636766 0022775 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/MACI/Managers/Manager/Manager.xml 0000664 0000000 0000000 00000002341 13770636766 0025071 0 ustar 00root root 0000000 0000000
test_ci-test/sag_supervisor/CDB/alma/ 0000775 0000000 0000000 00000000000 13770636766 0020067 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/alma/simulated/ 0000775 0000000 0000000 00000000000 13770636766 0022056 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/alma/simulated/SIM_ARRAYDATAHANDLER/ 0000775 0000000 0000000 00000000000 13770636766 0025074 5 ustar 00root root 0000000 0000000 test_ci-test/sag_supervisor/CDB/alma/simulated/SIM_ARRAYDATAHANDLER/SIM_ARRAYDATAHANDLER.xml 0000664 0000000 0000000 00000002727 13770636766 0030644 0 ustar 00root root 0000000 0000000
from time import sleep
from Acspy.Nc.Supplier import Supplier
from Acspy.Nc.Consumer import Consumer
import SAG_CUSTOM_TYPES_MODULE
import SAG_CUSTOM_TYPES_MODULE__POA
logger=parameters[0].getLogger()
logger.logInfo("SIM_ARRAYDATAHANDLER component initialization")
setGlobalData("logger", logger)
sup = Supplier(SAG_CUSTOM_TYPES_MODULE.CHANNELNAME_ADH)
setGlobalData("sup", sup)
def adh_event_handler(event):
logger = getGlobalData("logger")
logger.logInfo("[SIM_ARRAYDATAHANDLER] New message received: " + str(event))
con = Consumer(SAG_CUSTOM_TYPES_MODULE.CHANNELNAME_ADH)
con.addSubscription(SAG_CUSTOM_TYPES_MODULE.SAGChannelEvent_TO_ADH, adh_event_handler)
con.consumerReady()
setGlobalData("con", con)
print('SIM_ARRAYDATAHANDLER component cleaning up')
getGlobalData("sup").disconnect()
<_corbaMethod Name="simulateDataSend" Timeout="0">
logger = getGlobalData("logger")
logger.logInfo("[SIM_ARRAYDATAHANDLER] simulateDataSend() called!")
sup = getGlobalData("sup")
for i in range(10):
event = SAG_CUSTOM_TYPES_MODULE.ChannelEvent_FROM_ADH("param1_mon", 888)
logger.logInfo('SIM_ARRAYDATAHANDLER publishing event..')
sup.publishEvent(simple_data=event)
sleep(1)
return True