aboutsummaryrefslogtreecommitdiffstats
path: root/csit/plans
diff options
context:
space:
mode:
Diffstat (limited to 'csit/plans')
-rwxr-xr-xcsit/plans/sdnr/setup.sh29
-rwxr-xr-xcsit/plans/sdnr/teardown.sh22
-rw-r--r--csit/plans/sdnr/testdata/localhost.py49
-rw-r--r--csit/plans/sdnr/testdata/nts-networkfunctions.csv4
-rw-r--r--csit/plans/sdnr/testplan.txt5
5 files changed, 109 insertions, 0 deletions
diff --git a/csit/plans/sdnr/setup.sh b/csit/plans/sdnr/setup.sh
new file mode 100755
index 00000000..08babea5
--- /dev/null
+++ b/csit/plans/sdnr/setup.sh
@@ -0,0 +1,29 @@
+#!/bin/bash
+#
+# Copyright 2016-2017 Huawei Technologies Co., Ltd.
+#
+# 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.
+#
+# Modifications copyright (c) 2017 AT&T Intellectual Property
+# Modifications copyright (c) 2021 highstreet technologies GmbH Property
+#
+
+source ${WORKSPACE}/scripts/sdnr/sdnr-launch.sh
+onap_dependent_components_launch
+nts_networkfunctions_launch ${WORKSPACE}/plans/sdnr/testdata/nts-networkfunctions.csv
+sdnr_launch
+
+#Pass any variables required by Robot test suites in ROBOT_VARIABLES
+ROBOT_VARIABLES="--variablefile=${WORKSPACE}/plans/sdnr/testdata/localhost.py"
+ROBOT_IMAGE="hightec/sdnc-test-lib:latest"
+
diff --git a/csit/plans/sdnr/teardown.sh b/csit/plans/sdnr/teardown.sh
new file mode 100755
index 00000000..005f6f31
--- /dev/null
+++ b/csit/plans/sdnr/teardown.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+#
+# Copyright 2016-2017 Huawei Technologies Co., Ltd.
+#
+# 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.
+#
+# Modifications copyright (c) 2017 AT&T Intellectual Property
+# Modifications copyright (c) 2021 highstreet technologies GmbH Property
+#
+
+source ${WORKSPACE}/scripts/sdnr/sdnr-teardown.sh
+sdnr_teardown
diff --git a/csit/plans/sdnr/testdata/localhost.py b/csit/plans/sdnr/testdata/localhost.py
new file mode 100644
index 00000000..0de4bac5
--- /dev/null
+++ b/csit/plans/sdnr/testdata/localhost.py
@@ -0,0 +1,49 @@
+#!python
+
+# This file describes test all paramters for a specific test environment and system under test.
+# SDNR Custom keywords and test suites use this file to be independent
+# This file es created once for a test system
+# in robot commandline pass the file with '--variablefile <my_environment>.py'
+
+## Access SDNR cluster
+SDNR_PROTOCOL = "http://"
+SDNR_HOST = "127.0.0.1"
+SDNR_PORT = "8181"
+SDNR_USER = "admin"
+SDNR_PASSWORD = "Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U"
+
+# for odlux gui testing
+WEBDRIVER_PATH = "/usr/local/bin/chromedriver"
+
+# Access to elastic search SDNRDB
+SDNRDB = {'PROTOCOL': 'http', 'IP': '127.0.0.1', 'PORT': '8181', 'USE_API_GATEWAY': True, 'USE_SSL': False,
+ 'VERIFY_CERTS': False}
+# elastic DB to store statistic datas
+ELASTIC_LOG_DB = SDNRDB
+RESTCONF_TIMEOUT = '90 s'
+# Restconf response time longer than VALID_RESPONSE_TIME in s will be notified as warning in the robot logs
+VALID_RESPONSE_TIME = 5
+
+
+VESCOLLECTOR = {"SCHEME": "https", "IP": "172.40.0.1", "PORT": 8443, "AUTHMETHOD": "basic-auth", "USERNAME": "sample1",
+ "PASSWORD": "sample1"}
+
+NTS_SSH_CONNECTIONS = 10
+NTS_TLS_CONNECTIONS = 10
+# ssh settings for karaf-shell
+# list of default log topics, short name (defined in ...) or long name
+KARAF_CONSOLE = {'KARAF_USER': "karaf", 'KARAF_PASSWORD': "karaf", 'KARAF_LOG_LEVEL': "DEFAULT",
+ 'KARAF_LOGGER_LIST': ['netconf', 'wtfeatures'],
+ 'HOST_LIST': [{'KARAF_HOST': "127.0.0.1", 'KARAF_PORT': 8101}
+ ]}
+# define log level used by default
+KARAF_LOG_LEVEL = "DEFAULT"
+# save karaf logs after test execution
+KARAF_GET_LOG = True
+KARAF_LOG_FILE_PATH = '/opt/opendaylight/data/log/'
+# KARAF_LOG_FILE_PATH = '/var/log/onap/sdnc/karaf.log'
+# write useful statistics in background
+WRITE_STATISTICS_BACKGROUND = False
+WRITE_STATISTICS_BACKGROUND_INTERVAL = 5
+
+GLOBAL_SUITE_SETUP_CONFIG = {'setup_ssh_lib': True}
diff --git a/csit/plans/sdnr/testdata/nts-networkfunctions.csv b/csit/plans/sdnr/testdata/nts-networkfunctions.csv
new file mode 100644
index 00000000..3a9219aa
--- /dev/null
+++ b/csit/plans/sdnr/testdata/nts-networkfunctions.csv
@@ -0,0 +1,4 @@
+NAME,NTS_NF_DOCKER_REPOSITORY,NTS_NF_IMAGE_NAME,NTS_NF_IMAGE_TAG,NTSFUNC-IP,NTS_HOST_NETCONF_SSH_BASE_PORT,NTS_HOST_NETCONF_TLS_BASE_PORT,NTS_NF_SSH_CONNECTIONS,NTS_NF_TLS_CONNECTIONS
+ONF-CORE-1-4,docker.io/hightec/,nts-ng-onf-core-1-4,1.3.1,172.40.0.31,31000,31500,1,1
+O-RAN-FH,docker.io/hightec/,nts-ng-o-ran-fh,1.3.1,172.40.0.40,40000,40500,1,1
+X-RAN,docker.io/hightec/,nts-ng-x-ran,1.3.1,172.40.0.42,42000,42500,1,1
diff --git a/csit/plans/sdnr/testplan.txt b/csit/plans/sdnr/testplan.txt
new file mode 100644
index 00000000..24966d0c
--- /dev/null
+++ b/csit/plans/sdnr/testplan.txt
@@ -0,0 +1,5 @@
+# Test suites are relative paths under [integration/csit.git]/tests/.
+# Place the suites in run order.
+#echo "Successfully triggered the Test plan"
+sdnr/healthcheck
+sdnr/functional