Skip to content

Commit

Permalink
add log after driver pod is restarted
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Mar 30, 2023
1 parent fd32cab commit 54a2d2f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 7 additions & 1 deletion test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,13 +168,19 @@ var _ = ginkgo.SynchronizedAfterSuite(func() {},
}
execTestCmd([]testCmd{createExampleDeployment})

blobLog := testCmd{
command: "bash",
args: []string{"test/utils/blob_log.sh"},
startLog: "==============start blob log(after suite)===================",
endLog: "==============end blob log(after suite)===================",
}
e2eTeardown := testCmd{
command: "make",
args: []string{"e2e-teardown"},
startLog: "Uninstalling Azure Blob Storage CSI driver...",
endLog: "Azure Blob Storage CSI driver uninstalled",
}
execTestCmd([]testCmd{e2eTeardown})
execTestCmd([]testCmd{blobLog, e2eTeardown})

// install/uninstall CSI Driver deployment scripts test
installDriver := testCmd{
Expand Down
4 changes: 2 additions & 2 deletions test/utils/restart_driver_daemonset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@

set -euo pipefail

echo "*********************blob log (before restart)***********************"
echo "*****************start blob log (before restart)***********************"
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/blob_log.sh
echo "*********************************************************************"
echo "*****************end blob log (before restart)*********************"

kubectl rollout restart ds csi-blob-node -n kube-system

Expand Down

0 comments on commit 54a2d2f

Please sign in to comment.