Skip to content

Added Dapr Metadata package with tests#1846

Merged
WhitWaldo merged 13 commits into
masterfrom
metadata-service
Jun 7, 2026
Merged

Added Dapr Metadata package with tests#1846
WhitWaldo merged 13 commits into
masterfrom
metadata-service

Conversation

@WhitWaldo

Copy link
Copy Markdown
Contributor

Description

Added Metadata retrieval support with testing to project.

This package has been Implemented to use the options pattern. To use, register with DI via builder.Services.AddDaprMetadata() and inject via IOptions<DaprMetadata>, IOptionsSnapshot<DaprMetadata>, and IOptionsMonitor<DaprMetadata> into the DI-registered types you wish to access the properties from.

Issue reference

We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.

Please reference the issue this PR will close: #[issue number]

Checklist

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Extended the documentation

WhitWaldo added 10 commits June 7, 2026 16:09
…on values

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@WhitWaldo WhitWaldo added this to the v1.18 milestone Jun 7, 2026
@WhitWaldo WhitWaldo self-assigned this Jun 7, 2026
@WhitWaldo WhitWaldo requested review from a team as code owners June 7, 2026 22:45
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
@codecov

codecov Bot commented Jun 7, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 83.33333% with 16 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.23%. Comparing base (d433287) to head (4dc9086).

Files with missing lines Patch % Lines
src/Dapr.Common/DaprDefaults.cs 0.00% 7 Missing ⚠️
...c/Dapr.Testcontainers/Harnesses/MetadataHarness.cs 0.00% 7 Missing ⚠️
src/Dapr.Metadata.Runtime/DaprMetadataProvider.cs 95.23% 0 Missing and 1 partial ⚠️
...c/Dapr.Testcontainers/Common/DaprHarnessBuilder.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1846      +/-   ##
==========================================
- Coverage   63.54%   63.23%   -0.31%     
==========================================
  Files         313      330      +17     
  Lines        9431     9526      +95     
  Branches     1106     1110       +4     
==========================================
+ Hits         5993     6024      +31     
- Misses       3175     3190      +15     
- Partials      263      312      +49     
Flag Coverage Δ
net10.0 63.19% <83.33%> (-0.34%) ⬇️

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

☔ View full report in Codecov by Harness.
📢 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.

WhitWaldo added 2 commits June 7, 2026 18:13
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
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.

1 participant