File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed
Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff 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.
267268func (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.
271273func (f * Framework ) SkipVersionPriorTo (major , minor uint , reason string ) {
272274 ginkgo .GinkgoHelper ()
273275
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments