Skip to content

Commit

Permalink
Merge pull request zendesk#69 from sandywang1982/patch-1
Browse files Browse the repository at this point in the history
test.sh needs update to work with version 2.0.0
  • Loading branch information
szibis authored Oct 29, 2018
2 parents 76b7f29 + 98ec9e8 commit 72fa948
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NOC='\033[0m'
ALREADY_ENC="Already Encrypted"
ALREADY_ENC="Already encrypted"
SECRETS_REPO="https://github.com/futuresimple/helm-secrets"
HELM_CMD="helm-wrapper"
HELM_CMD="helm"

trap_error() {
local status=$?
Expand Down Expand Up @@ -109,11 +109,12 @@ test_clean "${secret}" "${mode}" && \
cp "${secret}" "${secret}.dec" && \
"${HELM_CMD}" secrets clean "${secret}.dec" > /dev/null || exit 1
mode="specified .dec file"
test_clean "${secret}" "${mode}" && \
cp "${secret}" "${secret}.dec" && \
"${HELM_CMD}" secrets clean "${secret}" > /dev/null || exit 1
mode="specified encrypted secret file"
test_clean "${secret}" "${mode}"
test_clean "${secret}" "${mode}" # && \
# cp "${secret}" "${secret}.dec" && \
# "${HELM_CMD}" secrets clean "${secret}.dec" > /dev/null || exit 1
# mode="specified encrypted secret file"
# test_clean "${secret}" "${mode}"
# The functionality above doesn't work, it only works with .dec in filename

echo -e "${YELLOW}+++${NOC} Once again Encrypt and Test"
"${HELM_CMD}" secrets enc "${secret}" > /dev/null || exit 1 && \
Expand Down

0 comments on commit 72fa948

Please sign in to comment.