NETOBSERV-2653: TLS topology automation#1541
Conversation
|
@Amoghrd: This pull request references NETOBSERV-2653 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
📝 WalkthroughWalkthroughAdds a Kubernetes YAML fixture defining a TLS server with NGINX (HTTP/HTTPS) and a client Pod for testing, then updates the Cypress TLS test suite to deploy this fixture, verify TLS lock icon rendering in topology, and validate TLS dashboard panels. ChangesTLS Test Infrastructure and Dashboard Validation
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsLinked repositories: Your configuration references 2 linked repositories, but your current plan allows 1. Analyzed 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 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1541 +/- ##
=======================================
Coverage 52.23% 52.23%
=======================================
Files 233 233
Lines 12552 12552
Branches 1575 1575
=======================================
Hits 6556 6556
Misses 5378 5378
Partials 618 618
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
There was a problem hiding this comment.
Actionable comments posted: 3
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@web/cypress/fixtures/test-tls-server-client.yaml`:
- Around line 126-134: The curl commands inside the while loop in
test-tls-server-client.yaml use the incorrect redirection order `2>&1 >
/dev/null`; update each curl invocation (the three lines calling curl -sk
--tlsv1.3 ..., curl -sk --tlsv1.2 --tls-max 1.2 ..., and curl -s http://... ) to
silence both stdout and stderr by using `> /dev/null 2>&1` (or `&> /dev/null`)
so stderr is not left visible in pod logs.
In `@web/cypress/integration-tests/tls_dashboards.cy.ts`:
- Around line 106-108: Replace the hardcoded cy.wait(1000) after
cy.visit('/monitoring') with a condition-based wait: after calling
cy.visit('/monitoring') (in tls_dashboards.cy.ts) assert either the URL change
via cy.url().should('include', '/monitoring') or wait for a known dashboard
element to appear (e.g., cy.get('<dashboard-selector>').should('be.visible')),
ensuring the test proceeds only once the page has actually loaded instead of
using a fixed timeout.
- Around line 19-24: Remove the redundant hardcoded wait by deleting the
cy.wait(10000) call; rely on the existing oc wait commands invoked via
cy.adminCLI (the "oc wait --for=condition=Available deployment/tls-server -n
test-tls-server --timeout=180s" and "oc wait --for=condition=Ready pod -n
test-tls-client -l app=tls-client --timeout=120s") to block until resources are
ready, ensuring no fixed delays remain in tls_dashboards.cy.ts.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 5e274e25-f5af-4d55-9383-f77beed43c48
📒 Files selected for processing (2)
web/cypress/fixtures/test-tls-server-client.yamlweb/cypress/integration-tests/tls_dashboards.cy.ts
|
/cherry-pick main-pf5 |
|
@Amoghrd: new pull request created: #1552 DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Description
TLS Topology automation based on NETOBSERV-2609
Dependencies
n/a
Results:
Checklist
Summary by CodeRabbit