Skip to content

Commit

Permalink
Merge pull request #537 from cyberark/fix-integ-debug
Browse files Browse the repository at this point in the history
Fix log level in integration tests
  • Loading branch information
szh authored Jul 20, 2023
2 parents 3d4feab + 8c3f48e commit 5c08b58
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -euxo pipefail
setup_helm_environment

pushd ../../
export DEBUG="false"
export LOG_LEVEL="debug"
export LABELS="app: test-helm"
export K8S_SECRETS="test-k8s-secret"
export CONJUR_ACCOUNT="cucumber"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pushd ../../
# Install HELM with a K8s Secret that does not exist
export K8S_SECRETS="K8S_SECRET-non-existent-secret"
export LABELS="app: test-helm"
export DEBUG="true"
export LOG_LEVEL="debug"

fill_helm_chart
helm install -f "../helm/secrets-provider/ci/test-values-$UNIQUE_TEST_ID.yaml" \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pushd ../../
export IMAGE_PULL_POLICY="IfNotPresent"
export TAG="latest"
export LABELS="app: test-helm"
export DEBUG="true"
export LOG_LEVEL="debug"
export K8S_SECRETS="test-k8s-secret"
export CONJUR_ACCOUNT="cucumber"
export CONJUR_APPLIANCE_URL="https://conjur-follower.${CONJUR_NAMESPACE_NAME}.svc.cluster.local"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ setup_helm_environment

pushd ../../
export LABELS="app: test-helm"
export DEBUG="true"
export LOG_LEVEL="debug"
# A parameter that will force a failure
export CONJUR_AUTHN_URL="https://conjur-follower.${CONJUR_NAMESPACE_NAME}.svc.cluster.local/api/authn-k8s/${AUTHENTICATOR_ID}xyz" # Configure retry mechanism with overriding defaults
export RETRY_COUNT_LIMIT="2"
Expand Down
2 changes: 1 addition & 1 deletion deploy/test/test_in_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ deployConjur() {
if [ $CONJUR_DEPLOYMENT = "oss" ]; then
cmd="$cmd --oss"
fi
runDockerCommand "cd ./kubernetes-conjur-deploy-$UNIQUE_TEST_ID && DEBUG=true $cmd"
runDockerCommand "cd ./kubernetes-conjur-deploy-$UNIQUE_TEST_ID && LOG_LEVEL=debug $cmd"
}

deployTest() {
Expand Down
2 changes: 1 addition & 1 deletion helm/secrets-provider/ci/test-values-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ labels: { {{ LABELS }} }
annotations: {}

environment:
debug: {{ DEBUG }}
logLevel: {{ LOG_LEVEL }}
# Array of Kubernetes Secret names that applications consume, and whose value is sourced in DAP/Conjur.
# For example, [k8s-secret1,k8s-secret2]
k8sSecrets: [{{ K8S_SECRETS }}]
Expand Down

0 comments on commit 5c08b58

Please sign in to comment.