Skip to content

Commit

Permalink
ROX-26523: add test
Browse files Browse the repository at this point in the history
  • Loading branch information
ludydoo committed Oct 16, 2024
1 parent 843e7c0 commit d890ef9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fleetshard/pkg/central/reconciler/reconciler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2773,3 +2773,10 @@ func TestArgoCDApplication_CanBeToggleOnAndOff(t *testing.T) {
}

}

func Test_ReconcilerSetsArgoCDNamespaceLabel(t *testing.T) {
// We must set the "argocd.argoproj.io/managed-by" label on the namespace
// so that ArgoCD has the correct permissions to manage the resources in the namespace
r := CentralReconciler{openshiftGitopsNamespace: "foo"}
assert.Equal(t, "foo", r.getNamespaceLabels(private.ManagedCentral{})["argocd.argoproj.io/managed-by"])
}

0 comments on commit d890ef9

Please sign in to comment.