Skip to content

fix(load-tests): honor INVOKE_HOST in supreme_http_test#9

Merged
vrv3814 merged 1 commit intomainfrom
vrv3814-patch-1
May 8, 2026
Merged

fix(load-tests): honor INVOKE_HOST in supreme_http_test#9
vrv3814 merged 1 commit intomainfrom
vrv3814-patch-1

Conversation

@vrv3814
Copy link
Copy Markdown
Contributor

@vrv3814 vrv3814 commented May 8, 2026

Summary

  • run_http_self_managed_test.sh from http load-testing docs exports INVOKE_HOST=invocation.<gateway> and forwards it via -e, but supreme_http_test.js never read it, so all requests sent Host: <gateway> and were 404'd by the
    NVCF gateway's host-based routing.
  • Set params.headers.Host = __ENV.INVOKE_HOST when the variable is provided. k6 promotes a Host header to req.Host, so the request now lands on the invocation.* vhost.
  • Gated on INVOKE_HOST being set so other consumers of this script are unaffected.

Checklist

  • I am familiar with the Contributing Guidelines.
  • I have signed off my commits for Developer Certificate of Origin (DCO) compliance.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@vrv3814 vrv3814 requested a review from a team as a code owner May 8, 2026 08:19
@vrv3814 vrv3814 merged commit c59dd20 into main May 8, 2026
1 check passed
@vrv3814 vrv3814 deleted the vrv3814-patch-1 branch May 8, 2026 08:35
@vrv3814 vrv3814 restored the vrv3814-patch-1 branch May 8, 2026 10:03
@vrv3814 vrv3814 deleted the vrv3814-patch-1 branch May 8, 2026 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant