843 references to Path
Aspire.Hosting.Azure.Kubernetes.Tests (9)
AzureKubernetesFoundryReferenceTests.cs (2)
24workspace.Path); 59var valuesPath = Directory.EnumerateFiles(workspace.Path, "values.yaml", SearchOption.AllDirectories).Single();
AzureKubernetesInfrastructureTests.cs (1)
172workspace.Path,
AzureKubernetesIngressTests.cs (4)
17var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 33var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 138var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 160var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path);
AzureKubernetesPersistentVolumeTests.cs (2)
27var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 36var claimPath = Path.Combine(workspace.Path, "templates", "data", "data.yaml");
Aspire.Hosting.Azure.Kusto.Tests (2)
KustoFunctionalTests.cs (2)
247container.WithBindMount(workspace.Path, dbPath); 271return Directory.GetFileSystemEntries(workspace.Path, searchPattern, enumerationOptions);
Aspire.Hosting.Azure.Tests (44)
AzureAppServiceTests.cs (9)
198var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "validate-appservice-config-env"); 239var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "validate-appservice-config-env"); 544var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 560var mainBicepPath = Path.Combine(workspace.Path, "main.bicep"); 564var envBicepPath = Path.Combine(workspace.Path, "env", "env.bicep"); 568var apiBicepPath = Path.Combine(workspace.Path, "api", "api.bicep"); 740var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "publish-manifest"); 761Path.Combine(workspace.Path, "aspire-manifest.json"), 770var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path);
AzureBicepResourceTests.cs (4)
260var bicepFilePath = Path.Combine(workspace.Path, bicepFileName); 267var outputDir = Path.Combine(workspace.Path, "output"); 285var bicepFilePath = Path.Combine(workspace.Path, bicepFileName); 309var outputDir = Path.Combine(workspace.Path, "output");
AzureContainerAppEnvironmentExtensionsTests.cs (3)
552var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 565var mainBicepPath = Path.Combine(workspace.Path, "main.bicep"); 569var envBicepPath = Path.Combine(workspace.Path, "env", "env.bicep");
AzureContainerAppsTests.cs (11)
1872var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "publish-manifest"); 1890await VerifyFile(Path.Combine(workspace.Path, "aspire-manifest.json")); 1994workspace.Path, 2024workspace.Path, 2144workspace.Path, 2170workspace.Path, 2199workspace.Path, 2228workspace.Path, 2684File.WriteAllText(Path.Combine(workspace.Path, "Dockerfile"), "FROM alpine"); 2686builder.AddDockerfile("with-bind-mount", workspace.Path) 2687.WithBindMount(workspace.Path, "/app/data");
AzureEnvironmentResourceTests.cs (10)
181using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 218var mainBicep = File.ReadAllText(Path.Combine(workspace.Path, "main.bicep")); 236workspace.Path); 250var mainBicepPath = Path.Combine(workspace.Path, "main.bicep"); 255var includedStorageBicepPath = Path.Combine(workspace.Path, "included-storage", "included-storage.bicep"); 259var excludedStorageBicepPath = Path.Combine(workspace.Path, "excluded-storage", "excluded-storage.bicep"); 269var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 281var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 294remoteInvokeOptions.StartInfo.WorkingDirectory = workspace.Path; 295RemoteExecutor.Invoke(RunTest, workspace.Path, remoteInvokeOptions).Dispose();
AzureFunctionsTests.cs (7)
650var projectPath = Path.Combine(workspace.Path, "TestFunctions.csproj"); 675var projectPath = Path.Combine(workspace.Path, "MyFunctions.csproj"); 697var projectPath = Path.Combine(workspace.Path, "TestFunctions.csproj"); 727var projectPath1 = Path.Combine(workspace.Path, "Functions1.csproj"); 728var projectPath2 = Path.Combine(workspace.Path, "Functions2.csproj"); 750var projectPath = Path.Combine(workspace.Path, "Functions.csproj"); 782var projectPath = Path.Combine(workspace.Path, "Functions.csproj");
Aspire.Hosting.Docker.Tests (106)
DockerComposePublisherTests.cs (75)
25var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 100var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 101var envPath = Path.Combine(workspace.Path, ".env"); 115var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 137var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 138var envPath = Path.Combine(workspace.Path, ".env"); 150using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path) 165var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 175using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "publish-docker-compose") 194var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 203var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 245var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 247var envPath = Path.Combine(workspace.Path, ".env"); 258var envFilePath = Path.Combine(workspace.Path, ".env"); 262var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 289var envFilePath = Path.Combine(workspace.Path, ".env"); 293var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 330var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 344var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 356var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 370var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 385var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 402var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 417var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 433var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 448var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 461var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 474var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 487var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 500var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 515var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 528var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 547var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 559var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 572var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 584var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run, workspace.Path); 596var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 605var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 623var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 633var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 652var envFilePath = Path.Combine(workspace.Path, ".env.Staging"); 665var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 686var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 696var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 708var envFilePath = Path.Combine(workspace.Path, ".env.Production"); 729var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 742var envFilePath = Path.Combine(workspace.Path, ".env.Staging"); 759var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 775var composeContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "docker-compose.yaml")); 776var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 786var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 808var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 817var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "prepare-docker-compose"); 834var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.Path, ".env.Production")); 845var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 859var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 860var envPath = Path.Combine(workspace.Path, ".env"); 873var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 886var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 902var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 917var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 918var envPath = Path.Combine(workspace.Path, ".env"); 931var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 956var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 957var envPath = Path.Combine(workspace.Path, ".env"); 970var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1004var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1005var envPath = Path.Combine(workspace.Path, ".env"); 1024var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1038var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1039var envPath = Path.Combine(workspace.Path, ".env"); 1051var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1082var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 1092var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1116var composePath = Path.Combine(workspace.Path, "docker-compose.yaml");
DockerComposeTests.cs (25)
51using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 63var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 71using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 85var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 148var outputPath = Path.Combine(workspace.Path, "output"); 175var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 187var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 199var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 221var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 235var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 260var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml"); 320var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: step); 347var composePath = Path.Combine(workspace.Path, "docker-compose.yaml"); 374var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: WellKnownPipelineSteps.Diagnostics); 422var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: step); 688var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "push-servicea"); 719var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: "push-servicea"); 756var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: WellKnownPipelineSteps.Diagnostics); 804var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: WellKnownPipelineSteps.Diagnostics); 964["OutputPath"] = workspace.Path, 966["ComposeFilePath"] = Path.Combine(workspace.Path, "docker-compose.yaml") 970var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: WellKnownPipelineSteps.Destroy); 1007var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: WellKnownPipelineSteps.Destroy); 1039var deployBuilder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: WellKnownPipelineSteps.Deploy); 1063var destroyBuilder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path, step: WellKnownPipelineSteps.Destroy);
EnvFileTests.cs (6)
12var envFilePath = Path.Combine(workspace.Path, ".env"); 38var envFilePath = Path.Combine(workspace.Path, ".env"); 64var envFilePath = Path.Combine(workspace.Path, ".env"); 104var envFilePath = Path.Combine(workspace.Path, ".env"); 129var envFilePath = Path.Combine(workspace.Path, ".env"); 146var envFilePath = Path.Combine(workspace.Path, ".env");
Aspire.Hosting.Dotnet.Tests (30)
DotnetProjectResourceTests.cs (30)
118"project" => CreateFile(workspace.Path, "MyService.csproj"), 119"directory" => CreateProjectDirectory(workspace.Path), 120"file" => CreateFile(workspace.Path, "service.cs"), 128() => ManifestUtils.GetManifest(app.Resource, workspace.Path)); 139var projectPath = CreateFile(workspace.Path, "MyService.csproj"); 156workspace.Path, 158builder.AddDotnetProject("svc", CreateFile(workspace.Path, "MyService.csproj"), o => o.ExcludeLaunchProfile = true); 164Assert.False(File.Exists(Path.Combine(workspace.Path, "aspire-manifest.json"))); 174builder.AddDotnetProject("svc", CreateFile(workspace.Path, "MyService.csproj"), o => o.ExcludeLaunchProfile = true); 206builder.AddDotnetProject("svc", CreateFile(workspace.Path, "MyService.csproj"), o => o.ExcludeLaunchProfile = true); 247builder.AddDotnetProject("svc", CreateFile(workspace.Path, "MyService.csproj"), o => o.ExcludeLaunchProfile = true); 277builder.AddDotnetProject("svc", CreateFile(workspace.Path, "MyService.csproj"), o => o.ExcludeLaunchProfile = true); 304builder.AddDotnetProject("svc", CreateFile(workspace.Path, "MyService.csproj"), o => o.ExcludeLaunchProfile = true); 332builder.AddResource(new DotnetProjectResource("svc", workspace.Path)); 344builder.AddDotnetProject("api", CreateFile(workspace.Path, "Api.csproj"), o => o.ExcludeLaunchProfile = true); 345builder.AddDotnetProject("worker", CreateFile(workspace.Path, "Worker.csproj"), o => o.ExcludeLaunchProfile = true); 346builder.AddDotnetProject("excluded", CreateFile(workspace.Path, "Excluded.csproj"), o => o.ExcludeLaunchProfile = true) 348builder.AddDotnetProject("containerized", CreateFile(workspace.Path, "Containerized.csproj"), o => o.ExcludeLaunchProfile = true) 364var projectPath = CreateFile(workspace.Path, "MyService.csproj"); 372var manifest = await ManifestUtils.GetManifestOrNull(resource.Resource, workspace.Path); 380var projectPath = CreateFile(workspace.Path, "MyService.csproj"); 388var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.Path); 396var projectPath = CreateFile(workspace.Path, "MyService.csproj"); 397await File.WriteAllTextAsync(Path.Combine(workspace.Path, "Dockerfile"), "FROM scratch"); 406var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.Path); 431var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 449var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "AmbiguousService")); 475var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 562var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService")); 632var projectDir = Directory.CreateDirectory(Path.Combine(workspace.Path, "MyService"));
Aspire.Hosting.Go.Tests (11)
GoVersionDetectorTests.cs (11)
13var version = GoVersionDetector.Detect(workspace.Path); 22File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), "module example.com/m\n\ngo 1.23\n"); 24var version = GoVersionDetector.Detect(workspace.Path); 33File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), "module example.com/m\n\ngo 1.23.4\n"); 35var version = GoVersionDetector.Detect(workspace.Path); 44File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), 47var version = GoVersionDetector.Detect(workspace.Path); 57File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), 60var version = GoVersionDetector.Detect(workspace.Path); 69File.WriteAllText(Path.Combine(workspace.Path, "go.mod"), "module example.com/m\n"); 71var version = GoVersionDetector.Detect(workspace.Path);
Aspire.Hosting.Java.Tests (4)
AddJavaAppPublishTests.cs (4)
48Directory.CreateDirectory(Path.Combine(workspace.Path, "build", "libs")); 52await File.WriteAllTextAsync(Path.Combine(workspace.Path, "build", "libs", "reports service.jar"), ""); 54var destination = Path.Combine(workspace.Path, "app.jar"); 60WorkingDirectory = workspace.Path,
Aspire.Hosting.JavaScript.Tests (262)
AddBunAppTests.cs (31)
34using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 36var appDir = Path.Combine(workspace.Path, "js"); 46await ManifestUtils.GetManifest(bunApp.Resource, workspace.Path); 48var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 62using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 64var appDir = Path.Combine(workspace.Path, "js"); 73await ManifestUtils.GetManifest(bunApp.Resource, workspace.Path); 75await Verify(File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile"))); 82using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 84var appDir = Path.Combine(workspace.Path, "js"); 90await ManifestUtils.GetManifest(bunApp.Resource, workspace.Path); 95var perDockerfileIgnorePath = Path.Combine(workspace.Path, "js.Dockerfile.dockerignore"); 113using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 115var appDir = Path.Combine(workspace.Path, "js"); 121await ManifestUtils.GetManifest(bunApp.Resource, workspace.Path); 123var perDockerfileIgnorePath = Path.Combine(workspace.Path, "js.Dockerfile.dockerignore"); 133await ManifestUtils.GetManifest(bunApp.Resource, workspace.Path); 145File.WriteAllText(Path.Combine(workspace.Path, "server.ts"), "console.log('hi');"); 149builder.AddBunApp("bunapp", workspace.Path, "server.ts"); 167File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 171builder.AddBunApp("bunapp", workspace.Path, "server.ts"); 219var bunApp = builder.AddBunApp("bunapp", workspace.Path, "server.ts"); 311var bunApp = builder.AddBunApp("bunapp", workspace.Path, "server.ts"); 324var bunApp = builder.AddBunApp("bunapp", workspace.Path, "server.ts"); 336var bunApp = builder.AddBunApp("bunapp", workspace.Path, "server.ts") 351File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 353var bunApp = builder.AddBunApp("bunapp", workspace.Path, "server.ts") 366var bunApp = builder.AddBunApp("bunapp", workspace.Path, "server.ts"); 373Assert.Equal(Path.GetFullPath("server.ts", workspace.Path), launchConfig.ScriptPath); 384File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 386var bunApp = builder.AddBunApp("bunapp", workspace.Path, "server.ts")
AddJavaScriptAppTests.cs (80)
25using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 27var appDir = Path.Combine(workspace.Path, "js"); 34await ManifestUtils.GetManifest(yarnApp.Resource, workspace.Path); 36var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 47using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 49var appDir = Path.Combine(workspace.Path, "js"); 57await ManifestUtils.GetManifest(yarnApp.Resource, workspace.Path); 59var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 67using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 69var appDir = Path.Combine(workspace.Path, "js"); 77await ManifestUtils.GetManifest(yarnApp.Resource, workspace.Path); 79var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 87using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 89var appDir = Path.Combine(workspace.Path, "js"); 97await ManifestUtils.GetManifest(yarnApp.Resource, workspace.Path); 99var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 109using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 112var appDir = Path.Combine(workspace.Path, "js"); 124await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 126var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 136using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 138var appDir = Path.Combine(workspace.Path, "js"); 145await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 147var dockerfileLines = await File.ReadAllLinesAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 170using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 172var appDir = Path.Combine(workspace.Path, "js"); 185await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 187var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 197using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 199var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 203var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifest(app.Resource, workspace.Path)); 214using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 216var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 222var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifestForModel(appModel, workspace.Path)); 233using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 235var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 240var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifest(app.Resource, workspace.Path)); 254var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 278using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 280var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 284var manifest = await ManifestUtils.GetManifest(app.Resource, workspace.Path); 293using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 295var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 302var manifest = await ManifestUtils.GetManifest(app.Resource, workspace.Path); 312using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 314var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 321var manifest = await ManifestUtils.GetManifest(app.Resource, workspace.Path); 330using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 332var appDir = CreateJavaScriptAppWithDockerfile(workspace.Path); 337var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifest(app.Resource, workspace.Path)); 348using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 350var appDir = Path.Combine(workspace.Path, "js"); 359await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 361var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 379using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 381var appDir = Path.Combine(workspace.Path, "js"); 395await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 397var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 413using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 415var appDir = Path.Combine(workspace.Path, "js"); 430await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 432var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 445using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 447var appDir = Path.Combine(workspace.Path, "js"); 461await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 463var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 474using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 476var appDir = Path.Combine(workspace.Path, "js"); 490await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 492var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "js.Dockerfile")); 513using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 515var appDir = Path.Combine(workspace.Path, "js"); 539using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 542var appDir = Path.Combine(workspace.Path, "pnpm-app"); 562await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 564var dockerfilePath = Path.Combine(workspace.Path, "pnpm-app.Dockerfile"); 635using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 637var appDir = Path.Combine(workspace.Path, "pnpm-app"); 658await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.Path); 660var dockerfilePath = Path.Combine(workspace.Path, "pnpm-app.Dockerfile");
AddNodeAppTests.cs (28)
99using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 101var appDir = Path.Combine(workspace.Path, "js"); 112await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 114var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 167using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 169var appDir = Path.Combine(workspace.Path, "js"); 181await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 183var dockerfilePath = Path.Combine(workspace.Path, "js.Dockerfile"); 214using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 216var appDir = Path.Combine(workspace.Path, "js"); 226await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 229var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "js.Dockerfile")); 238File.WriteAllText(Path.Combine(workspace.Path, "app.js"), "{}"); 242builder.AddNodeApp("nodeapp", workspace.Path, "app.js"); 265File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 269builder.AddNodeApp("nodeapp", workspace.Path, "app.js"); 442var nodeApp = builder.AddNodeApp("nodeapp", workspace.Path, "app.js"); 455var nodeApp = builder.AddNodeApp("nodeapp", workspace.Path, "app.js"); 467var viteApp = builder.AddViteApp("viteapp", workspace.Path); 480var viteApp = builder.AddViteApp("viteapp", workspace.Path) 507var viteApp = builder.AddViteApp("viteapp", workspace.Path) 524var viteApp = builder.AddViteApp("viteapp", workspace.Path) 541var resource = new JavaScriptAppResource("jsapp", "npm", workspace.Path); 562File.WriteAllText(Path.Combine(workspace.Path, "app.js"), "console.log('hello');"); 564var nodeApp = builder.AddNodeApp("nodeapp", workspace.Path, "app.js") 600var nodeApp = builder.AddNodeApp("nodeapp", workspace.Path, "app.js"); 607Assert.Equal(Path.GetFullPath("app.js", workspace.Path), launchConfig.ScriptPath); 616var viteApp = builder.AddViteApp("viteapp", workspace.Path);
AddViteAppTests.cs (101)
25using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 28var viteDir = Path.Combine(workspace.Path, "vite"); 37var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 63var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 87using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 89var viteDir = Path.Combine(workspace.Path, "vite"); 97await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 99var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 113using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 115var viteDir = Path.Combine(workspace.Path, "vite"); 119var apiDir = Path.Combine(workspace.Path, "api"); 130await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 132var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 140using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 142var viteDir = Path.Combine(workspace.Path, "vite"); 161using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 163var viteDir = Path.Combine(workspace.Path, "vite"); 167var apiDir = Path.Combine(workspace.Path, "api"); 191using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 193var appDir = Path.Combine(workspace.Path, "angular"); 201await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 203var dockerfilePath = Path.Combine(workspace.Path, "angular.Dockerfile"); 217using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 219var appDir = Path.Combine(workspace.Path, "vite"); 227await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 229var dockerfilePath = Path.Combine(workspace.Path, "vite.Dockerfile"); 240using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 242var nextDir = Path.Combine(workspace.Path, "nextjs"); 249await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 251var dockerfilePath = Path.Combine(workspace.Path, "nextjs.Dockerfile"); 261using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 263var nextDir = Path.Combine(workspace.Path, "nextjs"); 270await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 272var dockerfilePath = Path.Combine(workspace.Path, "nextjs.Dockerfile"); 280using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 282var appDir = Path.Combine(workspace.Path, "nuxt"); 290await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 292var dockerfilePath = Path.Combine(workspace.Path, "nuxt.Dockerfile"); 300using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 302var appDir = Path.Combine(workspace.Path, "nuxt"); 310await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 312var dockerfilePath = Path.Combine(workspace.Path, "nuxt.Dockerfile"); 322File.WriteAllText(Path.Combine(workspace.Path, ".nvmrc"), "18.20.0"); 324using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 325var nodeApp = builder.AddViteApp("vite", workspace.Path) 328var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 330var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 342File.WriteAllText(Path.Combine(workspace.Path, ".node-version"), "v21.5.0"); 344using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 345var nodeApp = builder.AddViteApp("vite", workspace.Path) 348var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 350var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 367File.WriteAllText(Path.Combine(workspace.Path, ".tool-versions"), toolVersions); 369using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 370var nodeApp = builder.AddViteApp("vite", workspace.Path) 373var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 375var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 393File.WriteAllText(Path.Combine(workspace.Path, ".tool-versions"), toolVersions); 395using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 396var nodeApp = builder.AddViteApp("vite", workspace.Path) 399var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 401var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 419File.WriteAllText(Path.Combine(workspace.Path, "package.json"), packageJson); 421using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 422var nodeApp = builder.AddViteApp("vite", workspace.Path) 425var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 427var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 438using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 439var nodeApp = builder.AddViteApp("vite", workspace.Path) 442var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 444var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 460File.WriteAllText(Path.Combine(workspace.Path, ".nvmrc"), versionString); 462using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 463var nodeApp = builder.AddViteApp("vite", workspace.Path) 466var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 468var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 477using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.Path).WithResourceCleanUp(true); 480var nodeApp = builder.AddViteApp("vite", workspace.Path) 484var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.Path); 490var dockerfileContents = File.ReadAllText(Path.Combine(workspace.Path, "vite.Dockerfile")); 548Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 551var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 555var viteApp = builder.AddViteApp("test-app", workspace.Path) 609Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 612var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 616var viteApp = builder.AddViteApp("test-app", workspace.Path); 668var viteApp = builder.AddViteApp("test-app", workspace.Path); 713var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 717builder.AddViteApp("test-app", workspace.Path); 756Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 759var viteConfigPath = Path.Combine(workspace.Path, "vite.config.js"); 763var viteApp = builder.AddViteApp("test-app", workspace.Path); 811var repoRoot = Path.Combine(workspace.Path, "repo"); 887var repoRoot = Path.Combine(workspace.Path, "repo"); 950var repoRoot = Path.Combine(workspace.Path, "repo"); 996Directory.CreateDirectory(Path.Combine(workspace.Path, "node_modules")); 999var viteConfigPath = Path.Combine(workspace.Path, configFileName); 1003var viteApp = builder.AddViteApp("test-app", workspace.Path); 1050var nextDir = Path.Combine(workspace.Path, "nextjs"); 1066var nextDir = Path.Combine(workspace.Path, "nextjs"); 1083var nextDir = Path.Combine(workspace.Path, "nextjs");
PackageInstallationTests.cs (15)
458File.WriteAllText(Path.Combine(workspace.Path, "package-lock.json"), "empty"); 462var app = builder.AddViteApp("test-app", workspace.Path) 485File.WriteAllText(Path.Combine(workspace.Path, "yarn.lock"), "empty"); 489var app = builder.AddViteApp("test-app", workspace.Path) 495var app2 = builder.AddViteApp("test-app2", workspace.Path) 506File.WriteAllText(Path.Combine(workspace.Path, "yarn.lock"), "empty"); 507File.WriteAllText(Path.Combine(workspace.Path, ".yarnrc.yml"), "empty"); 511var app = builder.AddViteApp("test-app", workspace.Path) 522File.WriteAllText(Path.Combine(workspace.Path, "yarn.lock"), "empty"); 523Directory.CreateDirectory(Path.Combine(workspace.Path, ".yarn", "releases")); 527var app = builder.AddViteApp("test-app", workspace.Path) 538File.WriteAllText(Path.Combine(workspace.Path, "pnpm-lock.yaml"), "empty"); 542var app = builder.AddViteApp("test-app", workspace.Path) 553File.WriteAllText(Path.Combine(workspace.Path, "bun.lock"), "empty"); 557var app = builder.AddViteApp("test-app", workspace.Path)
RequiredCommandTests.cs (7)
29var app = builder.AddNodeApp("app", workspace.Path, "server.js"); 41var app = builder.AddNodeApp("app", workspace.Path, "server.js") 53var app = builder.AddNodeApp("app", workspace.Path, "server.js") 66var app = builder.AddNodeApp("app", workspace.Path, "server.js") 157File.WriteAllText(Path.Combine(workspace.Path, "package.json"), "{}"); 159var app = builder.AddBunApp("app", workspace.Path, "server.ts"); 170var app = builder.AddBunApp("app", workspace.Path, "server.ts")
Aspire.Hosting.Keycloak.Tests (2)
KeycloakPublicApiTests.cs (2)
158keycloak.WithRealmImport(workspace.Path); 177var filePath = Path.Combine(workspace.Path, file);
Aspire.Hosting.Kubernetes.Tests (196)
KubernetesDeployTests.cs (52)
309workspace.Path, 350workspace.Path, 390workspace.Path, 431workspace.Path, 471workspace.Path, 506workspace.Path, 546workspace.Path, 592workspace.Path, 623workspace.Path, 830var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 864var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 878var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 891var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 909var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "Chart.yaml")); 922var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 931var deploymentYaml = await File.ReadAllTextAsync(Path.Combine(workspace.Path, "templates", "svc", "deployment.yaml")); 945workspace.Path, 972var outputPath = Path.Combine(workspace.Path, "env"); 1019var outputPath = Path.Combine(workspace.Path, "env"); 1039var outputPath = Path.Combine(workspace.Path, "env"); 1113var outputPath = Path.Combine(workspace.Path, "env"); 1164workspace.Path, 1197workspace.Path, 1270var outputPath = Path.Combine(workspace.Path, "env"); 1320var outputPath = Path.Combine(workspace.Path, "env"); 1343workspace.Path, 1369var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1392var serverSecretsTemplatePath = Path.Combine(workspace.Path, "templates", "server", "secrets.yaml"); 1414workspace.Path, 1444var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1471var outputPath = Path.Combine(workspace.Path, "deploy"); 1533workspace.Path, 1559workspace.Path, env, CancellationToken.None); 1561var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1587workspace.Path, 1620workspace.Path, env, CancellationToken.None); 1622var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1633workspace.Path, 1665workspace.Path, env, CancellationToken.None); 1667var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1678workspace.Path, 1705workspace.Path, env, CancellationToken.None); 1707var overridePath = Path.Combine(workspace.Path, HelmDeploymentEngine.GetDeployValuesFileName("env")); 1708await Verify(await File.ReadAllTextAsync(Path.Combine(workspace.Path, "values.yaml")), "yaml") 1710await File.ReadAllTextAsync(Path.Combine(workspace.Path, "templates", "myapp", "config.yaml")), 1764workspace.Path, 1780var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1798workspace.Path, 1815var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 1854workspace.Path, 1886workspace.Path, 1926workspace.Path,
KubernetesEnvironmentResourceTests.cs (5)
19using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 29var chartYaml = Path.Combine(workspace.Path, "Chart.yaml"); 30var valuesYaml = Path.Combine(workspace.Path, "values.yaml"); 31var deploymentYaml = Path.Combine(workspace.Path, "templates", "service", "deployment.yaml"); 95var outputPath = Path.Combine(workspace.Path, "output");
KubernetesGatewayTests.cs (24)
18var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 34var gatewayDir = Path.Combine(workspace.Path, "templates", "public"); 61var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 75var gatewayDir = Path.Combine(workspace.Path, "templates", "public"); 88var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 105var gatewayFile = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 123var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 140var gatewayDir = Path.Combine(workspace.Path, "templates", "public"); 149var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 171var gatewayDir = Path.Combine(workspace.Path, "templates", "public"); 184var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 205var gatewayDir = Path.Combine(workspace.Path, "templates", "empty"); 220var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 272var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 283var templatesDir = Path.Combine(workspace.Path, "templates", "myapi"); 295var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 313var gatewayFile = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 345var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 362var gatewayFile = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 382var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 407var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 429var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 445var gatewayFile = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 462var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path);
KubernetesIngressTests.cs (41)
18var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 34var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 50var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 64var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 86$"Pipeline:OutputPath={workspace.Path}", 108var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 115var valuesPath = Path.Combine(workspace.Path, "values.yaml"); 132var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 149var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 160var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 176var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 188var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 205var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 218var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 238var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 251var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 266var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 276var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 290var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 303var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 316var ingressDir = Path.Combine(workspace.Path, "templates", "empty"); 329var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 362var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 382var ingressDir = Path.Combine(workspace.Path, "templates", "public"); 404var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 437var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 467var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 479var ingressDir = Path.Combine(workspace.Path, "templates", "empty"); 487var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 499var templatesDir = Path.Combine(workspace.Path, "templates", "myapi"); 510var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 535var publicPath = Path.Combine(workspace.Path, "templates", "public-ingress", "public-ingress.yaml"); 536var internalPath = Path.Combine(workspace.Path, "templates", "internal-ingress", "internal-ingress.yaml"); 552var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 570var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 587var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 605var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml"); 656var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 681var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 704var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 721var ingressPath = Path.Combine(workspace.Path, "templates", "public", "public.yaml");
KubernetesPublisherTests.cs (74)
23var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 71var filePath = Path.Combine(workspace.Path, expectedFile); 91var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 110var deploymentPath = Path.Combine(workspace.Path, "templates/service/deployment.yaml"); 122var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 168var filePath = Path.Combine(workspace.Path, expectedFile); 188var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 212var manifestPath = Path.Combine(workspace.Path, "templates/myapp/scaler.yaml"); 254var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 290var filePath = Path.Combine(workspace.Path, expectedFile); 310var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 346var filePath = Path.Combine(workspace.Path, expectedFile); 366var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 378var dockerfilePath = Path.Combine(workspace.Path, "testcontainer.Dockerfile"); 389var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 453var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 463var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 546var deploymentPath = Path.Combine(workspace.Path, "templates/myapp/deployment.yaml"); 606var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 642var filePath = Path.Combine(workspace.Path, expectedFile); 662var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 688var filePath = Path.Combine(workspace.Path, expectedFile); 706var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 714var servicePath = Path.Combine(workspace.Path, "templates/database/service.yaml"); 727var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 750var filePath = Path.Combine(workspace.Path, expectedFile); 777var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 802var filePath = Path.Combine(workspace.Path, expectedFile); 825var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 847var filePath = Path.Combine(workspace.Path, expectedFile); 865var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 892var filePath = Path.Combine(workspace.Path, expectedFile); 912var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 938var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 964var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 988var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1024var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1047var filePath = Path.Combine(workspace.Path, expectedFile); 1067var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1093var filePath = Path.Combine(workspace.Path, expectedFile); 1113var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1154var filePath = Path.Combine(workspace.Path, expectedFile); 1174var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1205var filePath = Path.Combine(workspace.Path, expectedFile); 1225var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1267var filePath = Path.Combine(workspace.Path, expectedFile); 1287var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1326var filePath = Path.Combine(workspace.Path, expectedFile); 1346var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1380var filePath = Path.Combine(workspace.Path, expectedFile); 1410var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1437var filePath = Path.Combine(workspace.Path, expectedFile); 1456var legacyPv = Path.Combine(workspace.Path, "templates", "service", "data-pv.yaml"); 1471var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1486var deploymentPath = Path.Combine(workspace.Path, "templates", "service", "deployment.yaml"); 1504var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1531var filePath = Path.Combine(workspace.Path, expectedFile); 1544var legacyPvc = Path.Combine(workspace.Path, "templates", "service", "data-pvc.yaml"); 1548var deploymentPath = Path.Combine(workspace.Path, "templates", "service", "deployment.yaml"); 1561var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1586var filePath = Path.Combine(workspace.Path, expectedFile); 1604var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1622var statefulSetPath = Path.Combine(workspace.Path, "templates", "api", "statefulset.yaml"); 1632var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1649var statefulSetPath = Path.Combine(workspace.Path, "templates", "api", "statefulset.yaml"); 1673var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1689var statefulSetPath = Path.Combine(workspace.Path, "templates", "service", "statefulset.yaml"); 1695var pvcPath = Path.Combine(workspace.Path, "templates", "data", "data.yaml"); 1713var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1744var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1759var statefulSetPath = Path.Combine(workspace.Path, "templates", "api", "statefulset.yaml"); 1806var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 1833var pvcPath = Path.Combine(workspace.Path, "templates", "data", "data.yaml"); 1845var valuesPath = Path.Combine(workspace.Path, "values.yaml");
Aspire.Hosting.Maui.Tests (53)
MauiiOSValidationTests.cs (6)
23var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 48var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 73var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 93var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 111var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 129var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiOtlpTemplateTests.cs (3)
25var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 52var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 75var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiPlatformExtensionsTests.cs (27)
94var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 117var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 137var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 156var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 185var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 233var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 252var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 276var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 304var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 330var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 353var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 376var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 399var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 427var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 452var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 481var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 506var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 533var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 561var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 591var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 615var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 638var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 676var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 728var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 792var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 816var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 843var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiUnsupportedPlatformTests.cs (6)
17var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 41var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 65var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 89var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 114var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 129var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
MauiWithArgsTests.cs (11)
20var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 38var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 57var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 77var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 94var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 114var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 131var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 150var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 167var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 187var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj"); 209var tempFile = Path.Combine(workspace.Path, "TempMauiProject.csproj");
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (1)
262builder.Configuration["Aspire:Store:Path"] = workspace.Path;
MySqlFunctionalTests.cs (1)
572.WithTempAspireStore(workspace.Path)
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (2)
481builder.Configuration["Aspire:Store:Path"] = workspace.Path; 543builder.Configuration["Aspire:Store:Path"] = workspace.Path;
PostgresFunctionalTests.cs (1)
559.WithTempAspireStore(workspace.Path)
Aspire.Hosting.Python.Tests (109)
AddPythonAppTests.cs (109)
397builder.AddPythonApp("pythonProject", workspace.Path, "main.py")); 410builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 419var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 443builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 483var resourceBuilder = builder.AddPythonApp("pythonProject", workspace.Path, scriptName); 502var resourceBuilder = builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 557options.ProjectDirectory = workspace.Path; 603options.ProjectDirectory = workspace.Path; 677options.ProjectDirectory = workspace.Path; 732var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 742var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 763var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 783builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 821var pythonBuilder = builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 841var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 865var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 896var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 923var pythonBuilder = builder.AddPythonApp("python-script", workspace.Path, "main.py"); 942var pythonBuilder = builder.AddPythonModule("flask-app", workspace.Path, "flask"); 961var pythonBuilder = builder.AddPythonExecutable("pytest", workspace.Path, "pytest"); 982builder.AddPythonApp("pythonProject", workspace.Path, scriptName); 992var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 1018builder.AddPythonModule("pythonProject", workspace.Path, moduleName); 1026var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 1052builder.AddPythonExecutable("pythonProject", workspace.Path, executableName); 1060var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.Path)); 1083var pythonBuilder = builder.AddPythonModule("flask-app", workspace.Path, "flask") 1107var pythonBuilder = builder.AddPythonApp("python-app", workspace.Path, "main.py") 1129var pythonBuilder = builder.AddPythonExecutable("pytest", workspace.Path, "pytest") 1151var pythonBuilder = builder.AddPythonApp("python-app", workspace.Path, "main.py") 1181var pythonBuilder = builder.AddPythonApp("python-app", workspace.Path, "main.py"); 1228var resourceBuilder = builder.AddPythonApp("pythonProject", workspace.Path, "main.py"); 1397var appDirectory = Path.Combine(workspace.Path, "myapp"); 1399var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1441var appDirectory = Path.Combine(workspace.Path, "myapp"); 1443var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1481var appDirectory = Path.Combine(workspace.Path, "myapp"); 1483var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1516var appDirectory = Path.Combine(workspace.Path, "myapp"); 1518var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1537var appDirectory = Path.Combine(workspace.Path, "myapp"); 1539var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1561var appDirectory = Path.Combine(workspace.Path, "myapp"); 1563var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1585var appDirectory = Path.Combine(workspace.Path, "myapp"); 1587var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1589var customWorkingDirectory = Path.Combine(workspace.Path, "custom"); 1612var appDirectory = Path.Combine(workspace.Path, "myapp"); 1614var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1616var customWorkingDirectory = Path.Combine(workspace.Path, "custom"); 1653var appDirectory = Path.Combine(workspace.Path, "myapp"); 1655var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1686var appDirectory = Path.Combine(workspace.Path, "myapp"); 1688var virtualEnvironmentPath = Path.Combine(workspace.Path, ".venv"); 1715var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py"); 1737var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py"); 1755var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py"); 2008var scriptPath = Path.Combine(workspace.Path, scriptName); 2012var pyprojectPath = Path.Combine(workspace.Path, "pyproject.toml"); 2015var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName); 2042var scriptPath = Path.Combine(workspace.Path, scriptName); 2046var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2049var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName); 2077var scriptPath = Path.Combine(workspace.Path, scriptName); 2081var pyprojectPath = Path.Combine(workspace.Path, "pyproject.toml"); 2083var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2086var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName); 2107var scriptPath = Path.Combine(workspace.Path, scriptName); 2110var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, scriptName); 2131var scriptPath = Path.Combine(workspace.Path, scriptName); 2135builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 2154var scriptPath = Path.Combine(workspace.Path, scriptName); 2158var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2162builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 2182var scriptPath = Path.Combine(workspace.Path, scriptName); 2186var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2190builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 2211var scriptPath = Path.Combine(workspace.Path, "main.py"); 2214var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2239var scriptPath = Path.Combine(workspace.Path, "main.py"); 2243var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2246var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2282var scriptPath = Path.Combine(workspace.Path, "main.py"); 2285var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2288var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2312var scriptPath = Path.Combine(workspace.Path, "main.py"); 2315var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2318var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2346var scriptPath = Path.Combine(workspace.Path, "main.py"); 2349var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2353var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2382var scriptPath = Path.Combine(workspace.Path, "main.py"); 2385var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2389var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2412var scriptPath = Path.Combine(workspace.Path, "main.py"); 2415var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2419var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2444var scriptPath = Path.Combine(workspace.Path, "main.py"); 2447var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2451var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2476var scriptPath = Path.Combine(workspace.Path, "main.py"); 2479var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2482var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2512var scriptPath = Path.Combine(workspace.Path, "main.py"); 2515var pythonApp = builder.AddPythonApp("pythonProject", workspace.Path, "main.py") 2547builder.AddPythonApp("pythonProject", workspace.Path, scriptName) 2566var scriptPath = Path.Combine(workspace.Path, scriptName); 2569var requirementsPath = Path.Combine(workspace.Path, "requirements.txt"); 2572builder.AddPythonApp("pythonProject", workspace.Path, scriptName)
Aspire.Hosting.Tests (1)
PublishAsDockerfileTests.cs (1)
515File.WriteAllText(Path.Join(workspace.Path, "Dockerfile"), "this does not matter");
Aspire.Hosting.TestUtilities (1)
tests\Shared\TemporaryWorkspace.cs (1)
238var aspireDir = IOPath.Combine(workspace.Path, ".aspire");
Aspire.Hosting.Yarp.Tests (8)
AddYarpTests.cs (6)
171var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.Path); 186var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.Path); 200var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.Path); 212var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.Path); 216Assert.Contains(workspace.Path, annotation.ContextPath); 225var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.Path);
YarpConfigGeneratorTests.cs (2)
267using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.Path); 292var composeFile = Path.Combine(workspace.Path, "docker-compose.yaml");