Skip to content

Commit

Permalink
Nit
Browse files Browse the repository at this point in the history
  • Loading branch information
seanzatzdev-amazon committed Aug 28, 2023
1 parent ff40256 commit 692f863
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,9 +394,12 @@ var _ = ginkgo.Describe("[efs-csi] EFS CSI", func() {
framework.ExpectNoError(err, "Fetching efs-csi-driver node pods")
framework.ExpectNotEqual(len(nodePods.Items), 0, "Get node pods count")
nodePodName := nodePods.Items[0].Name
cmd := fmt.Sprintf("[ -d \"/efs/dynamic/%s/foo\" ] && echo \"/efs/dynamic/%s/foo\"", pvc.Name, pvc.Name)

actualDir := framework.RunKubectlOrDie("kube-system", "exec", nodePodName, "--", "cd /efs/; cd dynamic; cd", pvc.Name, "; cd foo; pwd")
expectedDir := "/efs/dynamic/" + pvc.Name + "/foo"
actualDir, err := framework.RunKubectl(f.Namespace.Name, "exec", nodePodName, "--", "/bin/sh", "-c", cmd)
framework.ExpectNoError(err)

expectedDir := fmt.Sprintf("/efs/dynamic/%s/foo", pvc.Name)
if actualDir != expectedDir {
ginkgo.Fail("Subpath pattern directory structure does not match expected")
}
Expand Down

0 comments on commit 692f863

Please sign in to comment.