aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-03-25 11:36:30 +0100
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-03-25 14:57:56 +0100
commit26029b1d11455c455d16abd3e0e7c59ff85fdb6e (patch)
treec5be24700932bb4b7e69b588693fcf1b9a03bed1 /scripts
parent1acefd84302a7ffa1981a270a7a8a2f17f71c271 (diff)
Add healthcheck test for Netconf Server
Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Change-Id: I656dfb4b88f65ff37c1f8253c686163a499b9674 Issue-ID: INT-1869
Diffstat (limited to 'scripts')
-rw-r--r--scripts/integration/nfsimulator/netconf-server/docker-compose.yml13
-rwxr-xr-xscripts/integration/nfsimulator/netconf-server/start-netconf-server.sh19
-rwxr-xr-xscripts/integration/nfsimulator/netconf-server/stop-netconf-server.sh18
3 files changed, 50 insertions, 0 deletions
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