diff --git a/pkg/testutils/modulereleasemeta.go b/pkg/testutils/modulereleasemeta.go index a638d6a52f..0e2e808291 100644 --- a/pkg/testutils/modulereleasemeta.go +++ b/pkg/testutils/modulereleasemeta.go @@ -162,7 +162,7 @@ func ModuleReleaseMetaBetaValueIsCorrect(ctx context.Context, client client.Clie return err } - if meta.Spec.Beta != expectedValue { + if meta.IsBeta() != expectedValue { return ErrBetaValueNotCorrect } @@ -177,7 +177,7 @@ func ModuleReleaseMetaInternalValueIsCorrect(ctx context.Context, client client. return err } - if meta.Spec.Beta != expectedValue { + if meta.IsInternal() != expectedValue { return ErrInternalValueNotCorrect } diff --git a/tests/e2e/modulereleasemeta_sync_test.go b/tests/e2e/modulereleasemeta_sync_test.go index c148b674ee..7f3c84862e 100644 --- a/tests/e2e/modulereleasemeta_sync_test.go +++ b/tests/e2e/modulereleasemeta_sync_test.go @@ -79,7 +79,7 @@ var _ = Describe("ModuleReleaseMeta Sync", Ordered, func() { Should(Succeed()) }) - It("Then Beta value is reverted back to its value on the KCP Cluster", func() { + It("Then Beta value is reverted back to its value from the KCP Cluster", func() { Eventually(ModuleReleaseMetaBetaValueIsCorrect). WithContext(ctx). WithArguments(skrClient, RemoteNamespace, module.Name, false). @@ -93,7 +93,7 @@ var _ = Describe("ModuleReleaseMeta Sync", Ordered, func() { Should(Succeed()) }) - It("Then Internal value is reverted back to its value on the KCP Cluster", func() { + It("Then Internal value is reverted back to its value from the KCP Cluster", func() { Eventually(ModuleReleaseMetaInternalValueIsCorrect). WithContext(ctx). WithArguments(skrClient, RemoteNamespace, module.Name, false).