From 181070f74c056828ff293dfbe692590543703a93 Mon Sep 17 00:00:00 2001 From: maximesson Date: Fri, 7 Aug 2020 14:18:32 +0200 Subject: PLaceholder for CSIT Change-Id: I7f0ef4ed815c39abaf1c231cfba3c0dad226094e Issue-ID: CCSDK-2491 Signed-off-by: maximesson --- plans/ccsdk/oran/functionality1/setup.sh | 28 +++++++++++++ plans/ccsdk/oran/functionality1/teardown.sh | 20 ++++++++++ plans/ccsdk/oran/functionality1/testplan.txt | 5 +++ scripts/ccsdk/oran/mock-hello.sh | 29 ++++++++++++++ tests/ccsdk/oran/suite1/__init__.robot | 2 + tests/ccsdk/oran/suite1/test1.robot | 30 ++++++++++++++ tests/ccsdk/oran/suite2/__init__.robot | 2 + tests/ccsdk/oran/suite2/test1.robot | 30 ++++++++++++++ tests/ccsdk/oran/vCPE/__init__.robot | 2 + tests/ccsdk/oran/vCPE/test1.robot | 60 ++++++++++++++++++++++++++++ 10 files changed, 208 insertions(+) create mode 100755 plans/ccsdk/oran/functionality1/setup.sh create mode 100755 plans/ccsdk/oran/functionality1/teardown.sh create mode 100644 plans/ccsdk/oran/functionality1/testplan.txt create mode 100755 scripts/ccsdk/oran/mock-hello.sh create mode 100644 tests/ccsdk/oran/suite1/__init__.robot create mode 100644 tests/ccsdk/oran/suite1/test1.robot create mode 100644 tests/ccsdk/oran/suite2/__init__.robot create mode 100644 tests/ccsdk/oran/suite2/test1.robot create mode 100644 tests/ccsdk/oran/vCPE/__init__.robot create mode 100644 tests/ccsdk/oran/vCPE/test1.robot diff --git a/plans/ccsdk/oran/functionality1/setup.sh b/plans/ccsdk/oran/functionality1/setup.sh new file mode 100755 index 00000000..f9fe0c55 --- /dev/null +++ b/plans/ccsdk/oran/functionality1/setup.sh @@ -0,0 +1,28 @@ +#!/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. +# +# Place the scripts in run order: +source ${WORKSPACE}/scripts/ccsdk/script1.sh + +# CLI internet speed test +curl -s https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest.py | python - + +# Test download a 100 MB file to check network speed to nexus.onap.org +wget -O /dev/null https://nexus.onap.org/content/repositories/releases/org/onap/appc/appc-dg-shared-installer/1.3.0/appc-dg-shared-installer-1.3.0.zip + +# Test download a 100 MB file to check network speed to nexus3.onap.org +wget -O /dev/null https://nexus3.onap.org/repository/docker.release/v2/-/blobs/sha256:04dc4b8163487bb1c40df1ce16f349b507c262d6e2f202baa2e66a42eb8c64a1 + diff --git a/plans/ccsdk/oran/functionality1/teardown.sh b/plans/ccsdk/oran/functionality1/teardown.sh new file mode 100755 index 00000000..acf2d097 --- /dev/null +++ b/plans/ccsdk/oran/functionality1/teardown.sh @@ -0,0 +1,20 @@ +#!/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. +# + +kill-instance.sh i-mock + + diff --git a/plans/ccsdk/oran/functionality1/testplan.txt b/plans/ccsdk/oran/functionality1/testplan.txt new file mode 100644 index 00000000..e9485b8c --- /dev/null +++ b/plans/ccsdk/oran/functionality1/testplan.txt @@ -0,0 +1,5 @@ +# Test suites are relative paths under [integration/csit.git]/tests/. +# Place the suites in run order. +# Temporary change to trigger verify job. +ccsdk/oran/suite1 +ccsdk/oran/suite2 diff --git a/scripts/ccsdk/oran/mock-hello.sh b/scripts/ccsdk/oran/mock-hello.sh new file mode 100755 index 00000000..a40f8bf9 --- /dev/null +++ b/scripts/ccsdk/oran/mock-hello.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. + +curl -v -X PUT -d @- http://$1:1080/expectation <