From 049d07dca0e4bcb0afd4e1e417a9899c1b88ff7f Mon Sep 17 00:00:00 2001 From: Azher2Ali <121898125+Azher2Ali@users.noreply.github.com> Date: Wed, 24 Jul 2024 14:05:08 -0400 Subject: [PATCH] Removing out dated tests which are no longer in service --- score-client/integration/bash_colors.sh | 29 -------------- score-client/integration/expected1 | 5 --- score-client/integration/expected2 | 5 --- score-client/integration/expected3 | 5 --- score-client/integration/expected4 | 5 --- score-client/integration/expected5 | 5 --- score-client/integration/header | 2 - score-client/integration/test.sh | 51 ------------------------- 8 files changed, 107 deletions(-) delete mode 100755 score-client/integration/bash_colors.sh delete mode 100644 score-client/integration/expected1 delete mode 100644 score-client/integration/expected2 delete mode 100644 score-client/integration/expected3 delete mode 100644 score-client/integration/expected4 delete mode 100644 score-client/integration/expected5 delete mode 100644 score-client/integration/header delete mode 100755 score-client/integration/test.sh diff --git a/score-client/integration/bash_colors.sh b/score-client/integration/bash_colors.sh deleted file mode 100755 index 931ca91f..00000000 --- a/score-client/integration/bash_colors.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env sh - -Bold="$(tput bold)" -Black="$(tput setaf 0)" -BlackBG="$(tput setab 0)" -DarkGrey="$(tput bold ; tput setaf 0)" -LightGrey="$(tput setaf 7)" -LightGreyBG="$(tput setab 7)" -White="$(tput bold ; tput setaf 7)" -Red="$(tput setaf 1)" -RedBG="$(tput setab 1)" -LightRed="$(tput bold ; tput setaf 1)" -Green="$(tput setaf 2)" -GreenBG="$(tput setab 2)" -LightGreen="$(tput bold ; tput setaf 2)" -Brown="$(tput setaf 3)" -BrownBG="$(tput setab 3)" -Yellow="$(tput bold ; tput setaf 3)" -Blue="$(tput setaf 4)" -BlueBG="$(tput setab 4)" -LightBlue="$(tput bold ; tput setaf 4)" -Purple="$(tput setaf 5)" -PurpleBG="$(tput setab 5)" -Pink="$(tput bold ; tput setaf 5)" -Cyan="$(tput setaf 6)" -CyanBG="$(tput setab 6)" -LightCyan="$(tput bold ; tput setaf 6)" -NC="$(tput sgr0)" # No Colo -Color_Off="$(tput sgr0)" # No Colo diff --git a/score-client/integration/expected1 b/score-client/integration/expected1 deleted file mode 100644 index 8dda4873..00000000 --- a/score-client/integration/expected1 +++ /dev/null @@ -1,5 +0,0 @@ - Active Configuration: - Profile: default - Storage URL: https://example.score.org - Metadata URL: https://example.song.org - Access Token: myToken diff --git a/score-client/integration/expected2 b/score-client/integration/expected2 deleted file mode 100644 index 15ed5481..00000000 --- a/score-client/integration/expected2 +++ /dev/null @@ -1,5 +0,0 @@ -Active Configuration: - Profile: default - Storage URL: https://something.org - Metadata URL: https://example.song.org - Access Token: myToken diff --git a/score-client/integration/expected3 b/score-client/integration/expected3 deleted file mode 100644 index debab2d7..00000000 --- a/score-client/integration/expected3 +++ /dev/null @@ -1,5 +0,0 @@ - Active Configuration: - Profile: collab - Storage URL: https://storage.cancercollaboratory.org - Metadata URL:https://song.cancercollaboratory.org - Access Token: myToken diff --git a/score-client/integration/expected4 b/score-client/integration/expected4 deleted file mode 100644 index c19d8a02..00000000 --- a/score-client/integration/expected4 +++ /dev/null @@ -1,5 +0,0 @@ - Active Configuration: - Profile: aws - Storage URL: https://virginia.cloud.icgc.org - Metadata URL:https://virginia.song.icgc.org - Access Token: myToken diff --git a/score-client/integration/expected5 b/score-client/integration/expected5 deleted file mode 100644 index 29bfdf6f..00000000 --- a/score-client/integration/expected5 +++ /dev/null @@ -1,5 +0,0 @@ - Active Configuration: - Profile: aws - Storage URL: https://something.org - Metadata URL: https://virginia.song.icgc.org - Access Token: myToken diff --git a/score-client/integration/header b/score-client/integration/header deleted file mode 100644 index 8c721073..00000000 --- a/score-client/integration/header +++ /dev/null @@ -1,2 +0,0 @@ ->ICGC Storage Client - diff --git a/score-client/integration/test.sh b/score-client/integration/test.sh deleted file mode 100755 index f4f4a05e..00000000 --- a/score-client/integration/test.sh +++ /dev/null @@ -1,51 +0,0 @@ -#!/bin/bash -#HERE=$(dirname $0) -#RUN_DIR=$HERE -#cd $HERE -RUN_DIR=$(pwd) -expected=$RUN_DIR/expected -result=$RUN_DIR/result -actual=$RUN_DIR/actual - -eval . $RUN_DIR/bash_colors.sh - -#set -x -cd ../target - -echo "Extracting client from tarball" -tar xf score-client-2.2.1-SNAPSHOT-dist.tar.gz - -cd score-client-2.2.1-SNAPSHOT -echo "Setting up configuration files" - -echo "metadata.url=https://example.song.org" >> ./conf/application.properties -echo "storage.url=https://example.score.org" >> ./conf/application.properties -echo "accessToken=myToken" >> ./conf/application.properties - -export PATH=$PATH:`pwd`/bin - -function validate { - local test - test=$1 - echo -n Test test${test}... - want=${expected}${test} - have=${result}${test} - config=${actual}${test} - grep -A 10 Configuration $have > $config - diff -w $config $want && echo "${Green}OK${NC}"|| echo "${Red}FAILED${NC}" -} - -score-client info >& ${result}1 -validate 1 - -STORAGE_URL=https://something.org score-client info >& ${result}2 -validate 2 - -score-client --profile collab info >& ${result}3 -validate 3 - -score-client --profile aws info >& ${result}4 -validate 4 - -STORAGE_URL=https://something.org score-client --profile aws info >& ${result}5 -validate 5