Skip to content

Update test as deployment should not succeed#1747

Open
fanyang-mono wants to merge 1 commit intomainfrom
dev/yangfan/update_aspire_deploy_test
Open

Update test as deployment should not succeed#1747
fanyang-mono wants to merge 1 commit intomainfrom
dev/yangfan/update_aspire_deploy_test

Conversation

@fanyang-mono
Copy link
Copy Markdown
Contributor

Description

This app contains custom Aspire resource types that Azure Developer CLI cannot deploy to Azure. Update test expectations accordingly.

Related Issues

Fixes #1743

Copilot AI review requested due to automatic review settings April 7, 2026 16:14
Copy link
Copy Markdown
Contributor

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

Updates the azure-deploy integration test expectations for the Aspire health-checks-ui sample, which includes a custom Aspire resource type that Azure Developer CLI cannot deploy to Azure, aligning the test with the intended validation-blocked behavior.

Changes:

  • Flip the health-checks-ui integration test assertion to expect no Azure deployment links.
  • Add an in-test comment explaining why deployment should not succeed for this sample.
Show a summary per file
File Description
tests/azure-deploy/integration.test.ts Adjusts health-checks-ui test to expect deployment to be blocked (no deploy links).

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

@fanyang-mono fanyang-mono self-assigned this Apr 7, 2026
const containsDeployLinks = hasDeployLinks(agentMetadata);

expect(containsDeployLinks).toBe(true);
// This app contains custom Aspire resource types that Azure Developer CLI cannot deploy to Azure.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is it supposed to generate custom Aspire resource types?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yes, I looked at previous passed runs. Copilot usually modify the source code to remove those custom aspire resources

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.

Integration test failure: azure-deploy – aspire health-checks-ui brownfield dotnet [Assertion mismatch]

3 participants