Skip to content

Commit

Permalink
move verify examples to ginkgo Node container
Browse files Browse the repository at this point in the history
  • Loading branch information
cvvz committed Mar 31, 2023
1 parent 7ebd065 commit 0aa27dd
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
10 changes: 10 additions & 0 deletions test/e2e/dynamic_provisioning_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,16 @@ var _ = ginkgo.Describe("[blob-csi-e2e] Dynamic Provisioning", func() {
test.Run(cs, ns)
})

ginkgo.It("[blob.csi.azure.com] verify examples", func() {
createExampleDeployment := testCmd{
command: "bash",
args: []string{"hack/verify-examples.sh"},
startLog: "create example deployments",
endLog: "example deployments created",
}
execTestCmd([]testCmd{createExampleDeployment})
})

ginkgo.It("volume mount is still valid after driver restart [blob.csi.azure.com]", ginkgo.Serial, func() {
pod := testsuites.PodDetails{
Cmd: "echo 'hello world' >> /mnt/test-1/data && while true; do sleep 3600; done",
Expand Down
8 changes: 0 additions & 8 deletions test/e2e/suite_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,6 @@ var _ = ginkgo.SynchronizedBeforeSuite(func() []byte {

var _ = ginkgo.SynchronizedAfterSuite(func(ctx ginkgo.SpecContext) {},
func(ctx ginkgo.SpecContext) {
createExampleDeployment := testCmd{
command: "bash",
args: []string{"hack/verify-examples.sh"},
startLog: "create example deployments",
endLog: "example deployments created",
}
execTestCmd([]testCmd{createExampleDeployment})

blobLog := testCmd{
command: "bash",
args: []string{"test/utils/blob_log.sh"},
Expand Down
3 changes: 1 addition & 2 deletions test/utils/restart_driver_daemonset.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ source $DIR/blob_log.sh
echo "*****************end blob log (before restart)*********************"

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

sleep 10
kubectl rollout status daemonset/csi-blob-node -n kube-system --watch --timeout=10s

0 comments on commit 0aa27dd

Please sign in to comment.