Skip to content

Deployment test: AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests cannot find apphost.ts #17438

@mitchdenny

Description

@mitchdenny

Test

Aspire.Deployment.EndToEnd.Tests.AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.DeployTypeScriptApiWithCertManagerToAzureKubernetesEnvironment

Symptom

Test fails reading apphost.ts from the freshly-created TypeScript project:

Xunit.MicrosoftTestingPlatform.XunitException: System.IO.FileNotFoundException :
  Could not find file '/tmp/Aspire.Cli.Tests/TemporaryWorkspaces/<guid>/AksCertManagerTs/apphost.ts'.
  at System.IO.File.ReadAllText(String path, Encoding encoding)
  at AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs:136

Reached:

Step 5: Adding Azure Kubernetes hosting package...
Step 6: Modifying apphost.ts at: /tmp/Aspire.Cli.Tests/TemporaryWorkspaces/<guid>/AksCertManagerTs/apphost.ts

Root cause analysis

The test at AksAzureKubernetesEnvironmentCertManagerTypeScriptDeploymentTests.cs:131-136 expects apphost.ts at <projectDir>/apphost.ts, but the TypeScript Express/React starter template produced by aspire new no longer puts the file there (likely moved under a subdirectory or renamed). The C# variant of the same scenario (AksAzureKubernetesEnvironmentCertManagerDeploymentTests) passes, so this is specific to the TS template layout.

Reproduction

Sibling failures pointing at TS apphost infra:

Suggested fix

Update the test to look for apphost.ts at the new location used by the TS starter template (run aspire new aspire-ts-express-react locally to discover the current layout).

Priority

High — blocks AKS + cert-manager TS E2E coverage every nightly run.

/cc @mitchdenny

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions