@@ -16,7 +16,6 @@ import (
1616 . "github.com/onsi/ginkgo/v2"
1717 . "github.com/onsi/gomega"
1818 openshiftRouteV1 "github.com/openshift/api/route/v1"
19- "github.com/stackrox/acs-fleet-manager/e2e/dns"
2019 "github.com/stackrox/acs-fleet-manager/e2e/testutil"
2120 "github.com/stackrox/acs-fleet-manager/fleetshard/pkg/k8s"
2221 "github.com/stackrox/acs-fleet-manager/internal/central/constants"
@@ -200,30 +199,6 @@ var _ = Describe("Central", Ordered, func() {
200199 Should (Succeed ())
201200 })
202201
203- It ("should have created AWS Route53 records" , func () {
204- testutil .SkipIf (! dnsEnabled , testutil .SkipDNSMsg )
205-
206- var centralRequest public.CentralRequest
207- Expect (testutil .GetCentralRequest (ctx , client , centralRequestID , & centralRequest )).
208- To (Succeed ())
209-
210- var reencryptIngress openshiftRouteV1.RouteIngress
211- Eventually (testutil .AssertReencryptIngressRouteExist (context .Background (), routeService , centralRequest , & reencryptIngress )).
212- WithTimeout (waitTimeout ).
213- WithPolling (defaultPolling ).
214- Should (Succeed ())
215-
216- dnsRecordsLoader := dns .NewRecordsLoader (route53Client , centralRequest )
217-
218- Eventually (dnsRecordsLoader .LoadDNSRecords ).
219- WithTimeout (waitTimeout ).
220- WithPolling (defaultPolling ).
221- Should (HaveLen (len (dnsRecordsLoader .CentralDomainNames )), "Started at %s" , time .Now ())
222-
223- recordSets := dnsRecordsLoader .LastResult
224- testutil .AssertDNSMatchesRouter (dnsRecordsLoader .CentralDomainNames , recordSets , & reencryptIngress )
225- })
226-
227202 It ("should backup important secrets in FM database" , func () {
228203 expectedSecrets := k8s .NewSecretBackup (k8sClient , false ).GetWatchedSecrets ()
229204 Eventually (assertStoredSecrets (ctx , privateAPI , centralRequestID , expectedSecrets )).
@@ -348,18 +323,6 @@ var _ = Describe("Central", Ordered, func() {
348323 Should (Succeed ())
349324 })
350325
351- It ("should delete external DNS entries" , func () {
352- testutil .SkipIf (! dnsEnabled , testutil .SkipDNSMsg )
353- var centralRequest public.CentralRequest
354- Expect (testutil .GetCentralRequest (ctx , client , centralRequestID , & centralRequest )).
355- To (Succeed ())
356- dnsRecordsLoader := dns .NewRecordsLoader (route53Client , centralRequest )
357- Eventually (dnsRecordsLoader .LoadDNSRecords ).
358- WithTimeout (waitTimeout ).
359- WithPolling (defaultPolling ).
360- Should (BeEmpty (), "Started at %s" , time .Now ())
361- })
362-
363326 AfterAll (func () {
364327 Expect (restoreDefaultGitopsConfig ()).To (Succeed ())
365328 })
@@ -428,18 +391,6 @@ var _ = Describe("Central", Ordered, func() {
428391 Should (Succeed ())
429392 })
430393
431- It ("should delete external DNS entries" , func () {
432- testutil .SkipIf (! dnsEnabled , testutil .SkipDNSMsg )
433- var centralRequest public.CentralRequest
434- Expect (testutil .GetCentralRequest (ctx , client , centralRequestID , & centralRequest )).
435- To (Succeed ())
436- dnsRecordsLoader := dns .NewRecordsLoader (route53Client , centralRequest )
437- Eventually (dnsRecordsLoader .LoadDNSRecords ).
438- WithTimeout (waitTimeout ).
439- WithPolling (defaultPolling ).
440- Should (BeEmpty (), "Started at %s" , time .Now ())
441- })
442-
443394 It ("should be restorable" , func () {
444395 By ("calling the admin restore API" , func () {
445396 res , err := adminAPI .RestoreCentral (ctx , centralRequestID )
@@ -468,17 +419,6 @@ var _ = Describe("Central", Ordered, func() {
468419 Should (Succeed ())
469420 })
470421
471- By ("deleting external DNS entries" , func () {
472- testutil .SkipIf (! dnsEnabled , testutil .SkipDNSMsg )
473- var centralRequest public.CentralRequest
474- Expect (testutil .GetCentralRequest (ctx , client , centralRequestID , & centralRequest )).
475- To (Succeed ())
476- dnsRecordsLoader := dns .NewRecordsLoader (route53Client , centralRequest )
477- Eventually (dnsRecordsLoader .LoadDNSRecords ).
478- WithTimeout (waitTimeout ).
479- WithPolling (defaultPolling ).
480- Should (BeEmpty (), "Started at %s" , time .Now ())
481- })
482422 })
483423
484424 })
@@ -551,14 +491,6 @@ var _ = Describe("Central", Ordered, func() {
551491 Expect (k8sClient .Delete (ctx , namespace )).ToNot (HaveOccurred ())
552492 })
553493
554- It ("should delete external DNS entries" , func () {
555- testutil .SkipIf (! dnsEnabled , testutil .SkipDNSMsg )
556- dnsRecordsLoader := dns .NewRecordsLoader (route53Client , readyCentralRequest )
557- Eventually (dnsRecordsLoader .LoadDNSRecords ).
558- WithTimeout (waitTimeout ).
559- WithPolling (defaultPolling ).
560- Should (BeEmpty (), "Started at %s" , time .Now ())
561- })
562494 })
563495})
564496
0 commit comments