Skip to content

test(http): add oauth test with header#3998

Merged
ngjaying merged 2 commits intolf-edge:masterfrom
ngjaying:oauth-verification-test
Feb 2, 2026
Merged

test(http): add oauth test with header#3998
ngjaying merged 2 commits intolf-edge:masterfrom
ngjaying:oauth-verification-test

Conversation

@ngjaying
Copy link
Collaborator

@ngjaying ngjaying commented Feb 2, 2026

Description

This PR adds verification tests for the OAuth2 client credentials flow in REST sink and HTTP client, specifically validating the support for custom headers (e.g. Content-Type: application/x-www-form-urlencoded) which is required for Azure Event Hubs and other providers.

Type of change

  • Test cases

…port

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
@codecov
Copy link

codecov bot commented Feb 2, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 71.39%. Comparing base (84982d4) to head (dfbb627).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3998      +/-   ##
==========================================
+ Coverage   71.36%   71.39%   +0.03%     
==========================================
  Files         460      460              
  Lines       53105    53105              
==========================================
+ Hits        37896    37913      +17     
+ Misses      12279    12271       -8     
+ Partials     2930     2921       -9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Signed-off-by: Jiyong Huang <huangjy@emqx.io>
@ngjaying ngjaying changed the title test(http): add verification for oauth2 client credentials header support test(http): add oauth test with header Feb 2, 2026
@ngjaying ngjaying merged commit 5dee73c into lf-edge:master Feb 2, 2026
62 of 64 checks passed
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.

2 participants