Remove duplicates: 'IPv6 support disabled' unit tests
@@ -13029,77 +13029,6 @@ var _ = Describe("IPv6 support disabled", func() {
})
})
-var _ = Describe("[V2UpdateCluster] IPv6 support disabled", func() {
-
- const errorMsg = "IPv6 is not supported in this setup"
-
- var (
- bm *bareMetalInventory
- cfg Config
- db *gorm.DB
- ctx = context.Background()
- )
-
- BeforeEach(func() {
- Expect(envconfig.Process("test", &cfg)).ShouldNot(HaveOccurred())
- Expect(cfg.IPv6Support).Should(BeTrue())
- cfg.IPv6Support = false
- bm = createInventory(db, cfg)
- })
-
- AfterEach(func() {
- ctrl.Finish()
- })
-
- Context("Update cluster", func() {
-
- var params installer.V2UpdateClusterParams
-
- BeforeEach(func() {
- mockUsageReports()
- params = installer.V2UpdateClusterParams{
- ClusterUpdateParams: &models.V2ClusterUpdateParams{},
- }
- })
-
- It("IPv6 cluster network rejected", func() {
- params.ClusterUpdateParams.ClusterNetworks = []*models.ClusterNetwork{
- {Cidr: "2001:db8::/64"},
- }
- reply := bm.V2UpdateCluster(ctx, params)
- verifyApiErrorString(reply, http.StatusBadRequest, errorMsg)
- })
-
- It("IPv6 service network rejected", func() {
- params.ClusterUpdateParams.ServiceNetworks = []*models.ServiceNetwork{
- {Cidr: "2001:db8::/64"},
- }
- reply := bm.V2UpdateCluster(ctx, params)
- verifyApiErrorString(reply, http.StatusBadRequest, errorMsg)
- })
-
- It("IPv6 machine network rejected", func() {
- params.ClusterUpdateParams.MachineNetworks = []*models.MachineNetwork{
- {Cidr: "2001:db8::/64"},
- }
- reply := bm.V2UpdateCluster(ctx, params)
- verifyApiErrorString(reply, http.StatusBadRequest, errorMsg)
- })
-
- It("IPv6 API VIP rejected", func() {
- params.ClusterUpdateParams.APIVip = swag.String("2003:db8::a")
- reply := bm.V2UpdateCluster(ctx, params)
- verifyApiErrorString(reply, http.StatusBadRequest, errorMsg)
- })
-
- It("IPv6 ingress VIP rejected", func() {
- params.ClusterUpdateParams.IngressVip = swag.String("2002:db8::1")
- reply := bm.V2UpdateCluster(ctx, params)
- verifyApiErrorString(reply, http.StatusBadRequest, errorMsg)
- })
- })
-})
-
var _ = Describe("Dual-stack cluster", func() {
var (
