From 875af95926a66f39bb1991fa4aaacc73c552646e Mon Sep 17 00:00:00 2001 From: Alexis MacAskill Date: Fri, 14 Apr 2023 15:11:26 +0000 Subject: [PATCH] Skip snapshot and restore test because test fix (https://github.com/kubernetes-sigs/gcp-compute-persistent-disk-csi-driver/pull/972) is not backported to 1.8-. The fix is only in 1.9+. --- test/k8s-integration/main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/k8s-integration/main.go b/test/k8s-integration/main.go index 477426315..8cc538d3c 100644 --- a/test/k8s-integration/main.go +++ b/test/k8s-integration/main.go @@ -589,6 +589,11 @@ func generateGKETestSkip(testParams *testParameters) string { skipString = skipString + "|pvc.data.source" } + // Snapshot and restore test fixes were introduced after 1.26 in PR#972. + if curVer.lessThan(mustParseVersion("1.26.0")) { + skipString = skipString + "|should.provision.correct.filesystem.size.when.restoring.snapshot.to.larger.size.pvc" + } + // "volumeMode should not mount / map unused volumes in a pod" tests a // (https://github.com/kubernetes/kubernetes/pull/81163) // bug-fix introduced in 1.16