aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2021-03-26 06:34:38 +0000
committerGerrit Code Review <gerrit@onap.org>2021-03-26 06:34:38 +0000
commit498541413a57e175e4cd695a03c3035a1be10512 (patch)
treef29985a842141b15e0d4f4a3893b101068e7f283 /scripts
parentb8609ad11853ef84d0da966cb65690a2c5585d13 (diff)
parent26029b1d11455c455d16abd3e0e7c59ff85fdb6e (diff)
Merge "Add healthcheck test for Netconf Server"
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