Skip to content

Commit

Permalink
move namespace labels to labelling test
Browse files Browse the repository at this point in the history
  • Loading branch information
c-pius committed Jan 3, 2025
1 parent 6337b4a commit 7f56f25
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
7 changes: 7 additions & 0 deletions tests/e2e/labelling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,13 @@ var _ = Describe("Labelling SKR resources", Ordered, func() {
shared.ManagedByLabelValue).
Should(Succeed())
}
By("And remote namespace is labelled with istio and warden labels")
Eventually(EnsureNamespaceHasCorrectLabels).
WithContext(ctx).
WithArguments(skrClient, RemoteNamespace, map[string]string{
"istio-injection": "enabled",
"namespaces.warden.kyma-project.io/validate": "enabled",
}).Should(Succeed())
})

It("When Kyma Module is enabled in SKR Kyma CR", func() {
Expand Down
7 changes: 0 additions & 7 deletions tests/e2e/utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,13 +66,6 @@ func InitEmptyKymaBeforeAll(kyma *v1beta2.Kyma) {
WithContext(ctx).
WithArguments(RemoteNamespace, []v1beta2.Module{}, skrClient, shared.StateReady).
Should(Succeed())
By("And Remote Namespace is labelled correctly")
Eventually(EnsureNamespaceHasCorrectLabels).
WithContext(ctx).
WithArguments(skrClient, RemoteNamespace, map[string]string{
"istio-injection": "enabled",
"namespaces.warden.kyma-project.io/validate": "enabled",
}).Should(Succeed())
By("And Runtime Watcher deployment is up and running in SKR", func() {
Eventually(CheckPodLogs).
WithContext(ctx).
Expand Down

0 comments on commit 7f56f25

Please sign in to comment.