diff options
author | 2020-12-09 08:20:25 +0100 | |
---|---|---|
committer | 2020-12-09 08:22:17 +0100 | |
commit | 1ba8bf7a96b1178e82bb5f51d23f4e32837be9ed (patch) | |
tree | 5eb73f6f70e552f0823a57374f670dc7468f7428 /ete-k8s.sh | |
parent | 85b5af5058bbda19b557add185d917f60c2188ee (diff) |
Remove code on master branch
As code has been moved to main repo, we remove the code here and add a
README explaining
Issue-ID: OOM-2513
Signed-off-by: Sylvain Desbureaux <sylvain.desbureaux@orange.com>
Change-Id: I80693e7f5c6c18bece7088eb29e2d17566f3993f
Diffstat (limited to 'ete-k8s.sh')
-rwxr-xr-x | ete-k8s.sh | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/ete-k8s.sh b/ete-k8s.sh deleted file mode 100755 index e3d05df..0000000 --- a/ete-k8s.sh +++ /dev/null @@ -1,106 +0,0 @@ -# Copyright © 2018 Amdocs, Bell Canada -# -# 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. - -#!/bin/bash - -# -# Run the testsuite for the passed tag. Valid tags are listed in usage help -# Please clean up logs when you are done... -# -if [ "$1" == "" ] || [ "$2" == "" ]; then - echo "Usage: ete-k8s.sh [namespace] [tag] [execscript]" - echo "" - echo " List of test case tags (filename for intent: tag)" - echo "" - echo " cds.robot: cds" - echo "" - echo " clamp.robot: clamp" - echo "" - echo " demo.robot: InitDemo, InitCustomer, APPCCDTPreloadDemo, APPCMountPointDemo, DistributeDemoVFWDT, DistributeVFWNG," - echo " InitDistribution, PreloadDemo, deleteVNF, instantiateDemoVFWCL, instantiateVFW, " - echo " instantiateVFWCL, instantiateVFWDT, instantiateVFWCLDN" - echo "" - echo " health-check.robot: health, core, small, medium, 3rdparty, api, datarouter, externalapi, health-aaf, health-aai, health-appc," - echo " health-clamp, health-cli, health-dcae, health-dmaap, health-log, health-modeling, health-msb," - echo " health-multicloud, health-oof, health-policy, health-pomba, health-portal, health-sdc, health-sdnc," - echo " health-so, health-uui, health-vfc, health-vid, health-vnfsdk, healthdist, healthlogin, healthmr," - echo " healthportalapp, multicloud, oom" - echo "" - echo " hvves.robot: HVVES, ete" - echo "" - echo " model-distribution-vcpe.robot: distributevCPEResCust" - echo "" - echo " model-distribution.robot: distribute, distributeVFWDT, distributeVLB" - echo "" - echo " oof-*.robot: cmso, has, homing" - echo "" - echo " pnf-registration.robot: ete, pnf_registrate" - echo "" - echo " post-install-tests.robot: dmaapacl, postinstall" - echo "" - echo " sdc-dcae-d.robot: sdc-dcae-d" - echo "" - echo " security.robot: security" - echo "" - echo " update_onap_page.robot: UpdateWebPage" - echo "" - echo " vnf-orchestration-direct-so.robot: instantiateVFWdirectso" - echo "" - echo " vnf-orchestration.robot: instantiate, instantiateNoDelete, stability72hr" - echo "" - echo " [execscript] - optional parameter to execute user custom scripts located in scripts/etescript directory" - exit -fi - -set -x - -export NAMESPACE="$1" - -POD=$(kubectl --namespace $NAMESPACE get pods | sed 's/ .*//'| grep robot) - -TAGS="-i $2" - -DIR=$(dirname "$0") -SCRIPTDIR=scripts/etescript - -ETEHOME=/var/opt/ONAP - -if [[ "${!#}" == "execscript" ]]; then - for script in $(ls -1 "$DIR/$SCRIPTDIR"); do - [ -f "$DIR/$SCRIPTDIR/$script" ] && [ -x "$DIR/$SCRIPTDIR/$script" ] && source "$DIR/$SCRIPTDIR/$script" - done -fi - -export GLOBAL_BUILD_NUMBER=$(kubectl --namespace $NAMESPACE exec ${POD} -- bash -c "ls -1q /share/logs/ | wc -l") -OUTPUT_FOLDER=$(printf %04d $GLOBAL_BUILD_NUMBER)_ete_$2 -DISPLAY_NUM=$(($GLOBAL_BUILD_NUMBER + 90)) - -VARIABLEFILES="-V /share/config/robot_properties.py" -VARIABLES="-v GLOBAL_BUILD_NUMBER:$$" - -case $2 in - security) - if [ -z "$NODEPORTS_FILE" ]; then - echo "Security tests require gathering additional information on ONAP cluster." - echo "It is unavailable from within Robot pod." - echo "" - echo "Rerun command with \"execscript\" argument, e.g." - echo "$ $0 onap security execscript" - exit - fi - VARIABLES="${VARIABLES} -v ACTUAL_NODEPORTS_FILE:${NODEPORTS_FILE}" - ;; -esac - -kubectl --namespace $NAMESPACE exec ${POD} -- ${ETEHOME}/runTags.sh ${VARIABLEFILES} ${VARIABLES} -d /share/logs/${OUTPUT_FOLDER} ${TAGS} --display $DISPLAY_NUM |