Skip to content

test(opentelemetry): add spaceId to request context mocks#716

Merged
Ahoo-Wang merged 1 commit intomainfrom
add-spaceId-to-request-context-mocks
Feb 4, 2026
Merged

test(opentelemetry): add spaceId to request context mocks#716
Ahoo-Wang merged 1 commit intomainfrom
add-spaceId-to-request-context-mocks

Conversation

@Ahoo-Wang
Copy link
Owner

  • Add spaceId mock to CoSecAttributesExtractorTest PolicyVerifyContext setup
  • Add spaceId mock to CoSecAttributesExtractorTest RoleVerifyContext setup
  • Add spaceId mock to CoSecAttributesExtractorTest anonymous context setup
  • Add spaceId mock to TracingAuthorizationTest RoleVerifyContext setup

- Add spaceId mock to CoSecAttributesExtractorTest PolicyVerifyContext setup
- Add spaceId mock to CoSecAttributesExtractorTest RoleVerifyContext setup
- Add spaceId mock to CoSecAttributesExtractorTest anonymous context setup
- Add spaceId mock to TracingAuthorizationTest RoleVerifyContext setup

Signed-off-by: Ahoo Wang <ahoowang@qq.com>
@Ahoo-Wang Ahoo-Wang added the enhancement New feature or request label Feb 4, 2026
@Ahoo-Wang Ahoo-Wang merged commit bedce8e into main Feb 4, 2026
13 checks passed
@Ahoo-Wang Ahoo-Wang deleted the add-spaceId-to-request-context-mocks branch February 4, 2026 12:14
@codecov
Copy link

codecov bot commented Feb 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.17%. Comparing base (ca8f264) to head (3e88fa6).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #716      +/-   ##
============================================
+ Coverage     92.15%   92.17%   +0.01%     
  Complexity      612      612              
============================================
  Files           149      149              
  Lines          1823     1827       +4     
  Branches        156      157       +1     
============================================
+ Hits           1680     1684       +4     
  Misses           74       74              
  Partials         69       69              
Flag Coverage Δ
unittests 92.17% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

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

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant