Skip to content

Commit

Permalink
e2e for dynamic pv provisioning
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey1330 committed Mar 19, 2024
1 parent 3c59c48 commit 350878b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions deploy/kubernetes/config-map.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data:
config.json: |-
{
"simplybk": {
"uuid": "7a1b741b-7275-4a55-b0ea-14c17aeb3ffd",
"ip": "34.201.16.91"
"uuid": "6826ef61-ad95-45df-b301-c8992a589e50",
"ip": "18.207.106.129"
}
}
2 changes: 1 addition & 1 deletion deploy/kubernetes/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ stringData:
secret.json: |-
{
"simplybk": {
"secret": "IsKti33sZra9I662sybO"
"secret": "vkhYJTayEt4k12ihOTQU"
}
}
4 changes: 2 additions & 2 deletions e2e/pod_restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ var _ = ginkgo.Describe("SPDKCSI-DRIVER-RESTART", func() {
}
})
ginkgo.By("restart csi driver", func() {
rolloutNodeServer()
rolloutControllerServer()
//rolloutNodeServer()

Check failure on line 60 in e2e/pod_restart.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

commentFormatting: put a space between `//` and comment text (gocritic)
//rolloutControllerServer()
err := waitForNodeServerReady(f.ClientSet, 3*time.Minute)
if err != nil {
ginkgo.Fail(err.Error())
Expand Down
4 changes: 2 additions & 2 deletions e2e/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func deletePVCAndTestPod(podName string) {

// rolloutNodeServer Use the delete corresponding pod to simulate a rollout. In this way, when the function returns,
// the state of the NodeServer has definitely changed, which is convenient for subsequent state detection.
func rolloutNodeServer() {
/* func rolloutNodeServer() {
_, err := framework.RunKubectl(nameSpace, "delete", "pod", "-l", "app="+nodeDsName)
if err != nil {
e2elog.Logf("failed to rollout node server: %s", err)
Expand All @@ -209,7 +209,7 @@ func rolloutControllerServer() {
if err != nil {
e2elog.Logf("failed to rollout controller server: %s", err)
}
}
} */

func waitForControllerReady(c kubernetes.Interface, timeout time.Duration) error { //nolint:unparam //Keep timeout parameter, it may be used in the future

Check failure on line 214 in e2e/utils.go

View workflow job for this annotation

GitHub Actions / Analyze (go)

directive `//nolint:unparam //Keep timeout parameter, it may be used in the future` is unused for linter "unparam" (nolintlint)
err := wait.PollImmediate(3*time.Second, timeout, func() (bool, error) {
Expand Down

0 comments on commit 350878b

Please sign in to comment.