From 26029b1d11455c455d16abd3e0e7c59ff85fdb6e Mon Sep 17 00:00:00 2001 From: Bartosz Gardziejewski Date: Thu, 25 Mar 2021 11:36:30 +0100 Subject: Add healthcheck test for Netconf Server Signed-off-by: Bartosz Gardziejewski Change-Id: I656dfb4b88f65ff37c1f8253c686163a499b9674 Issue-ID: INT-1869 --- .../nfsimulator/netconf-server/docker-compose.yml | 13 +++++++++++++ .../netconf-server/start-netconf-server.sh | 19 +++++++++++++++++++ .../nfsimulator/netconf-server/stop-netconf-server.sh | 18 ++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 scripts/integration/nfsimulator/netconf-server/docker-compose.yml create mode 100755 scripts/integration/nfsimulator/netconf-server/start-netconf-server.sh create mode 100755 scripts/integration/nfsimulator/netconf-server/stop-netconf-server.sh (limited to 'scripts') diff --git a/scripts/integration/nfsimulator/netconf-server/docker-compose.yml b/scripts/integration/nfsimulator/netconf-server/docker-compose.yml new file mode 100644 index 00000000..bf43ff55 --- /dev/null +++ b/scripts/integration/nfsimulator/netconf-server/docker-compose.yml @@ -0,0 +1,13 @@ +version: '3' + +services: + + netconf-server: + container_name: netconf-server + image: onap/org.onap.integration.nfsimulator.netconfserver:latest + environment: + - ENABLE_TLS=true + ports: + - "830:830" + - "6513:6513" + - "6555:6555" diff --git a/scripts/integration/nfsimulator/netconf-server/start-netconf-server.sh b/scripts/integration/nfsimulator/netconf-server/start-netconf-server.sh new file mode 100755 index 00000000..8fadcd1a --- /dev/null +++ b/scripts/integration/nfsimulator/netconf-server/start-netconf-server.sh @@ -0,0 +1,19 @@ +#!/bin/bash +# +# Copyright (C) 2021 Nokia. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + + +echo "Starting netconf server" +docker-compose -f ${WORKSPACE}/scripts/integration/nfsimulator/netconf-server/docker-compose.yml up -d diff --git a/scripts/integration/nfsimulator/netconf-server/stop-netconf-server.sh b/scripts/integration/nfsimulator/netconf-server/stop-netconf-server.sh new file mode 100755 index 00000000..01d38509 --- /dev/null +++ b/scripts/integration/nfsimulator/netconf-server/stop-netconf-server.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# +# Copyright (C) 2021 Nokia. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +echo "Stopping netconf server" +docker-compose -f ${WORKSPACE}/scripts/integration/nfsimulator/netconf-server/docker-compose.yml down -- cgit 1.2.3-korg