Skip to content

Fix parameter tests with localized values #10959

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Aug 14, 2025

Parameter service uses localized values which causes some hardcoded tests to fail.

Fixes failing localization update: https://github.com/dotnet/aspire/actions/runs/16953709172?pr=10944

@JamesNK JamesNK requested review from adamint and Copilot August 14, 2025 05:37
@JamesNK JamesNK added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label Aug 14, 2025
@JamesNK JamesNK requested a review from mitchdenny as a code owner August 14, 2025 05:37
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes test failures that occurred when hardcoded English strings in parameter tests didn't match localized values being used by the parameter service. The fix replaces hardcoded placeholder text with calls to the localized string resource.

  • Updates parameter tests to use localized string resources instead of hardcoded English text
  • Adds import for Aspire.Hosting.Resources namespace to access localization resources

@JamesNK
Copy link
Member Author

JamesNK commented Aug 14, 2025

If there are still problems then we'll hardcode this test culture as en-US.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant