test: add E2E tests for Tenant CR lifecycle#869
Conversation
Adds comprehensive E2E test suite for validating Tenant CR behavior: - 8 integration tests covering singleton, lifecycle, contract, and ownership - Tests validated on live OpenShift cluster - Properly detects when Tenant fails to reach Ready state - Uses pytest with custom markers (unit, integration, smoke) Test results on live cluster: - 6 passing (contract, lifecycle, ownership validation) - 2 skipped (payload-processing not deployed, DSC operator CI-only) - Execution time: ~5s when Tenant is healthy Also updates: - test/e2e/README.md with Tenant test documentation - prow_run_smoke_test.sh to support tenant tests The tests successfully validated the PodMonitor RBAC and schema issues documented in the E2E test ownership plan (RHOAIENG-60709). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Central YAML (base), Organization UI (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe PR updates E2E testing infrastructure by reorganizing the README with structured Quick Start sections, updating the smoke test script to include Tenant and external models test modules in the pytest invocation, and introducing a comprehensive Tenant lifecycle test suite with helpers for cluster interaction via oc, CRUD status validation, readiness polling, and ownership protection checks. Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~12 minutes Issuestest/e2e/tests/test_tenant.py
test/e2e/scripts/prow_run_smoke_test.sh
test/e2e/README.md
🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
/group-test |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
Restores important documentation that was removed: - Ownership guidance (MaaS CI vs Operator CI scope) - Local prerequisites (setup instructions) - Pytest modules table (quick reference for all test files) - CI integration details - External OIDC configuration Keeps the updated test_tenant.py description reflecting the 7 tests. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
/group-test |
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
|
/group-test |
CI uses kustomize deployment mode, which does not create the Tenant CR automatically (only operator-based deployments via DSC create Tenant). Add module-level skip conditions: 1. Skip if Tenant CRD is missing 2. Skip if Tenant singleton doesn't exist This allows the test suite to run in both kustomize mode (skips Tenant tests) and operator mode (runs Tenant tests). Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
Added a question on github ticket - https://redhat.atlassian.net/browse/RHOAIENG-59867?focusedCommentId=16945433 |
|
@somya-bhatnagar: The following test has Succeeded: OCI Artifact Browser URLInspecting Test Artifacts ManuallyTo inspect your test artifacts manually, follow these steps:
mkdir -p oras-artifacts
cd oras-artifacts
oras pull quay.io/opendatahub/odh-ci-artifacts:maas-group-test-xdqdp |
|
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: somya-bhatnagar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
Summary
Adds E2E test suite for Tenant CR lifecycle validation as part of the test ownership reorganization (RHOAIENG-60709).
Related to https://redhat.atlassian.net/browse/RHOAIENG-59867
Changes
test/e2e/tests/test_tenant.py - 7 integration tests covering:
test/e2e/README.md - Streamlined documentation focusing on test execution
test/e2e/scripts/prow_run_smoke_test.sh - Enhanced to include Tenant tests in CI
Test Results
Validated on live OpenShift cluster with operator-based deployment:
Test Ownership Context
This PR is part of Phase 1 (Tenant Tests) of the E2E test ownership reorganization:
DSC enable/disable and Tenant deletion lifecycle remain in operator CI scope.
How to Run
Full smoke test (includes all E2E modules):
🤖 Generated with Claude Code