Skip to content

Comments

e2e: add HTTPS listener test for XListenerSet#13502

Open
devc007 wants to merge 2 commits intokgateway-dev:mainfrom
devc007:e2eTestForHTTPListener
Open

e2e: add HTTPS listener test for XListenerSet#13502
devc007 wants to merge 2 commits intokgateway-dev:mainfrom
devc007:e2eTestForHTTPListener

Conversation

@devc007
Copy link
Contributor

@devc007 devc007 commented Feb 11, 2026

Description

Add end-to-end test to verify HTTPS listener functionality on XListenerSet resources, providing sanity checks for regressions in TLS behavior.

The test validates:

  • HTTPS listener attachment to XListenerSet
  • TLS certificate reference resolution (including cross-namespace with ReferenceGrant)
  • TLS termination at the gateway
  • End-to-end HTTPS connectivity

Test creates:

  • TLS secret with self-signed certificate
  • XListenerSet with HTTPS listener on port 8443
  • HTTPRoute targeting the XListenerSet
  • ReferenceGrant for cross-namespace secret access

Fixes #12968

Change Type

/kind feature

Changelog

NONE

Copilot AI review requested due to automatic review settings February 11, 2026 18:15
@gateway-bot gateway-bot added kind/feature Categorizes issue or PR as related to a new feature. release-note-none labels Feb 11, 2026
Add end-to-end test to verify HTTPS listener functionality on
XListenerSet resources, providing sanity checks for regressions
in TLS behavior.

The test validates:
- HTTPS listener attachment to XListenerSet
- TLS certificate reference resolution (including cross-namespace
  with ReferenceGrant)
- TLS termination at the gateway
- End-to-end HTTPS connectivity

Test creates:
- TLS secret with self-signed certificate
- XListenerSet with HTTPS listener on port 8443
- HTTPRoute targeting the XListenerSet
- ReferenceGrant for cross-namespace secret access

Fixes kgateway-dev#12968

Signed-off-by: devesh <[email protected]>
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds an end-to-end test case to validate HTTPS listener behavior on XListenerSet, covering TLS cert reference resolution (including cross-namespace via ReferenceGrant) and end-to-end HTTPS connectivity to a backend through the Gateway.

Changes:

  • Register a new TestHTTPSListenerSet test case and supporting constants/objects.
  • Add a self-signed TLS Secret manifest used by the HTTPS listener.
  • Add an XListenerSet + HTTPRoute + ReferenceGrant manifest to exercise cross-namespace TLS secret reference and HTTPS routing.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
test/e2e/features/listenerset/types.go Adds manifest paths, HTTPS port constant, and registers the new HTTPS test case.
test/e2e/features/listenerset/suite.go Implements TestHTTPSListenerSet with status assertions and HTTPS curl validation.
test/e2e/features/listenerset/testdata/tls-secret.yaml Adds a TLS secret used by the HTTPS listener.
test/e2e/features/listenerset/testdata/https-listenerset.yaml Adds XListenerSet HTTPS listener + HTTPRoute and ReferenceGrant to allow cross-namespace secret reference.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@devc007 devc007 force-pushed the e2eTestForHTTPListener branch from 7242340 to a1d60d5 Compare February 12, 2026 06:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/feature Categorizes issue or PR as related to a new feature. release-note-none

Projects

None yet

Development

Successfully merging this pull request may close these issues.

e2e: add e2e test for HTTPS listener

2 participants