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

Integrate Tests into CI/CD Pipeline

XMLWordPrintable

    • Icon: Story Story
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • None
    • 5
    • False
    • Hide

      None

      Show
      None
    • False

      Story (Required)


      • Integrate automated tests into the CI/CD pipeline to run tests on every pull request and merge. CI MUST be running successfully with tests automated.

      Background and Approach (Required)


      • Create GitHub Actions workflow (or update existing CI config), configure test execution in CI environment (primary: real OpenShift test cluster, fallback: mock mode if cluster unavailable), set up test cluster provisioning/access (similar to gitops-operator's approach), configure authentication for CI/CD (service accounts with RBAC), set up test reporting (test results, coverage if applicable), configure test failure notifications, ensure tests run on PR creation/updates and main branch merges, ensure CI pipeline fails if tests fail (blocking merges)

      Out of Scope

      • <Defines what is not included in this story.>

      Dependencies

      Acceptance Criteria (Mandatory)

      • CI/CD workflow created/updated and running successfully
      • Tests run automatically on pull requests (blocking merges if tests fail)
      • Tests run automatically on main branch merges
      • Mock mode available as fallback if cluster unavailable
      • Test cluster provisioning/access configured
      • Authentication configured for CI/CD environment
      • Test results are visible in CI/CD pipeline
      • CI fails if tests fail (blocking merges)
      • CI pipeline is stable and reliable

        Definition of Done

      • Code Complete:
        • All code has been written, reviewed, and approved.
      • Tested:
        • Unit tests have been written and passed.
        • Ensure code coverage is not reduced with the changes.
        • Integration tests have been automated.
        • System tests have been conducted, and all critical bugs have been fixed.
        • Tested and merged on OpenShift either upstream or downstream on a local build.
      • Documentation:
        • User documentation or release notes have been written (if applicable).
      • Build:
        • Code has been successfully built and integrated into the main repository / project.
        • Midstream changes (if applicable) are done, reviewed, approved and merged.
      • Review:
        • Code has been peer-reviewed and meets coding standards.
        • All acceptance criteria defined in the user story have been met.
        • Tested by reviewer on OpenShift.
      • Deployment:
        • The feature has been deployed on OpenShift cluster for testing.

              rh-ee-atali Atif Ali
              rh-ee-atali Atif Ali
              Tangerine
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: