Skip to content

Commit

Permalink
Fix envtest.
Browse files Browse the repository at this point in the history
  • Loading branch information
Miles-Garnsey committed Dec 11, 2023
1 parent edf4bba commit 4dca812
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions controllers/medusa/medusarestorejob_controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,13 @@ func testMedusaRestoreDatacenter(t *testing.T, ctx context.Context, f *framework
return !restore.Status.FinishTime.IsZero()
}, timeout, interval)

err = f.DeleteK8ssandraCluster(ctx, client.ObjectKey{Namespace: dc.Namespace, Name: kc.Name}, timeout, interval)
require.NoError(err, "failed to delete K8ssandraCluster")
superuserSecret := corev1.Secret{}
require.NoError(f.Client.Get(ctx, types.NamespacedName{Namespace: namespace, Name: "cass-superuser"}, &superuserSecret))
assert.Contains(t, superuserSecret.ObjectMeta.Annotations, k8ssandraapi.RefreshAnnotation)

err = f.DeleteK8ssandraCluster(ctx, client.ObjectKey{Namespace: dc.Namespace, Name: kc.Name}, timeout, interval)
require.NoError(err, "failed to delete K8ssandraCluster")

}

func testValidationErrorStopsRestore(t *testing.T, ctx context.Context, f *framework.Framework, namespace string) {
Expand Down

0 comments on commit 4dca812

Please sign in to comment.