1457 references to Path
Aspire.Hosting.Azure.Kubernetes.Tests (6)
AzureKubernetesFoundryReferenceTests.cs (1)
51
var valuesPath = Directory.EnumerateFiles(workspace.
Path
, "values.yaml", SearchOption.AllDirectories).Single();
AzureKubernetesIngressTests.cs (1)
32
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
AzureKubernetesPersistentVolumeTests.cs (3)
40
var claimPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
92
var claimPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
96
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "service", "statefulset.yaml");
AzureKubernetesTestBuilder.cs (1)
31
.Create(operation, workspace.
Path
, step: step)
Aspire.Hosting.Azure.Kusto.Tests (2)
KustoFunctionalTests.cs (2)
247
container.WithBindMount(workspace.
Path
, dbPath);
271
return Directory.GetFileSystemEntries(workspace.
Path
, searchPattern, enumerationOptions);
Aspire.Hosting.Azure.Tests (55)
AzureAppServiceTests.cs (10)
216
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
, step: "validate-appservice-config-env");
257
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
, step: "validate-appservice-config-env");
289
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "validate-appservice-config-env");
592
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
);
608
var mainBicepPath = Path.Combine(workspace.
Path
, "main.bicep");
612
var envBicepPath = Path.Combine(workspace.
Path
, "env", "env.bicep");
616
var apiBicepPath = Path.Combine(workspace.
Path
, "api", "api.bicep");
788
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
, step: "publish-manifest");
809
Path.Combine(workspace.
Path
, "aspire-manifest.json"),
818
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
);
AzureBicepResourceTests.cs (4)
260
var bicepFilePath = Path.Combine(workspace.
Path
, bicepFileName);
267
var outputDir = Path.Combine(workspace.
Path
, "output");
285
var bicepFilePath = Path.Combine(workspace.
Path
, bicepFileName);
309
var outputDir = Path.Combine(workspace.
Path
, "output");
AzureContainerAppEnvironmentExtensionsTests.cs (3)
552
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
);
565
var mainBicepPath = Path.Combine(workspace.
Path
, "main.bicep");
569
var envBicepPath = Path.Combine(workspace.
Path
, "env", "env.bicep");
AzureContainerAppExpressEndpointTests.cs (2)
202
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
);
237
Assert.True(File.Exists(Path.Combine(workspace.
Path
, "main.bicep")));
AzureContainerAppsTests.cs (11)
1963
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputHelper, workspace.
Path
, step: "publish-manifest");
1981
await VerifyFile(Path.Combine(workspace.
Path
, "aspire-manifest.json"));
2085
workspace.
Path
,
2115
workspace.
Path
,
2235
workspace.
Path
,
2261
workspace.
Path
,
2290
workspace.
Path
,
2319
workspace.
Path
,
2775
File.WriteAllText(Path.Combine(workspace.
Path
, "Dockerfile"), "FROM alpine");
2777
builder.AddDockerfile("with-bind-mount", workspace.
Path
)
2778
.WithBindMount(workspace.
Path
, "/app/data");
AzureEnvironmentResourceTests.cs (16)
188
workspace.
Path
);
203
var mainBicep = File.ReadAllText(Path.Combine(workspace.
Path
, "main.bicep"));
211
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, output, workspace.
Path
);
248
var mainBicep = File.ReadAllText(Path.Combine(workspace.
Path
, "main.bicep"));
257
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, output, workspace.
Path
);
264
var outputPath = Path.Combine(workspace.
Path
, "exclude-main");
286
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, output, workspace.
Path
);
293
var outputPath = Path.Combine(workspace.
Path
, "write-main");
353
output, workspace.
Path
);
367
var mainBicepPath = Path.Combine(workspace.
Path
, "main.bicep");
372
var includedStorageBicepPath = Path.Combine(workspace.
Path
, "included-storage", "included-storage.bicep");
376
var excludedStorageBicepPath = Path.Combine(workspace.
Path
, "excluded-storage", "excluded-storage.bicep");
386
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, output, workspace.
Path
);
398
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
411
remoteInvokeOptions.StartInfo.WorkingDirectory = workspace.
Path
;
412
using var handle = RemoteExecutor.Invoke(RunTest, workspace.
Path
, remoteInvokeOptions);
AzureFunctionsTests.cs (7)
650
var projectPath = Path.Combine(workspace.
Path
, "TestFunctions.csproj");
675
var projectPath = Path.Combine(workspace.
Path
, "MyFunctions.csproj");
697
var projectPath = Path.Combine(workspace.
Path
, "TestFunctions.csproj");
727
var projectPath1 = Path.Combine(workspace.
Path
, "Functions1.csproj");
728
var projectPath2 = Path.Combine(workspace.
Path
, "Functions2.csproj");
750
var projectPath = Path.Combine(workspace.
Path
, "Functions.csproj");
782
var projectPath = Path.Combine(workspace.
Path
, "Functions.csproj");
AzureSandboxesTests.cs (2)
181
workspace.
Path
);
188
var mainBicep = File.ReadAllText(Path.Combine(workspace.
Path
, "main.bicep"));
Aspire.Hosting.Docker.Tests (119)
DockerComposePublisherTests.cs (88)
25
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
100
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
101
var envPath = Path.Combine(workspace.
Path
, ".env");
113
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
123
var compose = File.ReadAllText(Path.Combine(workspace.
Path
, "docker-compose.yaml"));
139
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
161
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
162
var envPath = Path.Combine(workspace.
Path
, ".env");
174
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
184
var compose = File.ReadAllText(Path.Combine(workspace.
Path
, "docker-compose.yaml"));
185
var environment = File.ReadAllText(Path.Combine(workspace.
Path
, ".env"));
194
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
)
209
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
219
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "publish-docker-compose")
238
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
247
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
289
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
291
var envPath = Path.Combine(workspace.
Path
, ".env");
302
var envFilePath = Path.Combine(workspace.
Path
, ".env");
306
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
333
var envFilePath = Path.Combine(workspace.
Path
, ".env");
337
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
374
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
388
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
400
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
414
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
429
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
446
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
461
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
477
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
492
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
505
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
518
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
539
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
550
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
563
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
578
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
591
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
607
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
621
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
635
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
650
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
663
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
682
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
694
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
707
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
719
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run, workspace.
Path
);
731
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
740
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
758
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
768
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
787
var envFilePath = Path.Combine(workspace.
Path
, ".env.Staging");
800
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
821
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
831
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
843
var envFilePath = Path.Combine(workspace.
Path
, ".env.Production");
864
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
877
var envFilePath = Path.Combine(workspace.
Path
, ".env.Staging");
894
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
910
var composeContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "docker-compose.yaml"));
911
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
921
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
943
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
952
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
969
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
980
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
994
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
995
var envPath = Path.Combine(workspace.
Path
, ".env");
1008
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1021
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1037
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1052
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1053
var envPath = Path.Combine(workspace.
Path
, ".env");
1065
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1080
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1091
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1116
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1117
var envPath = Path.Combine(workspace.
Path
, ".env");
1130
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1164
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1165
var envPath = Path.Combine(workspace.
Path
, ".env");
1184
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1198
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1199
var envPath = Path.Combine(workspace.
Path
, ".env");
1211
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1242
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1252
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1276
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
DockerComposeTests.cs (25)
51
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
63
var composeFile = Path.Combine(workspace.
Path
, "docker-compose.yaml");
71
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
85
var composeFile = Path.Combine(workspace.
Path
, "docker-compose.yaml");
148
var outputPath = Path.Combine(workspace.
Path
, "output");
175
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
187
var composeFile = Path.Combine(workspace.
Path
, "docker-compose.yaml");
199
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
221
var composeFile = Path.Combine(workspace.
Path
, "docker-compose.yaml");
235
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
260
var composeFile = Path.Combine(workspace.
Path
, "docker-compose.yaml");
320
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: step);
347
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
374
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: WellKnownPipelineSteps.Diagnostics);
422
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: step);
688
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "push-servicea");
719
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "push-servicea");
756
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: WellKnownPipelineSteps.Diagnostics);
804
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: WellKnownPipelineSteps.Diagnostics);
964
["OutputPath"] = workspace.
Path
,
966
["ComposeFilePath"] = Path.Combine(workspace.
Path
, "docker-compose.yaml")
970
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: WellKnownPipelineSteps.Destroy);
1007
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: WellKnownPipelineSteps.Destroy);
1039
var deployBuilder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: WellKnownPipelineSteps.Deploy);
1063
var destroyBuilder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: WellKnownPipelineSteps.Destroy);
EnvFileTests.cs (6)
12
var envFilePath = Path.Combine(workspace.
Path
, ".env");
38
var envFilePath = Path.Combine(workspace.
Path
, ".env");
64
var envFilePath = Path.Combine(workspace.
Path
, ".env");
104
var envFilePath = Path.Combine(workspace.
Path
, ".env");
129
var envFilePath = Path.Combine(workspace.
Path
, ".env");
146
var envFilePath = Path.Combine(workspace.
Path
, ".env");
Aspire.Hosting.Dotnet.Tests (287)
DotnetProjectBuildArtifactManagerTests.cs (7)
18
var buildDirectory = Path.Combine(workspace.
Path
, ".aspire", "build");
45
var buildDirectory = Path.Combine(workspace.
Path
, ".aspire", "build");
78
var buildDirectory = Path.Combine(workspace.
Path
, ".aspire", "build");
114
var buildDirectory = Path.Combine(workspace.
Path
, ".aspire", "build");
139
var buildDirectory = Path.Combine(workspace.
Path
, ".aspire", "build");
153
var buildDirectory = Path.Combine(workspace.
Path
, ".aspire", "build");
168
var buildDirectory = Path.Combine(workspace.
Path
, ".aspire", "build");
DotnetProjectBuildCoordinatorTests.cs (241)
39
options => options.ProjectDirectory = workspace.
Path
,
101
options => options.ProjectDirectory = workspace.
Path
,
104
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
132
var globalJsonPath = Path.Combine(workspace.
Path
, "global.json");
137
options => options.ProjectDirectory = workspace.
Path
,
146
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
193
options => options.ProjectDirectory = workspace.
Path
,
203
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
204
var firstDotnetPath = Path.Combine(workspace.
Path
, "first-sdk");
205
var secondDotnetPath = Path.Combine(workspace.
Path
, "second-sdk");
263
options => options.ProjectDirectory = workspace.
Path
,
275
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
292
options => options.ProjectDirectory = workspace.
Path
,
301
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
319
options => options.ProjectDirectory = workspace.
Path
,
324
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
338
options => options.ProjectDirectory = workspace.
Path
,
347
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
363
options => options.ProjectDirectory = workspace.
Path
,
365
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
406
options => options.ProjectDirectory = workspace.
Path
,
409
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
476
options => options.ProjectDirectory = workspace.
Path
,
479
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
480
var fileDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "worker"));
565
options => options.ProjectDirectory = workspace.
Path
,
567
var sharedProject = CreateSharedProject(workspace.
Path
);
568
var firstPath = CreateFileApp(workspace.
Path
, "First", sharedProject);
569
var secondPath = CreateFileApp(workspace.
Path
, "Second", sharedProject);
570
var firstSentinel = Path.Combine(workspace.
Path
, "first-ran.txt");
571
var secondSentinel = Path.Combine(workspace.
Path
, "second-ran.txt");
636
var appPath = Path.Combine(workspace.
Path
, "worker.cs");
637
var sentinelPath = Path.Combine(workspace.
Path
, "worker-ran.txt");
641
options => options.ProjectDirectory = workspace.
Path
,
720
options => options.ProjectDirectory = workspace.
Path
,
722
var firstProject = CreateProject(workspace.
Path
, "First's Project", "First.csproj");
723
var secondProject = CreateProject(workspace.
Path
, "Second", "Second.csproj");
752
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
753
var customTargetsPath = Path.Combine(workspace.
Path
, "CustomNuGet.targets");
763
workspace.
Path
,
764
Path.Combine(workspace.
Path
, "obj", ".aspire", "build"),
768
workspace.
Path
,
776
WorkingDirectory = workspace.
Path
,
807
var projectPath = CreateProjectFile(workspace.
Path
, "Service", """
816
workspace.
Path
,
817
Path.Combine(workspace.
Path
, "obj", ".aspire", "build"),
821
workspace.
Path
,
827
var missingTargetsPath = Path.Combine(workspace.
Path
, "missing", "NuGet.targets");
830
WorkingDirectory = workspace.
Path
,
863
using var builder = TestDistributedApplicationBuilder.Create(options => options.ProjectDirectory = workspace.
Path
, outputHelper);
864
var aspireStoreRoot = Path.Combine(workspace.
Path
, "custom-obj");
866
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
882
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
883
var buildDirectory = Path.Combine(workspace.
Path
, "obj", ".aspire", "build");
884
using var unified = new DotnetProjectBuildResource("unified", workspace.
Path
, buildDirectory, TimeProvider.System);
885
using var individual = new DotnetProjectBuildResource("individual", workspace.
Path
, buildDirectory, TimeProvider.System);
886
unified.ConfigureTraversalBuild([projectPath], workspace.
Path
, buildConfiguration: null, restoreProjectsIndividually: false);
887
individual.ConfigureTraversalBuild([projectPath], workspace.
Path
, buildConfiguration: null, restoreProjectsIndividually: true);
905
options => options.ProjectDirectory = workspace.
Path
,
907
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
1004
workspace.
Path
,
1005
Path.Combine(workspace.
Path
, "obj", ".aspire", "build"),
1009
workspace.
Path
,
1058
workspace.
Path
,
1059
Path.Combine(workspace.
Path
, "obj", ".aspire", "build"),
1061
var projectPath = CreateProject(workspace.
Path
, "Service", "App.csproj");
1062
var caseVariantPath = Path.Combine(workspace.
Path
, "service", "app.CSPROJ");
1066
CreateProject(workspace.
Path
, "service", "app.CSPROJ");
1089
options => options.ProjectDirectory = workspace.
Path
,
1091
var aspireStoreRoot = Path.Combine(workspace.
Path
, "custom-obj");
1093
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1094
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1146
options => options.ProjectDirectory = workspace.
Path
,
1148
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1149
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1169
options => options.ProjectDirectory = workspace.
Path
,
1171
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1172
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1192
options => options.ProjectDirectory = workspace.
Path
,
1194
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1195
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1221
options => options.ProjectDirectory = workspace.
Path
,
1223
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1224
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1243
options => options.ProjectDirectory = workspace.
Path
,
1245
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1246
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1269
options => options.ProjectDirectory = workspace.
Path
,
1287
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1307
options => options.ProjectDirectory = workspace.
Path
,
1309
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1336
options => options.ProjectDirectory = workspace.
Path
,
1338
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1370
options => options.ProjectDirectory = workspace.
Path
,
1372
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1410
options => options.ProjectDirectory = workspace.
Path
,
1412
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1481
options => options.ProjectDirectory = workspace.
Path
,
1483
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1484
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1511
options => options.ProjectDirectory = workspace.
Path
,
1513
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1534
options => options.ProjectDirectory = workspace.
Path
,
1536
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1556
options => options.ProjectDirectory = workspace.
Path
,
1558
var appPath = Path.Combine(workspace.
Path
, "app.cs");
1576
options => options.ProjectDirectory = workspace.
Path
,
1578
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1617
options => options.ProjectDirectory = workspace.
Path
,
1619
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1742
options => options.ProjectDirectory = workspace.
Path
,
1744
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1823
options => options.ProjectDirectory = workspace.
Path
,
1825
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1874
options => options.ProjectDirectory = workspace.
Path
,
1876
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1944
options => options.ProjectDirectory = workspace.
Path
,
1946
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1973
options => options.ProjectDirectory = workspace.
Path
,
1975
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1976
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
2014
options => options.ProjectDirectory = workspace.
Path
,
2016
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
2018
var runtimeWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "runtime")).FullName;
2019
var sdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "sdk-runtime")).FullName;
2063
options => options.ProjectDirectory = workspace.
Path
,
2065
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
2067
var firstSdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "sdk-runtime-1")).FullName;
2068
var secondSdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "sdk-runtime-2")).FullName;
2108
options => options.ProjectDirectory = workspace.
Path
,
2110
var sourceRoot = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "source")).FullName;
2114
var runtimeWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "runtime")).FullName;
2133
options => options.ProjectDirectory = workspace.
Path
,
2136
Directory.CreateDirectory(Path.Combine(workspace.
Path
, "source")).FullName,
2140
var foreignRoot = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "foreign")).FullName;
2168
options => options.ProjectDirectory = workspace.
Path
,
2170
var activePath = CreateProject(workspace.
Path
, "Active", "Active.csproj");
2171
var removedPath = CreateProject(workspace.
Path
, "Removed", "Removed.csproj");
2192
options => options.ProjectDirectory = workspace.
Path
,
2194
var activePath = CreateProject(workspace.
Path
, "Active", "Active.csproj");
2195
var replacedPath = CreateProject(workspace.
Path
, "Replaced", "Replaced.csproj");
2202
@event.Model.Resources[index] = new ExecutableResource(replaced.Resource.Name, "dotnet", workspace.
Path
);
2218
options => options.ProjectDirectory = workspace.
Path
,
2220
var projectPath = CreateProject(workspace.
Path
, "Project", "Project.csproj");
2221
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
2268
options => options.ProjectDirectory = workspace.
Path
,
2270
var firstPath = CreateProject(workspace.
Path
, "First", "First.csproj");
2271
var secondPath = CreateProject(workspace.
Path
, "Second", "Second.csproj");
2315
options => options.ProjectDirectory = workspace.
Path
,
2317
var physicalRoot = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "Physical"));
2327
var linkPath = Path.Combine(workspace.
Path
, "Alias");
2338
var otherProjectPath = CreateProject(workspace.
Path
, "Other", "Other.csproj");
2365
options => options.ProjectDirectory = workspace.
Path
,
2367
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2389
options => options.ProjectDirectory = workspace.
Path
,
2391
var removedProjectPath = CreateProject(workspace.
Path
, "Removed", "Removed.csproj");
2398
var activeProjectPath = CreateProject(workspace.
Path
, "Active", "Active.csproj");
2419
options => options.ProjectDirectory = workspace.
Path
,
2421
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2449
options => options.ProjectDirectory = workspace.
Path
,
2451
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2482
options => options.ProjectDirectory = workspace.
Path
,
2484
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2515
options => options.ProjectDirectory = workspace.
Path
,
2517
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2540
options => options.ProjectDirectory = workspace.
Path
,
2542
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2543
var removedPath = CreateProject(workspace.
Path
, "Removed", "Removed.csproj");
2544
var missingPath = Path.Combine(workspace.
Path
, "Missing", "Missing.csproj");
2567
options => options.ProjectDirectory = workspace.
Path
,
2569
var firstPath = CreateProject(workspace.
Path
, "First", "First.csproj");
2570
var secondPath = CreateProject(workspace.
Path
, "Second", "Second.csproj");
2626
options => options.ProjectDirectory = workspace.
Path
,
2628
var projectPath = CreateProject(workspace.
Path
, "Service", "App.csproj");
2629
var linkDirectory = Path.Combine(workspace.
Path
, "ServiceAlias");
2668
workspace.
Path
,
2669
Path.Combine(workspace.
Path
, "obj", ".aspire", "build"),
2671
buildResource.AddProject(CreateProject(workspace.
Path
, "Api", "Api.csproj"));
2710
var sharedProject = CreateSharedProject(workspace.
Path
);
2711
var apiProject = CreateConsoleProject(workspace.
Path
, "Api", sharedProject);
2712
var workerProject = CreateConsoleProject(workspace.
Path
, "Worker", sharedProject);
2713
var escapedDirectory = Path.Combine(workspace.
Path
, "Api's Project 100% (test)");
2716
var apiSentinel = Path.Combine(workspace.
Path
, "api-ran.txt");
2717
var workerSentinel = Path.Combine(workspace.
Path
, "worker-ran.txt");
2720
options => options.ProjectDirectory = workspace.
Path
,
2771
var sharedProject = CreateSharedProject(workspace.
Path
);
2772
var projectPath = CreateConsoleProject(workspace.
Path
, "Api", sharedProject);
2780
var sentinels = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "instances")).FullName;
2782
options => options.ProjectDirectory = workspace.
Path
,
2823
var projectPath = CreateBrokenProject(workspace.
Path
, "REPLICAS_BUILD_FAILED");
2825
options => options.ProjectDirectory = workspace.
Path
,
2857
var firstProject = CreateSentinelProject(workspace.
Path
, "First", """
2862
var secondProject = CreateSentinelProject(workspace.
Path
, "Second", """
2868
var firstSentinel = Path.Combine(workspace.
Path
, "first-ran.txt");
2869
var secondSentinel = Path.Combine(workspace.
Path
, "second-ran.txt");
2872
options => options.ProjectDirectory = workspace.
Path
,
2912
var brokenProject = CreateBrokenProject(workspace.
Path
, "FIRST_BUILD_FAILED");
2913
var secondBuildMarker = Path.Combine(workspace.
Path
, "second-built.txt");
2914
var secondProject = CreateSentinelProject(workspace.
Path
, "Second", $$"""
2919
var secondSentinel = Path.Combine(workspace.
Path
, "second-ran.txt");
2922
options => options.ProjectDirectory = workspace.
Path
,
2967
var validProject = CreateProjectFile(workspace.
Path
, "Valid", """
2978
var sentinelPath = Path.Combine(workspace.
Path
, "valid-ran.txt");
2979
var missingProject = Path.Combine(workspace.
Path
, "Missing", "Missing.csproj");
2982
options => options.ProjectDirectory = workspace.
Path
,
3022
options => options.ProjectDirectory = workspace.
Path
,
3030
var missingPath = Path.Combine(workspace.
Path
, "Missing", $"Missing.{extension}");
3055
var projectPath = CreateProjectFile(workspace.
Path
, "EnvironmentBuild", """
3078
var sentinelPath = Path.Combine(workspace.
Path
, "environment-build-ran.txt");
3091
options => options.ProjectDirectory = workspace.
Path
,
3129
var projectPath = CreateProjectWithBuildProducedRunPropertiesSentinel(workspace.
Path
);
3132
options => options.ProjectDirectory = workspace.
Path
,
3185
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
3186
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
3189
options => options.ProjectDirectory = workspace.
Path
, outputHelper);
3218
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
3220
options => options.ProjectDirectory = workspace.
Path
, outputHelper);
3290
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
3292
options => options.ProjectDirectory = workspace.
Path
, outputHelper);
3334
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
3336
options => options.ProjectDirectory = workspace.
Path
, outputHelper);
3369
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
3371
options => options.ProjectDirectory = workspace.
Path
, outputHelper);
3418
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
3419
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
3422
options => options.ProjectDirectory = workspace.
Path
, outputHelper);
3452
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
3453
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
3456
options => options.ProjectDirectory = workspace.
Path
,
3510
var projectPath = CreateProject(workspace.
Path
, "EnvironmentBuild", "EnvironmentBuild.csproj");
3513
options => options.ProjectDirectory = workspace.
Path
,
3519
Path.Combine(workspace.
Path
, "missing-dotnet");
3554
var brokenProject = CreateBrokenProject(workspace.
Path
, buildLogMarker);
3555
var fileApp = Path.Combine(workspace.
Path
, "worker.cs");
3556
var sentinel = Path.Combine(workspace.
Path
, "worker-ran.txt");
3566
options => options.ProjectDirectory = workspace.
Path
,
3617
var releaseBuild = Path.Combine(workspace.
Path
, "release-build");
3618
var brokenProject = CreateGatedBrokenProject(workspace.
Path
, releaseBuild);
3619
var fileApp = Path.Combine(workspace.
Path
, "worker.cs");
3620
var sentinel = Path.Combine(workspace.
Path
, "worker-ran.txt");
3630
options => options.ProjectDirectory = workspace.
Path
,
DotnetProjectOptionsTests.cs (3)
26
var projectPath = await CreateProjectAsync(workspace.
Path
, includeKestrel: false);
49
var projectPath = await CreateProjectAsync(workspace.
Path
, includeKestrel: false);
71
var projectPath = await CreateProjectAsync(workspace.
Path
, includeKestrel: true);
DotnetProjectResourceTests.cs (31)
171
"project" => CreateFile(workspace.
Path
, "MyService.csproj"),
172
"directory" => CreateProjectDirectory(workspace.
Path
),
173
"file" => CreateFile(workspace.
Path
, "service.cs"),
180
var manifest = await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
182
var expectedPath = Path.GetRelativePath(workspace.
Path
, metadata.ProjectPath).Replace('\\', '/');
196
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
213
var resource = new DotnetProjectResource("svc", workspace.
Path
);
215
() => ManifestUtils.GetManifest(resource, workspace.
Path
));
227
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
235
var manifest = await ManifestUtils.GetManifestOrNull(resource.Resource, workspace.
Path
);
243
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
251
var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.
Path
);
259
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
260
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "Dockerfile"), "FROM scratch");
269
var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.
Path
);
299
var appPath = Path.Combine(workspace.
Path
, "app.cs");
306
var archivePath = Path.Combine(workspace.
Path
, "app.tar.gz");
334
var sentinelDockerfilePath = Path.Combine(workspace.
Path
, "Dockerfile.sentinel");
335
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "sentinel.txt"), marker, cancellation.Token);
338
workspace.
Path
,
382
var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "project"));
398
var archivePath = Path.Combine(workspace.
Path
, "project.tar.gz");
425
var projectPath = Path.Combine(workspace.
Path
, "Project.csproj");
432
context.OutputPath = Path.Combine(workspace.
Path
, "project.tar");
451
var projectDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "project"));
453
var runtimeDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "runtime"));
477
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
495
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "AmbiguousService"));
562
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
665
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
735
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
DotnetProjectRunPropertiesResolverTests.cs (5)
20
var projectPath = Path.Combine(workspace.
Path
, "Broken.csproj");
39
workspace.
Path
,
55
var projectPath = Path.Combine(workspace.
Path
, "Warning.csproj");
73
workspace.
Path
,
77
Assert.Equal(new("dotnet", "exec app.dll", Path.Combine(workspace.
Path
, "bin")), result);
Aspire.Hosting.Go.Tests (11)
GoVersionDetectorTests.cs (11)
13
var version = GoVersionDetector.Detect(workspace.
Path
);
22
File.WriteAllText(Path.Combine(workspace.
Path
, "go.mod"), "module example.com/m\n\ngo 1.23\n");
24
var version = GoVersionDetector.Detect(workspace.
Path
);
33
File.WriteAllText(Path.Combine(workspace.
Path
, "go.mod"), "module example.com/m\n\ngo 1.23.4\n");
35
var version = GoVersionDetector.Detect(workspace.
Path
);
44
File.WriteAllText(Path.Combine(workspace.
Path
, "go.mod"),
47
var version = GoVersionDetector.Detect(workspace.
Path
);
57
File.WriteAllText(Path.Combine(workspace.
Path
, "go.mod"),
60
var version = GoVersionDetector.Detect(workspace.
Path
);
69
File.WriteAllText(Path.Combine(workspace.
Path
, "go.mod"), "module example.com/m\n");
71
var version = GoVersionDetector.Detect(workspace.
Path
);
Aspire.Hosting.Java.Tests (4)
AddJavaAppPublishTests.cs (4)
48
Directory.CreateDirectory(Path.Combine(workspace.
Path
, "build", "libs"));
52
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "build", "libs", "reports service.jar"), "");
54
var destination = Path.Combine(workspace.
Path
, "app.jar");
60
WorkingDirectory = workspace.
Path
,
Aspire.Hosting.JavaScript.Tests (486)
AddBunAppTests.cs (31)
34
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
36
var appDir = Path.Combine(workspace.
Path
, "js");
46
await ManifestUtils.GetManifest(bunApp.Resource, workspace.
Path
);
48
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
62
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
64
var appDir = Path.Combine(workspace.
Path
, "js");
73
await ManifestUtils.GetManifest(bunApp.Resource, workspace.
Path
);
75
await Verify(File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile")));
82
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
84
var appDir = Path.Combine(workspace.
Path
, "js");
90
await ManifestUtils.GetManifest(bunApp.Resource, workspace.
Path
);
95
var perDockerfileIgnorePath = Path.Combine(workspace.
Path
, "js.Dockerfile.dockerignore");
113
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
115
var appDir = Path.Combine(workspace.
Path
, "js");
121
await ManifestUtils.GetManifest(bunApp.Resource, workspace.
Path
);
123
var perDockerfileIgnorePath = Path.Combine(workspace.
Path
, "js.Dockerfile.dockerignore");
133
await ManifestUtils.GetManifest(bunApp.Resource, workspace.
Path
);
145
File.WriteAllText(Path.Combine(workspace.
Path
, "server.ts"), "console.log('hi');");
149
builder.AddBunApp("bunapp", workspace.
Path
, "server.ts");
167
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), "{}");
171
builder.AddBunApp("bunapp", workspace.
Path
, "server.ts");
219
var bunApp = builder.AddBunApp("bunapp", workspace.
Path
, "server.ts");
311
var bunApp = builder.AddBunApp("bunapp", workspace.
Path
, "server.ts");
324
var bunApp = builder.AddBunApp("bunapp", workspace.
Path
, "server.ts");
336
var bunApp = builder.AddBunApp("bunapp", workspace.
Path
, "server.ts")
351
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), "{}");
353
var bunApp = builder.AddBunApp("bunapp", workspace.
Path
, "server.ts")
366
var bunApp = builder.AddBunApp("bunapp", workspace.
Path
, "server.ts");
373
Assert.Equal(Path.GetFullPath("server.ts", workspace.
Path
), launchConfig.ScriptPath);
384
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), "{}");
386
var bunApp = builder.AddBunApp("bunapp", workspace.
Path
, "server.ts")
AddDenoAppTests.cs (221)
61
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
63
var appDir = Path.Combine(workspace.
Path
, "js");
73
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
75
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
89
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
91
var appDir = Path.Combine(workspace.
Path
, "js");
100
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
102
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
112
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
114
var appDir = Path.Combine(workspace.
Path
, "js");
120
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
125
var perDockerfileIgnorePath = Path.Combine(workspace.
Path
, "js.Dockerfile.dockerignore");
144
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
146
var appDir = Path.Combine(workspace.
Path
, "js");
151
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
153
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
179
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
181
var appDir = Path.Combine(workspace.
Path
, "js");
188
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
190
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
199
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
201
var appDir = Path.Combine(workspace.
Path
, "js");
211
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
213
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
223
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
225
var appDir = Path.Combine(workspace.
Path
, "js");
237
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
239
await Verify(File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile")));
246
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
248
var appDir = Path.Combine(workspace.
Path
, "js");
255
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
257
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
266
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
268
var appDir = Path.Combine(workspace.
Path
, "js");
280
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
282
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
293
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
295
var appDir = Path.Combine(workspace.
Path
, "js");
304
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
306
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
319
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
321
var appDir = Path.Combine(workspace.
Path
, "js");
335
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
337
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
350
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
352
var appDir = Path.Combine(workspace.
Path
, "js");
359
() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
370
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
372
var appDir = Path.Combine(workspace.
Path
, "js");
379
() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
390
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
392
var appDir = Path.Combine(workspace.
Path
, "js");
400
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
402
var dockerfileLines = File.ReadAllLines(Path.Combine(workspace.
Path
, "js.Dockerfile"));
414
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
416
var appDir = Path.Combine(workspace.
Path
, "js");
425
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
427
var dockerfileLines = File.ReadAllLines(Path.Combine(workspace.
Path
, "js.Dockerfile"));
439
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
441
var appDir = Path.Combine(workspace.
Path
, "js");
445
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
447
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
457
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
459
var appDir = Path.Combine(workspace.
Path
, "js");
464
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
466
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
476
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
478
var appDir = Path.Combine(workspace.
Path
, "js");
485
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
487
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
503
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
505
var appDir = Path.Combine(workspace.
Path
, "js");
512
() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
522
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
524
var appDir = Path.Combine(workspace.
Path
, "js");
531
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
533
Assert.False(File.Exists(Path.Combine(workspace.
Path
, "js.Dockerfile")));
540
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
542
var appDir = Path.Combine(workspace.
Path
, "js");
552
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
554
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
567
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
569
var appDir = Path.Combine(workspace.
Path
, "js");
583
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
585
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
610
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
612
var appDir = Path.Combine(workspace.
Path
, "js");
619
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
623
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
631
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
633
var appDir = Path.Combine(workspace.
Path
, "js");
640
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
644
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
652
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
654
var appDir = Path.Combine(workspace.
Path
, "js");
663
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
665
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
674
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
676
var appDir = Path.Combine(workspace.
Path
, "js");
685
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
688
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
696
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
698
var appDir = Path.Combine(workspace.
Path
, "js");
707
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
709
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
725
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
727
var appDir = Path.Combine(workspace.
Path
, "js");
745
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
747
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
756
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
758
var appDir = Path.Combine(workspace.
Path
, "js");
766
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
768
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
860
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
862
var appDir = Path.Combine(workspace.
Path
, "js");
872
await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
874
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
884
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
886
var appDir = Path.Combine(workspace.
Path
, "js");
893
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
895
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
903
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
905
var appDir = Path.Combine(workspace.
Path
, "js");
912
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
914
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
922
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
924
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
927
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
));
936
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
938
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
942
var exception = await Assert.ThrowsAsync<InvalidOperationException>(() => ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
));
951
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
953
var appDir = Path.Combine(workspace.
Path
, "js");
960
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
962
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
972
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
974
var appDir = Path.Combine(workspace.
Path
, "js");
983
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
985
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
995
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
997
var appDir = Path.Combine(workspace.
Path
, "js");
1004
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1006
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1021
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1023
var appDir = Path.Combine(workspace.
Path
, "js");
1029
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1031
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1039
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1041
var appDir = Path.Combine(workspace.
Path
, "js");
1048
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1050
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1060
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1062
var appDir = Path.Combine(workspace.
Path
, "js");
1069
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1071
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1081
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1083
var appDir = Path.Combine(workspace.
Path
, "js");
1092
var manifest = await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1095
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1107
var appDir = Path.Combine(workspace.
Path
, "js");
1125
var appDir = Path.Combine(workspace.
Path
, "js");
1152
var appDir = Path.Combine(workspace.
Path
, "js");
1181
var appDir = Path.Combine(workspace.
Path
, "js");
1200
var appDir = Path.Combine(workspace.
Path
, "js");
1227
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1229
var appDir1 = Path.Combine(workspace.
Path
, "js1");
1230
var appDir2 = Path.Combine(workspace.
Path
, "js2");
1242
await ManifestUtils.GetManifest(denoApp2.Resource, workspace.
Path
);
1244
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js2.Dockerfile"));
1254
File.WriteAllText(Path.Combine(workspace.
Path
, "main.ts"), "console.log('hi');");
1258
builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
1276
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), "{}");
1280
builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
1303
File.WriteAllText(Path.Combine(workspace.
Path
, "deno.json"), "{}");
1307
builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
1325
File.WriteAllText(Path.Combine(workspace.
Path
, "main.ts"), "console.log('hi');");
1328
builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
1493
builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
1508
var app = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
1525
var app = builder.AddJavaScriptApp("js", workspace.
Path
)
1542
var app = builder.AddJavaScriptApp("js", workspace.
Path
)
1560
builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
1577
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1579
var appDir = Path.Combine(workspace.
Path
, "js");
1586
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1588
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1601
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1603
var appDir = Path.Combine(workspace.
Path
, "js");
1611
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1613
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1628
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1630
var appDir = Path.Combine(workspace.
Path
, "js");
1637
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1639
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1648
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1650
var appDir = Path.Combine(workspace.
Path
, "js");
1656
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
1658
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
1683
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
1685
var appDir = Path.Combine(workspace.
Path
, "js");
1692
() => ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
));
2296
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
2336
var exception = Assert.Throws<ArgumentException>(() => builder.AddDenoApp("denoapp", workspace.
Path
, scriptPath));
2347
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
2349
var appDir = Path.Combine(workspace.
Path
, "deno-app");
2358
await ManifestUtils.GetManifest(denoApp.Resource, workspace.
Path
);
2360
var dockerfilePath = Path.Combine(workspace.
Path
, "deno-app.Dockerfile");
2530
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
2543
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
2555
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
2569
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
2576
Assert.Equal(Path.GetFullPath("main.ts", workspace.
Path
), launchConfig.ScriptPath);
2587
File.WriteAllText(Path.Combine(workspace.
Path
, "deno.json"), "{}");
2589
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
2605
File.WriteAllText(Path.Combine(workspace.
Path
, "deno.json"), "{}");
2607
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
2624
File.WriteAllText(Path.Combine(workspace.
Path
, "deno.json"), "{}");
2626
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
2643
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
2659
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts")
2678
var denoApp = builder.AddDenoApp("denoapp", workspace.
Path
, "main.ts");
AddJavaScriptAppTests.cs (80)
25
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
27
var appDir = Path.Combine(workspace.
Path
, "js");
34
await ManifestUtils.GetManifest(yarnApp.Resource, workspace.
Path
);
36
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
47
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
49
var appDir = Path.Combine(workspace.
Path
, "js");
57
await ManifestUtils.GetManifest(yarnApp.Resource, workspace.
Path
);
59
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
67
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
69
var appDir = Path.Combine(workspace.
Path
, "js");
77
await ManifestUtils.GetManifest(yarnApp.Resource, workspace.
Path
);
79
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
87
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
89
var appDir = Path.Combine(workspace.
Path
, "js");
97
await ManifestUtils.GetManifest(yarnApp.Resource, workspace.
Path
);
99
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
109
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
112
var appDir = Path.Combine(workspace.
Path
, "js");
124
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
126
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
136
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
138
var appDir = Path.Combine(workspace.
Path
, "js");
145
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
147
var dockerfileLines = await File.ReadAllLinesAsync(Path.Combine(workspace.
Path
, "js.Dockerfile"));
170
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
172
var appDir = Path.Combine(workspace.
Path
, "js");
185
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
187
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
197
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
199
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
203
var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
214
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
216
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
222
var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifestForModel(appModel, workspace.
Path
));
233
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
235
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
240
var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
254
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
278
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
280
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
284
var manifest = await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
293
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
295
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
302
var manifest = await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
312
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
314
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
321
var manifest = await ManifestUtils.GetManifest(app.Resource, workspace.
Path
);
330
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
332
var appDir = CreateJavaScriptAppWithDockerfile(workspace.
Path
);
337
var exception = await Assert.ThrowsAsync<DistributedApplicationException>(() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
348
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
350
var appDir = Path.Combine(workspace.
Path
, "js");
359
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
361
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
379
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
381
var appDir = Path.Combine(workspace.
Path
, "js");
395
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
397
var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "js.Dockerfile"));
413
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
415
var appDir = Path.Combine(workspace.
Path
, "js");
430
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
432
var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "js.Dockerfile"));
445
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
447
var appDir = Path.Combine(workspace.
Path
, "js");
461
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
463
var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "js.Dockerfile"));
474
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
476
var appDir = Path.Combine(workspace.
Path
, "js");
490
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
492
var dockerfile = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "js.Dockerfile"));
513
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
515
var appDir = Path.Combine(workspace.
Path
, "js");
539
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
542
var appDir = Path.Combine(workspace.
Path
, "pnpm-app");
562
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
564
var dockerfilePath = Path.Combine(workspace.
Path
, "pnpm-app.Dockerfile");
635
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
637
var appDir = Path.Combine(workspace.
Path
, "pnpm-app");
658
await ManifestUtils.GetManifest(pnpmApp.Resource, workspace.
Path
);
660
var dockerfilePath = Path.Combine(workspace.
Path
, "pnpm-app.Dockerfile");
AddNodeAppTests.cs (28)
99
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
101
var appDir = Path.Combine(workspace.
Path
, "js");
112
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
114
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
167
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
169
var appDir = Path.Combine(workspace.
Path
, "js");
181
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
183
var dockerfilePath = Path.Combine(workspace.
Path
, "js.Dockerfile");
214
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
216
var appDir = Path.Combine(workspace.
Path
, "js");
226
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
229
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "js.Dockerfile"));
238
File.WriteAllText(Path.Combine(workspace.
Path
, "app.js"), "{}");
242
builder.AddNodeApp("nodeapp", workspace.
Path
, "app.js");
265
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), "{}");
269
builder.AddNodeApp("nodeapp", workspace.
Path
, "app.js");
442
var nodeApp = builder.AddNodeApp("nodeapp", workspace.
Path
, "app.js");
455
var nodeApp = builder.AddNodeApp("nodeapp", workspace.
Path
, "app.js");
467
var viteApp = builder.AddViteApp("viteapp", workspace.
Path
);
480
var viteApp = builder.AddViteApp("viteapp", workspace.
Path
)
507
var viteApp = builder.AddViteApp("viteapp", workspace.
Path
)
524
var viteApp = builder.AddViteApp("viteapp", workspace.
Path
)
541
var resource = new JavaScriptAppResource("jsapp", "npm", workspace.
Path
);
562
File.WriteAllText(Path.Combine(workspace.
Path
, "app.js"), "console.log('hello');");
564
var nodeApp = builder.AddNodeApp("nodeapp", workspace.
Path
, "app.js")
600
var nodeApp = builder.AddNodeApp("nodeapp", workspace.
Path
, "app.js");
607
Assert.Equal(Path.GetFullPath("app.js", workspace.
Path
), launchConfig.ScriptPath);
616
var viteApp = builder.AddViteApp("viteapp", workspace.
Path
);
AddViteAppTests.cs (101)
25
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
28
var viteDir = Path.Combine(workspace.
Path
, "vite");
37
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
63
var dockerfilePath = Path.Combine(workspace.
Path
, "vite.Dockerfile");
87
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
89
var viteDir = Path.Combine(workspace.
Path
, "vite");
97
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
99
var dockerfilePath = Path.Combine(workspace.
Path
, "vite.Dockerfile");
113
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
115
var viteDir = Path.Combine(workspace.
Path
, "vite");
119
var apiDir = Path.Combine(workspace.
Path
, "api");
130
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
132
var dockerfilePath = Path.Combine(workspace.
Path
, "vite.Dockerfile");
140
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
142
var viteDir = Path.Combine(workspace.
Path
, "vite");
161
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
163
var viteDir = Path.Combine(workspace.
Path
, "vite");
167
var apiDir = Path.Combine(workspace.
Path
, "api");
191
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
193
var appDir = Path.Combine(workspace.
Path
, "angular");
201
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
203
var dockerfilePath = Path.Combine(workspace.
Path
, "angular.Dockerfile");
217
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
219
var appDir = Path.Combine(workspace.
Path
, "vite");
227
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
229
var dockerfilePath = Path.Combine(workspace.
Path
, "vite.Dockerfile");
240
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
242
var nextDir = Path.Combine(workspace.
Path
, "nextjs");
249
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
251
var dockerfilePath = Path.Combine(workspace.
Path
, "nextjs.Dockerfile");
261
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
263
var nextDir = Path.Combine(workspace.
Path
, "nextjs");
270
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
272
var dockerfilePath = Path.Combine(workspace.
Path
, "nextjs.Dockerfile");
280
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
282
var appDir = Path.Combine(workspace.
Path
, "nuxt");
290
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
292
var dockerfilePath = Path.Combine(workspace.
Path
, "nuxt.Dockerfile");
300
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
302
var appDir = Path.Combine(workspace.
Path
, "nuxt");
310
await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
312
var dockerfilePath = Path.Combine(workspace.
Path
, "nuxt.Dockerfile");
322
File.WriteAllText(Path.Combine(workspace.
Path
, ".nvmrc"), "18.20.0");
324
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
325
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
328
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
330
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
342
File.WriteAllText(Path.Combine(workspace.
Path
, ".node-version"), "v21.5.0");
344
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
345
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
348
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
350
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
367
File.WriteAllText(Path.Combine(workspace.
Path
, ".tool-versions"), toolVersions);
369
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
370
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
373
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
375
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
393
File.WriteAllText(Path.Combine(workspace.
Path
, ".tool-versions"), toolVersions);
395
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
396
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
399
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
401
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
419
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), packageJson);
421
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
422
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
425
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
427
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
438
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
439
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
442
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
444
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
460
File.WriteAllText(Path.Combine(workspace.
Path
, ".nvmrc"), versionString);
462
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
463
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
466
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
468
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
477
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: workspace.
Path
).WithResourceCleanUp(true);
480
var nodeApp = builder.AddViteApp("vite", workspace.
Path
)
484
var manifest = await ManifestUtils.GetManifest(nodeApp.Resource, workspace.
Path
);
490
var dockerfileContents = File.ReadAllText(Path.Combine(workspace.
Path
, "vite.Dockerfile"));
548
Directory.CreateDirectory(Path.Combine(workspace.
Path
, "node_modules"));
551
var viteConfigPath = Path.Combine(workspace.
Path
, "vite.config.js");
555
var viteApp = builder.AddViteApp("test-app", workspace.
Path
)
609
Directory.CreateDirectory(Path.Combine(workspace.
Path
, "node_modules"));
612
var viteConfigPath = Path.Combine(workspace.
Path
, "vite.config.js");
616
var viteApp = builder.AddViteApp("test-app", workspace.
Path
);
668
var viteApp = builder.AddViteApp("test-app", workspace.
Path
);
713
var viteConfigPath = Path.Combine(workspace.
Path
, "vite.config.js");
717
builder.AddViteApp("test-app", workspace.
Path
);
756
Directory.CreateDirectory(Path.Combine(workspace.
Path
, "node_modules"));
759
var viteConfigPath = Path.Combine(workspace.
Path
, "vite.config.js");
763
var viteApp = builder.AddViteApp("test-app", workspace.
Path
);
811
var repoRoot = Path.Combine(workspace.
Path
, "repo");
887
var repoRoot = Path.Combine(workspace.
Path
, "repo");
950
var repoRoot = Path.Combine(workspace.
Path
, "repo");
996
Directory.CreateDirectory(Path.Combine(workspace.
Path
, "node_modules"));
999
var viteConfigPath = Path.Combine(workspace.
Path
, configFileName);
1003
var viteApp = builder.AddViteApp("test-app", workspace.
Path
);
1050
var nextDir = Path.Combine(workspace.
Path
, "nextjs");
1066
var nextDir = Path.Combine(workspace.
Path
, "nextjs");
1083
var nextDir = Path.Combine(workspace.
Path
, "nextjs");
PackageInstallationTests.cs (15)
458
File.WriteAllText(Path.Combine(workspace.
Path
, "package-lock.json"), "empty");
462
var app = builder.AddViteApp("test-app", workspace.
Path
)
485
File.WriteAllText(Path.Combine(workspace.
Path
, "yarn.lock"), "empty");
489
var app = builder.AddViteApp("test-app", workspace.
Path
)
495
var app2 = builder.AddViteApp("test-app2", workspace.
Path
)
506
File.WriteAllText(Path.Combine(workspace.
Path
, "yarn.lock"), "empty");
507
File.WriteAllText(Path.Combine(workspace.
Path
, ".yarnrc.yml"), "empty");
511
var app = builder.AddViteApp("test-app", workspace.
Path
)
522
File.WriteAllText(Path.Combine(workspace.
Path
, "yarn.lock"), "empty");
523
Directory.CreateDirectory(Path.Combine(workspace.
Path
, ".yarn", "releases"));
527
var app = builder.AddViteApp("test-app", workspace.
Path
)
538
File.WriteAllText(Path.Combine(workspace.
Path
, "pnpm-lock.yaml"), "empty");
542
var app = builder.AddViteApp("test-app", workspace.
Path
)
553
File.WriteAllText(Path.Combine(workspace.
Path
, "bun.lock"), "empty");
557
var app = builder.AddViteApp("test-app", workspace.
Path
)
RequiredCommandTests.cs (10)
30
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js");
42
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js")
54
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js")
67
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js")
158
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), "{}");
160
var app = builder.AddBunApp("app", workspace.
Path
, "server.ts");
171
File.WriteAllText(Path.Combine(workspace.
Path
, "deno.json"), "{}");
173
var app = builder.AddDenoApp("app", workspace.
Path
, "server.ts");
184
var app = builder.AddDenoApp("app", workspace.
Path
, "server.ts")
197
var app = builder.AddBunApp("app", workspace.
Path
, "server.ts")
Aspire.Hosting.Keycloak.Tests (2)
KeycloakPublicApiTests.cs (2)
158
keycloak.WithRealmImport(workspace.
Path
);
177
var filePath = Path.Combine(workspace.
Path
, file);
Aspire.Hosting.Kubernetes.Tests (249)
KubernetesDeployTests.cs (58)
309
workspace.
Path
,
350
workspace.
Path
,
390
workspace.
Path
,
431
workspace.
Path
,
471
workspace.
Path
,
506
workspace.
Path
,
542
workspace.
Path
,
566
workspace.
Path
,
591
workspace.
Path
,
798
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
832
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
846
var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "Chart.yaml"));
859
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
877
var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "Chart.yaml"));
890
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
899
var deploymentYaml = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "templates", "svc", "deployment.yaml"));
913
workspace.
Path
,
940
var outputPath = Path.Combine(workspace.
Path
, "env");
987
var outputPath = Path.Combine(workspace.
Path
, "env");
1007
var outputPath = Path.Combine(workspace.
Path
, "env");
1081
var outputPath = Path.Combine(workspace.
Path
, "env");
1132
workspace.
Path
,
1165
workspace.
Path
,
1238
var outputPath = Path.Combine(workspace.
Path
, "env");
1288
var outputPath = Path.Combine(workspace.
Path
, "env");
1311
workspace.
Path
,
1337
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1360
var serverSecretsTemplatePath = Path.Combine(workspace.
Path
, "templates", "server", "secrets.yaml");
1382
workspace.
Path
,
1412
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1439
var outputPath = Path.Combine(workspace.
Path
, "deploy");
1501
workspace.
Path
,
1527
workspace.
Path
, env, CancellationToken.None);
1529
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1555
workspace.
Path
,
1588
workspace.
Path
, env, CancellationToken.None);
1590
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1601
workspace.
Path
,
1633
workspace.
Path
, env, CancellationToken.None);
1635
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1646
workspace.
Path
,
1673
workspace.
Path
, env, CancellationToken.None);
1675
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1676
await Verify(await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "values.yaml")), "yaml")
1678
await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "templates", "myapp", "config.yaml")),
1738
workspace.
Path
,
1753
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1775
workspace.
Path
,
1792
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1810
workspace.
Path
,
1827
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1846
workspace.
Path
,
1863
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1904
workspace.
Path
,
1935
workspace.
Path
,
1975
workspace.
Path
,
2020
workspace.
Path
,
2068
workspace.
Path
,
KubernetesEnvironmentResourceTests.cs (5)
19
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
29
var chartYaml = Path.Combine(workspace.
Path
, "Chart.yaml");
30
var valuesYaml = Path.Combine(workspace.
Path
, "values.yaml");
31
var deploymentYaml = Path.Combine(workspace.
Path
, "templates", "service", "deployment.yaml");
95
var outputPath = Path.Combine(workspace.
Path
, "output");
KubernetesGatewayTests.cs (33)
18
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
34
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "public");
61
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
75
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "public");
88
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
106
var gatewayPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
107
var routePath = Path.Combine(workspace.
Path
, "templates", "public", "route.yaml");
108
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
119
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
136
var routePath = Path.Combine(workspace.
Path
, "templates", "public", "route.yaml");
145
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
175
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
210
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
239
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
256
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
274
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
291
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "public");
300
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
322
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "public");
335
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
356
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "empty");
371
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
423
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
434
var templatesDir = Path.Combine(workspace.
Path
, "templates", "myapi");
446
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
464
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
496
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
513
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
533
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
558
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
580
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
596
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
613
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
KubernetesIngressTests.cs (48)
18
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
34
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
50
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
64
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
86
$"Pipeline:OutputPath={workspace.
Path
}",
108
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
115
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
132
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
149
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
160
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
177
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
178
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
188
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
204
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
213
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
228
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
237
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
253
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
265
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
282
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
295
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
315
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
328
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
343
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
353
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
367
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
380
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
393
var ingressDir = Path.Combine(workspace.
Path
, "templates", "empty");
406
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
439
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
459
var ingressDir = Path.Combine(workspace.
Path
, "templates", "public");
481
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
514
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
544
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
556
var ingressDir = Path.Combine(workspace.
Path
, "templates", "empty");
564
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
576
var templatesDir = Path.Combine(workspace.
Path
, "templates", "myapi");
587
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
612
var publicPath = Path.Combine(workspace.
Path
, "templates", "public-ingress", "public-ingress.yaml");
613
var internalPath = Path.Combine(workspace.
Path
, "templates", "internal-ingress", "internal-ingress.yaml");
629
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
647
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
664
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
682
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
733
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
758
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
781
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
798
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
KubernetesPublisherTests.cs (105)
23
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
71
var filePath = Path.Combine(workspace.
Path
, expectedFile);
91
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
110
var deploymentPath = Path.Combine(workspace.
Path
, "templates/service/deployment.yaml");
122
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
168
var filePath = Path.Combine(workspace.
Path
, expectedFile);
188
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
212
var manifestPath = Path.Combine(workspace.
Path
, "templates/myapp/scaler.yaml");
254
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
295
var filePath = Path.Combine(workspace.
Path
, expectedFile);
315
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
351
var filePath = Path.Combine(workspace.
Path
, expectedFile);
371
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
383
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
394
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
458
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
468
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
507
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
517
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
542
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
552
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
635
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
695
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
731
var filePath = Path.Combine(workspace.
Path
, expectedFile);
751
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
759
await Verify(File.ReadAllText(Path.Combine(workspace.
Path
, "Chart.yaml")), "yaml")
760
.AppendContentAsFile(File.ReadAllText(Path.Combine(workspace.
Path
, "values.yaml")), "yaml")
761
.AppendContentAsFile(File.ReadAllText(Path.Combine(workspace.
Path
, "templates", "api", "deployment.yaml")), "yaml")
762
.AppendContentAsFile(File.ReadAllText(Path.Combine(workspace.
Path
, "templates", "api", "service.yaml")), "yaml")
763
.AppendContentAsFile(File.ReadAllText(Path.Combine(workspace.
Path
, "templates", "api", "config.yaml")), "yaml");
770
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
796
var filePath = Path.Combine(workspace.
Path
, expectedFile);
814
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
840
var filePath = Path.Combine(workspace.
Path
, expectedFile);
858
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
866
var servicePath = Path.Combine(workspace.
Path
, "templates/database/service.yaml");
879
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
902
var filePath = Path.Combine(workspace.
Path
, expectedFile);
929
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
954
var filePath = Path.Combine(workspace.
Path
, expectedFile);
977
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
999
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1017
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1044
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1064
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1090
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1116
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1140
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1176
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1199
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1219
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1245
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1265
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1306
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1326
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1357
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1377
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1419
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1439
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1478
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1498
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1532
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1562
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1589
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1608
var legacyPv = Path.Combine(workspace.
Path
, "templates", "service", "data-pv.yaml");
1623
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1638
var deploymentPath = Path.Combine(workspace.
Path
, "templates", "service", "deployment.yaml");
1656
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1683
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1696
var legacyPvc = Path.Combine(workspace.
Path
, "templates", "service", "data-pvc.yaml");
1700
var deploymentPath = Path.Combine(workspace.
Path
, "templates", "service", "deployment.yaml");
1713
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1738
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1756
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1778
var claimPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
1788
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1805
var omittedClaimPath = Path.Combine(workspace.
Path
, "templates", "omitted", "omitted.yaml");
1806
var emptyClaimPath = Path.Combine(workspace.
Path
, "templates", "empty", "empty.yaml");
1821
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1847
var content = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "templates", name, $"{name}.yaml"));
1860
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1885
var content = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "templates", name, $"{name}.yaml"));
1898
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1921
var content = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "templates", "data", "data.yaml"));
1929
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1947
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
1957
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1974
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
1994
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2025
var filePath = Path.Combine(workspace.
Path
, expectedFile);
2043
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2064
Assert.Equal("default-class", ReadStorageClassName(workspace.
Path
, "default"));
2065
Assert.Equal("explicit-class", ReadStorageClassName(workspace.
Path
, "explicit"));
2066
Assert.Null(ReadStorageClassName(workspace.
Path
, "omitted"));
2073
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2105
var filePath = Path.Combine(workspace.
Path
, expectedFile);
2127
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2143
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "service", "statefulset.yaml");
2149
var pvcPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
2167
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2198
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2213
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
2260
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2287
var pvcPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
2299
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
Aspire.Hosting.Maui.Tests (64)
MauiiOSValidationTests.cs (6)
24
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
50
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
76
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
97
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
116
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
135
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
MauiOtlpTemplateTests.cs (3)
26
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
53
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
76
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
MauiPlatformExtensionsTests.cs (38)
98
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
121
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
141
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
160
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
189
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
237
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
256
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
280
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
309
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
335
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
358
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
381
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
404
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
432
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
457
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
486
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
511
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
538
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
565
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
632
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
662
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
686
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
709
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
747
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
800
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
865
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
904
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
957
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1023
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1060
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1077
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1099
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1130
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1157
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1187
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1269
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1305
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
1368
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
MauiUnsupportedPlatformTests.cs (6)
17
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
41
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
65
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
89
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
114
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
129
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
MauiWithArgsTests.cs (11)
21
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
39
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
58
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
78
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
95
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
115
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
132
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
151
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
168
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
188
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
210
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (1)
278
builder.Configuration["Aspire:Store:Path"] = workspace.
Path
;
MySqlFunctionalTests.cs (1)
572
.WithTempAspireStore(workspace.
Path
)
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (2)
503
builder.Configuration["Aspire:Store:Path"] = workspace.
Path
;
565
builder.Configuration["Aspire:Store:Path"] = workspace.
Path
;
PostgresFunctionalTests.cs (1)
559
.WithTempAspireStore(workspace.
Path
)
Aspire.Hosting.Python.Tests (109)
AddPythonAppTests.cs (109)
397
builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py"));
410
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
419
var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.
Path
));
443
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
483
var resourceBuilder = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName);
502
var resourceBuilder = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
557
options.ProjectDirectory = workspace.
Path
;
603
options.ProjectDirectory = workspace.
Path
;
677
options.ProjectDirectory = workspace.
Path
;
732
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
742
var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.
Path
));
763
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
783
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
821
var pythonBuilder = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
841
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
865
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
896
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
923
var pythonBuilder = builder.AddPythonApp("python-script", workspace.
Path
, "main.py");
942
var pythonBuilder = builder.AddPythonModule("flask-app", workspace.
Path
, "flask");
961
var pythonBuilder = builder.AddPythonExecutable("pytest", workspace.
Path
, "pytest");
982
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName);
992
var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.
Path
));
1018
builder.AddPythonModule("pythonProject", workspace.
Path
, moduleName);
1026
var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.
Path
));
1052
builder.AddPythonExecutable("pythonProject", workspace.
Path
, executableName);
1060
var expectedProjectDirectory = Path.GetFullPath(Path.Combine(builder.AppHostDirectory, workspace.
Path
));
1083
var pythonBuilder = builder.AddPythonModule("flask-app", workspace.
Path
, "flask")
1107
var pythonBuilder = builder.AddPythonApp("python-app", workspace.
Path
, "main.py")
1129
var pythonBuilder = builder.AddPythonExecutable("pytest", workspace.
Path
, "pytest")
1151
var pythonBuilder = builder.AddPythonApp("python-app", workspace.
Path
, "main.py")
1181
var pythonBuilder = builder.AddPythonApp("python-app", workspace.
Path
, "main.py");
1228
var resourceBuilder = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py");
1397
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1399
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1441
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1443
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1481
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1483
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1516
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1518
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1537
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1539
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1561
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1563
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1585
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1587
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1589
var customWorkingDirectory = Path.Combine(workspace.
Path
, "custom");
1612
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1614
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1616
var customWorkingDirectory = Path.Combine(workspace.
Path
, "custom");
1653
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1655
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1686
var appDirectory = Path.Combine(workspace.
Path
, "myapp");
1688
var virtualEnvironmentPath = Path.Combine(workspace.
Path
, ".venv");
1715
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py");
1737
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py");
1755
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py");
2008
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2012
var pyprojectPath = Path.Combine(workspace.
Path
, "pyproject.toml");
2015
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName);
2042
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2046
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2049
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName);
2077
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2081
var pyprojectPath = Path.Combine(workspace.
Path
, "pyproject.toml");
2083
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2086
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName);
2107
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2110
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName);
2131
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2135
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
2154
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2158
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2162
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
2182
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2186
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2190
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
2211
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2214
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2239
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2243
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2246
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2282
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2285
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2288
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2312
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2315
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2318
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2346
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2349
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2353
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2382
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2385
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2389
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2412
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2415
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2419
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2444
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2447
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2451
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2476
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2479
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2482
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2512
var scriptPath = Path.Combine(workspace.
Path
, "main.py");
2515
var pythonApp = builder.AddPythonApp("pythonProject", workspace.
Path
, "main.py")
2547
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
2566
var scriptPath = Path.Combine(workspace.
Path
, scriptName);
2569
var requirementsPath = Path.Combine(workspace.
Path
, "requirements.txt");
2572
builder.AddPythonApp("pythonProject", workspace.
Path
, scriptName)
Aspire.Hosting.Tests (49)
Dashboard\DashboardEventHandlersTests.cs (1)
355
["Aspire:Store:Path"] = workspace.
Path
,
PublishAsDockerfileTests.cs (1)
515
File.WriteAllText(Path.Join(workspace.
Path
, "Dockerfile"), "this does not matter");
Publishing\ContainerImageArchiveRewriterTests.cs (22)
20
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
21
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
105
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
106
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
181
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
182
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
217
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
218
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
290
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
291
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
311
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
312
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
333
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
334
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
357
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
358
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
390
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
391
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
412
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
413
var destinationArchive = Path.Combine(workspace.
Path
, "destination.tar");
436
var sourceArchive = Path.Combine(workspace.
Path
, "source.tar");
437
var compressedArchive = Path.Combine(workspace.
Path
, "custom-extension.archive");
Utils\DotnetSdkVersionProviderTests.cs (24)
75
workspace.
Path
,
81
Assert.Equal(workspace.
Path
, processSpec.WorkingDirectory);
103
workspace.
Path
,
128
workspace.
Path
,
164
workspace.
Path
,
168
workspace.
Path
,
172
workspace.
Path
,
200
workspace.
Path
,
204
workspace.
Path
,
220
File.WriteAllText(Path.Combine(workspace.
Path
, "global.json"), "{}");
221
var firstDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "First")).FullName;
222
var secondDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "Second")).FullName;
242
var firstDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "First")).FullName;
243
var secondDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "Second")).FullName;
267
var globalJsonPath = Path.Combine(workspace.
Path
, "global.json");
275
workspace.
Path
,
279
workspace.
Path
,
297
workspace.
Path
,
300
workspace.
Path
,
317
workspace.
Path
,
335
workspace.
Path
,
339
workspace.
Path
,
350
workspace.
Path
,
369
workspace.
Path
,
WithVolumeTests.cs (1)
171
builder.Configuration[AspireStore.AspireStorePathKeyName] = workspace.
Path
;
Aspire.Hosting.TestUtilities (1)
tests\Shared\TemporaryWorkspace.cs (1)
245
var aspireDir = IOPath.Combine(workspace.
Path
, ".aspire");
Aspire.Hosting.Yarp.Tests (8)
AddYarpTests.cs (6)
171
var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.
Path
);
186
var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.
Path
);
200
var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.
Path
);
212
var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.
Path
);
216
Assert.Contains(workspace.
Path
, annotation.ContextPath);
225
var yarp = builder.AddYarp("yarp").WithStaticFiles(workspace.
Path
);
YarpConfigGeneratorTests.cs (2)
267
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
292
var composeFile = Path.Combine(workspace.
Path
, "docker-compose.yaml");