Skip to content

Commit

Permalink
Skip snapshot and restore test because test fix (kubernetes-sigs#972)…
Browse files Browse the repository at this point in the history
… is not backported to 1.8-. The fix is only in 1.9+.
  • Loading branch information
amacaskill committed Apr 14, 2023
1 parent c9ec498 commit f06e16e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/k8s-integration/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -581,6 +581,11 @@ func generateGCETestSkip(testParams *testParameters) string {
skipString = skipString + "|\\[LinuxOnly\\]"
}

// Snapshot and restore test fixes were introduced after 1.26.
if v.LessThan(apimachineryversion.MustParseSemantic("1.26.0")) {
skipString = skipString + "|should.provision.correct.filesystem.size.when.restoring.snapshot.to.larger.size.pvc"
}

return skipString
}

Expand All @@ -598,6 +603,11 @@ func generateGKETestSkip(testParams *testParameters) string {
skipString = skipString + "|pvc.data.source"
}

// Snapshot and restore test fixes were introduced after 1.26.
if curVer.lessThan(mustParseVersion("1.26.0")) || (nodeVer != nil && nodeVer.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
Expand Down

0 comments on commit f06e16e

Please sign in to comment.