From 45df78fff64b3e4293f7d20e73f28d24de73667f Mon Sep 17 00:00:00 2001 From: Alexander Lutay Date: Mon, 24 Jun 2019 14:43:46 +0200 Subject: [PATCH] TT#61205 Add rtcengine/fileshare/janus to system-tests Change-Id: I6c86b95a0362de4989eee0bee2b81de533a6ccf7 --- templates/411_process-ngcp-pro.yaml.tt2 | 25 ++++++++++++++++++++++++ templates/510_init-daemons-ngcp.yaml.tt2 | 12 ++++++++++++ 2 files changed, 37 insertions(+) diff --git a/templates/411_process-ngcp-pro.yaml.tt2 b/templates/411_process-ngcp-pro.yaml.tt2 index fac84fc..2c2a1ea 100644 --- a/templates/411_process-ngcp-pro.yaml.tt2 +++ b/templates/411_process-ngcp-pro.yaml.tt2 @@ -44,3 +44,28 @@ process: snmpd: running: true + + janus: + running: [% janus.enable == "yes" && node_state == 'active' ? 'true' : 'false' %] + +command: + "pgrep -c -n -f '[r]tcengine.js'": +[% IF rtcengine.enable == "yes" && node_state == 'active' -%] + exit-status: 0 + stdout: + - "1" +[% ELSE -%] + exit-status: 1 + stdout: [] +[% END -%] + stderr: [] + + "pgrep -c -n -f '[c]omx-fileshare.js'": +[% IF fileshare.enable == "yes" && node_state == 'active' -%] + exit-status: 0 + stdout: + - "1" +[% ELSE -%] + exit-status: 1 + stdout: [] +[% END -%] diff --git a/templates/510_init-daemons-ngcp.yaml.tt2 b/templates/510_init-daemons-ngcp.yaml.tt2 index e94a2b1..969aa25 100644 --- a/templates/510_init-daemons-ngcp.yaml.tt2 +++ b/templates/510_init-daemons-ngcp.yaml.tt2 @@ -129,4 +129,16 @@ service: ngcp-license-client.service: enabled: true running: true + [% END -%] + ngcp-rtcengine.service: + enabled: false + running: [% node_state == 'active' && rtcengine.enable == "yes" && general.ngcp_type != 'spce' ? 'true' : 'false' %] + + ngcp-comx-fileshare-service.service: + enabled: false + running: [% node_state == 'active' && fileshare.enable == "yes" && general.ngcp_type != 'spce' ? 'true' : 'false' %] + + janus.service: + enabled: false + running: [% node_state == 'active' && janus.enable == "yes" && general.ngcp_type != 'spce' ? 'true' : 'false' %]