@@ -65,12 +65,6 @@ var _ = AfterSuite(func() {
65
65
})
66
66
67
67
var _ = Describe ("Operator Plugin" , Label ("e2e" , "pr" ), func () {
68
- AfterEach (func () {
69
- if CurrentSpecReport ().Failed () {
70
- factory .DumpStateHaCluster (fdbCluster )
71
- }
72
- })
73
-
74
68
When ("getting the plugin version from the operator pod" , func () {
75
69
It ("should print the version" , func () {
76
70
// Pick one operator pod and execute the kubectl version command to ensure that kubectl-fdb is present
@@ -141,8 +135,9 @@ var _ = Describe("Operator Plugin", Label("e2e", "pr"), func() {
141
135
AfterEach (func () {
142
136
log .Println ("Recreate cluster" )
143
137
// Delete the broken cluster.
144
- fdbCluster . Delete ()
138
+ factory . Shutdown ()
145
139
// Recreate the cluster to make sure the next tests can proceed
140
+ factory = fixtures .CreateFactory (testOptions )
146
141
fdbCluster = factory .CreateFdbHaCluster (clusterConfig , clusterOptions ... )
147
142
})
148
143
@@ -185,6 +180,10 @@ var _ = Describe("Operator Plugin", Label("e2e", "pr"), func() {
185
180
}
186
181
Expect (errGroup .Wait ()).NotTo (HaveOccurred ())
187
182
183
+ for _ , cluster := range fdbCluster .GetAllClusters () {
184
+ Expect (cluster .GetCluster ().UseDNSInClusterFile ()).To (BeTrue ())
185
+ }
186
+
188
187
// This tests is a destructive test where the cluster will stop working for some period.
189
188
primary := fdbCluster .GetPrimary ()
190
189
primary .SetSkipReconciliation (true )
@@ -239,8 +238,9 @@ var _ = Describe("Operator Plugin", Label("e2e", "pr"), func() {
239
238
AfterEach (func () {
240
239
log .Println ("Recreate cluster" )
241
240
// Delete the broken cluster.
242
- fdbCluster . Delete ()
241
+ factory . Shutdown ()
243
242
// Recreate the cluster to make sure the next tests can proceed
243
+ factory = fixtures .CreateFactory (testOptions )
244
244
fdbCluster = factory .CreateFdbHaCluster (clusterConfig , clusterOptions ... )
245
245
})
246
246
0 commit comments