mirror of https://github.com/knative/client.git
Add check for PVC status in E2E tests (#1707)
* Add check for PVC status in E2E tests * Update test/e2e/service_test.go Co-authored-by: Gunjan Vyas <vyasgun20@gmail.com> Co-authored-by: Gunjan Vyas <vyasgun20@gmail.com>
This commit is contained in:
parent
452863fb54
commit
2f1eefe6f1
|
|
@ -240,11 +240,17 @@ func serviceCreateWithMount(r *test.KnRunResultCollector) {
|
|||
assert.NilError(r.T(), err)
|
||||
r.AssertNoError(out)
|
||||
|
||||
_, err = kubectl.Run("wait", "--for='jsonpath={..status.phase}'=Bound", "pvc/test-pvc", "--timeout=30s")
|
||||
if err == nil {
|
||||
r.T().Log("update service with a new pvc mount")
|
||||
out = r.KnTest().Kn().Run("service", "update", "test-svc", "--mount", "/mydir5=pvc:test-pvc")
|
||||
r.AssertNoError(out)
|
||||
|
||||
serviceDescribeMount(r, "test-svc", "/mydir", "key")
|
||||
} else {
|
||||
r.T().Log("PVC test skip due to unsatisfied PVC")
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func getVolumeMountWithHostPath(svc *servingv1.Service, hostPath string) *v1.VolumeMount {
|
||||
|
|
|
|||
Loading…
Reference in New Issue