Skip to content

Commit 5f8e48e

Browse files
committed
fix: flapping medium test
1 parent 0be0150 commit 5f8e48e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
kind: Added
2+
body: starting with this release, deploying to dockerhub (ydbplatform/ydb-kubernetes-operator)
3+
time: 2024-11-13T18:16:28.275365313+01:00

internal/controllers/database/controller_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ func TestAPIs(t *testing.T) {
5656
var _ = Describe("Database controller medium tests", func() {
5757
var namespace corev1.Namespace
5858
var storageSample v1alpha1.Storage
59+
var databaseSample v1alpha1.Database
5960

6061
BeforeEach(func() {
6162
namespace = corev1.Namespace{
@@ -94,14 +95,15 @@ var _ = Describe("Database controller medium tests", func() {
9495
})
9596

9697
AfterEach(func() {
98+
Expect(k8sClient.Delete(ctx, &databaseSample)).Should(Succeed())
9799
Expect(k8sClient.Delete(ctx, &storageSample)).Should(Succeed())
98100
Expect(k8sClient.Delete(ctx, &namespace)).Should(Succeed())
99101
test.DeleteAllObjects(env, k8sClient, &namespace)
100102
})
101103

102104
It("Checking field propagation to objects", func() {
103105
By("Check that Shared Database was created...")
104-
databaseSample := *testobjects.DefaultDatabase()
106+
databaseSample = *testobjects.DefaultDatabase()
105107
databaseSample.Spec.SharedResources = &v1alpha1.DatabaseResources{
106108
StorageUnits: []v1alpha1.StorageUnit{
107109
{

0 commit comments

Comments
 (0)