Skip to content

feat: add name resolution configuration support to the Dapr SDK - #1809

Merged
javier-aliaga merged 1 commit into
dapr:masterfrom
matheusandre1:issue1284
Sep 23, 2026
Merged

javier-aliaga merged 1 commit into
dapr:masterfrom
matheusandre1:issue1284

Conversation

@matheusandre1

Copy link
Copy Markdown
Contributor

Description

Adds support for the spec.nameResolution section of the Dapr Configuration to the testcontainers-dapr module, following the same pattern used for the recently added mtls, logging and metrics settings.

New class in io.dapr.testcontainers:

  • NameResolutionConfigurationSettingscomponent, version and configuration (component-specific metadata map). Constructor overloads accept only the component, component + version, or all three fields.

Example:

NameResolutionConfigurationSettings nameResolution = new NameResolutionConfigurationSettings(
    "sqlite",
    "v1",
    Map.of("connectionString", "/home/user/.dapr/nr.db")
);

new DaprContainer(DAPR_RUNTIME_IMAGE_TAG)
    .withConfiguration(new Configuration("my-config", null, null, null, null, null, nameResolution));
spec:
  nameResolution:
    component: sqlite
    version: v1
    configuration:
      connectionString: /home/user/.dapr/nr.db

Issue reference

Closes: #1284

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

Signed-off-by: Matheus André <matheusandr2@gmail.com>
@matheusandre1
matheusandre1 marked this pull request as ready for review September 22, 2026 15:28
@matheusandre1
matheusandre1 requested review from a team as code owners September 22, 2026 15:28
@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.83%. Comparing base (d21df18) to head (cd50d60).

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1809      +/-   ##
============================================
+ Coverage     78.72%   78.83%   +0.11%     
- Complexity     2541     2553      +12     
============================================
  Files           259      260       +1     
  Lines          7671     7698      +27     
  Branches        800      803       +3     
============================================
+ Hits           6039     6069      +30     
+ Misses         1269     1266       -3     
  Partials        363      363              

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

@javier-aliaga
javier-aliaga merged commit 032b69c into dapr:master Sep 23, 2026
17 of 18 checks passed
@matheusandre1
matheusandre1 deleted the issue1284 branch September 23, 2026 11:51
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.

Add support for Name Resolution configuration

3 participants