Skip to content

Commit 8d271eb

Browse files
authored
e2e: skip IPPool AddressSet test for versions < v1.15 (#5943)
Signed-off-by: zhangzujian <zhangzujian.7@gmail.com>
1 parent 3b7dd00 commit 8d271eb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

test/e2e/framework/framework.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,10 +264,12 @@ func (f *Framework) BeforeEach() {
264264
framework.TestContext.Host = ""
265265
}
266266

267+
// VersionPriorTo returns true if the Kube-OVN version is prior to the specified version.
267268
func (f *Framework) VersionPriorTo(major, minor uint) bool {
268269
return f.KubeOVNVersion.LessThan(versionutil.MustParseMajorMinor(fmt.Sprintf("%d.%d", major, minor)))
269270
}
270271

272+
// SkipVersionPriorTo skips the test if the Kube-OVN version is prior to the specified version.
271273
func (f *Framework) SkipVersionPriorTo(major, minor uint, reason string) {
272274
ginkgo.GinkgoHelper()
273275

test/e2e/kube-ovn/ipam/ipam.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -723,6 +723,8 @@ var _ = framework.Describe("[group:ipam]", func() {
723723
})
724724

725725
framework.ConformanceIt("should manage address set when EnableAddressSet is true", func() {
726+
f.SkipVersionPriorTo(1, 15, "This feature was introduced in v1.15")
727+
726728
ginkgo.By("Creating ippool " + ippoolName + " with EnableAddressSet enabled")
727729
// Use only IPv4 or IPv6 addresses to avoid mixed IP family issue in OVN address set
728730
cidrV4, cidrV6 := util.SplitStringIP(cidr)

0 commit comments

Comments
 (0)