Skip to content

e2e: add a egress test on http request to non 80 port - #1054

Open
yufan-su wants to merge 1 commit into
agent-substrate:mainfrom
yufan-su:e2e-http-non-80-port
Open

e2e: add a egress test on http request to non 80 port#1054
yufan-su wants to merge 1 commit into
agent-substrate:mainfrom
yufan-su:e2e-http-non-80-port

Conversation

@yufan-su

@yufan-su yufan-su commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

This PR adds TestActorEgressNonStandardPort to the networking suite: an Actor fetches an in-cluster HTTP origin on :8080 through the egress gateway, and we assert both a 200 and an atenet-egress access-log line carrying authority=:8080 with this Actor's SPIFFE SAN.

Changes

  • internal/e2e/fixtures/egressprobe/httptarget.yaml.tmpl — a Pod + Service on 8080. Reuses the existing egressprobe binary with --listen=:8080

  • internal/e2e/suites/networking/httptarget_test.go — startHTTPTarget renders the manifest into the suite's namespace, applies it via hack/run-tool.sh ko, waits on readiness, and returns the ClusterIP.

  • internal/e2e/suites/networking/networking_test.go — the test itself, reusing createAndResumeActor, fetchThroughEgressActor and assertEgressGatewayConnect unchanged.

  • Tests pass

#1017

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This one seems mostly duplicate with internal/e2e/fixtures/egressprobe/egressprobe.yaml.tmpl. Can we reuse it somehow to reduce duplication?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This file seems mostly duplicated with internal/e2e/suites/sdsmint/sdsmint_test.go funcationality-wise.
Can we refactor it somehow to avoid unnecessary duplication?

@haiyanmeng

Copy link
Copy Markdown
Collaborator

yufan-su thanks for the work.

Can you take a look across this PR, #1119, and the existing test code, to figure out a solution minimizing the duplication in our test code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants