Skip to content

Commit 77cf32a

Browse files
committed
add steps
1 parent 8a21795 commit 77cf32a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

internal/controllers/database/controller_test.go

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,16 +259,18 @@ var _ = Describe("Database controller medium tests", func() {
259259
return found
260260
}
261261

262+
By("Create test database")
262263
db := *testobjects.DefaultDatabase()
263-
264264
Expect(k8sClient.Create(ctx, &db)).Should(Succeed())
265265

266+
By("Check container args")
266267
sts := getDBSts(0)
267268
args := sts.Spec.Template.Spec.Containers[0].Args
268269

269270
Expect(args).To(ContainElements([]string{"--grpc-public-host"}))
270271
Expect(args).ToNot(ContainElements([]string{"--grpc-public-address-v6", "--grpc-public-address-v4", "--grpc-public-target-name-override"}))
271272

273+
By("Enabling ip discovery using ipv6")
272274
db = getDB()
273275
db.Spec.Service.GRPC.IPDiscovery = &v1alpha1.IPDiscovery{
274276
Enabled: true,
@@ -277,6 +279,7 @@ var _ = Describe("Database controller medium tests", func() {
277279

278280
Expect(k8sClient.Update(ctx, &db)).Should(Succeed())
279281

282+
By("Check container args")
280283
sts = getDBSts(sts.Generation)
281284
args = sts.Spec.Template.Spec.Containers[0].Args
282285

@@ -285,6 +288,7 @@ var _ = Describe("Database controller medium tests", func() {
285288

286289
db = getDB()
287290

291+
By("Enabling ip discovery using ipv4 and target name override")
288292
db.Spec.Service.GRPC.IPDiscovery = &v1alpha1.IPDiscovery{
289293
Enabled: true,
290294
IPFamily: corev1.IPv4Protocol,
@@ -293,6 +297,8 @@ var _ = Describe("Database controller medium tests", func() {
293297

294298
Expect(k8sClient.Update(ctx, &db)).Should(Succeed())
295299

300+
By("Check container args")
301+
296302
sts = getDBSts(sts.Generation)
297303
args = sts.Spec.Template.Spec.Containers[0].Args
298304

0 commit comments

Comments
 (0)