Uploaded image for project: 'OpenShift GitOps'
  1. OpenShift GitOps
  2. GITOPS-7366

NamespaceManagement: E2E tests in gitops-operator repo

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Done
    • Icon: Undefined Undefined
    • 1.18.0
    • None
    • Operator
    • GitOps Scarlet Sprint 19, GitOps Scarlet Sprint 20, GitOps Scarlet Sprint 21

      Background and Approach (Required)

      • Namespace management feature was contributed by https://github.com/argoproj-labs/argocd-operator/pull/1687 and https://issues.redhat.com/browse/GITOPS-6179
      • However, we were unable to add E2E tests to that repo, because this feature requires modifying the operator subscription (which is not supported via argocd-operator E2E tests)
      • We should thus contribute comprehensive E2E tests for this feature to gitops-operator Ginkgo tests
      • Tests should cover all aspects of feature
      • Some example tests:
        • Enable/disable namespace management and ensure that appropriate roles/bindings are added/removed from namespace
        • Ensure that glob filter matching is supported
        • Ensure that when the feature is disabled, or managedBy or modified, that roles/bindings are always cleaned up
        • Security tests:
          • Ensure that feature only works when namespace management env var is set
          • Ensure that if ArgoCD CR does not have managedby, that roles are NOT added
        • etc

              rh-ee-rnaaz Rizwana Naaz
              jgwest Jonathan West
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: