Skip to content
Snippets Groups Projects
Commit 75c0d3c4 authored by Mikhail Karnevskiy's avatar Mikhail Karnevskiy
Browse files

enable test of the receiver-fabric

parent 86d3e793
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@ test-services-linux-debug:
- cd $CI_PROJECT_DIR
- bash /run_asapo.sh
- cd $CI_PROJECT_DIR/build
- ctest --no-compress-output -T Test -L all -E "kafka|full_chain_monitoring|full_chain_two_beamlines-fabric|full_chain_simple_chain_withdata_fromcache-fabric|noaccess|restart|logger_fluentd" --output-on-failure --output-junit testResult.xml
- ctest --no-compress-output -T Test -L all -E "kafka|full_chain_monitoring|noaccess|restart|logger_fluentd" --output-on-failure --output-junit testResult.xml
tags:
- kubernetes-executor
rules:
......
{
"MonitoringServer": "auto",
"PerformanceDbServer":"localhost:8086",
"MonitorPerformance": true,
"PerformanceDbName": "db_test",
"DatabaseServer":"auto",
"DiscoveryServer": "localhost:8410",
"DataServer": {
"AdvertiseURI": "127.0.0.1:8431",
"NThreads": 2,
"ListenPort": 8431,
"NetworkMode": ["fabric"]
},
"Metrics": {
"Expose": true,
"ListenPort": 8430
},
"DataCache": {
"Use": true,
"SizeGB": 1,
"ReservedShare": 10
},
"AuthorizationServer": "localhost:8412",
"AuthorizationInterval": 1000,
"ListenPort": 8411,
"Tag": "localhost",
"ReceiveToDiskThresholdMB":50,
"MaxNumPersistedStreams":100,
"LogLevel" : "debug",
"Kafka" : {
"Enabled" : false
}
}
......@@ -7,6 +7,9 @@ cp build/monitoring/monitoring_server/asapo-monitoring-server /asapo-monitoring-
cp deploy/asapo_services_light/*json /
# Two receiver configs (tcp and fabric) are required for tests
cp deploy/asapo_services_light/receiver.json /receiver_tcp.json
cp deploy/build_env/services-linux/receiver_fabric.json /
cp build/deploy/asapo_services_light/nginx.conf /etc/nginx/nginx.conf
......
......@@ -7,6 +7,15 @@ loglevel=info ; info, debug, warn, trace
childlogdir=/var/log/supervisord/ ; where child log files will live
user=root
[inet_http_server]
port = 127.0.0.1:9001
[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface
[supervisorctl]
serverurl=http://127.0.0.1:9001
[program:mongo]
command=/usr/bin/mongod --bind_ip_all --dbpath /var/lib/mongodb/
stderr_logfile=/tmp/mongo_err.log
......
......@@ -29,13 +29,13 @@ Cleanup() {
set +e
set +o pipefail
if [[ $network_type == "fabric" ]]; then
nomad stop receiver
nomad run receiver_tcp.nmd
cp /receiver_tcp.json /receiver.json
supervisorctl restart receiver
while true
do
sleep 1
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep 127.0.0.1 || continue
echo recevier started
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep localhost || continue
echo recevier tcp started
break
done
fi
......@@ -60,13 +60,13 @@ Cleanup() {
}
if [[ $network_type == "fabric" ]]; then
nomad stop receiver
nomad run receiver_fabric.nmd
cp /receiver_fabric.json /receiver.json
supervisorctl restart receiver
while true
do
sleep 1
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep 127.0.0.1 || continue
echo recevier started
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep localhost || continue
echo recevier fabric started
break
done
fi
......
......@@ -30,12 +30,14 @@ Cleanup() {
echo cleanup
set +e
if [[ $network_type == "fabric" ]]; then
nomad stop receiver
nomad run receiver_tcp.nmd
#nomad stop receiver
#nomad run receiver_tcp.nmd
cp /receiver_tcp.json /receiver.json
supervisorctl restart receiver
while true
do
sleep 1
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep 127.0.0.1 || continue
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep localhost || continue
echo recevier started
break
done
......@@ -59,12 +61,14 @@ Cleanup() {
}
if [[ $network_type == "fabric" ]]; then
nomad stop receiver
nomad run receiver_fabric.nmd
#nomad stop receiver
#nomad run receiver_fabric.nmd
cp /receiver_fabric.json /receiver.json
supervisorctl restart receiver
while true
do
sleep 1
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep 127.0.0.1 || continue
curl --silent 127.0.0.1:8400/asapo-discovery/v0.1/asapo-receiver?protocol=v0.6 --stderr - | grep localhost || continue
echo recevier started
break
done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment