1325 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 (52)
AzureAppServiceTests.cs (9)
198
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "validate-appservice-config-env");
239
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "validate-appservice-config-env");
544
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
560
var mainBicepPath = Path.Combine(workspace.
Path
, "main.bicep");
564
var envBicepPath = Path.Combine(workspace.
Path
, "env", "env.bicep");
568
var apiBicepPath = Path.Combine(workspace.
Path
, "api", "api.bicep");
740
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "publish-manifest");
761
Path.Combine(workspace.
Path
, "aspire-manifest.json"),
770
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, 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, workspace.
Path
);
565
var mainBicepPath = Path.Combine(workspace.
Path
, "main.bicep");
569
var envBicepPath = Path.Combine(workspace.
Path
, "env", "env.bicep");
AzureContainerAppsTests.cs (11)
1908
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "publish-manifest");
1926
await VerifyFile(Path.Combine(workspace.
Path
, "aspire-manifest.json"));
2030
workspace.
Path
,
2060
workspace.
Path
,
2180
workspace.
Path
,
2206
workspace.
Path
,
2235
workspace.
Path
,
2264
workspace.
Path
,
2720
File.WriteAllText(Path.Combine(workspace.
Path
, "Dockerfile"), "FROM alpine");
2722
builder.AddDockerfile("with-bind-mount", workspace.
Path
)
2723
.WithBindMount(workspace.
Path
, "/app/data");
AzureEnvironmentResourceTests.cs (16)
187
workspace.
Path
);
202
var mainBicep = File.ReadAllText(Path.Combine(workspace.
Path
, "main.bicep"));
210
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
247
var mainBicep = File.ReadAllText(Path.Combine(workspace.
Path
, "main.bicep"));
256
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
263
var outputPath = Path.Combine(workspace.
Path
, "exclude-main");
285
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
292
var outputPath = Path.Combine(workspace.
Path
, "write-main");
352
workspace.
Path
);
366
var mainBicepPath = Path.Combine(workspace.
Path
, "main.bicep");
371
var includedStorageBicepPath = Path.Combine(workspace.
Path
, "included-storage", "included-storage.bicep");
375
var excludedStorageBicepPath = Path.Combine(workspace.
Path
, "excluded-storage", "excluded-storage.bicep");
385
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
397
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
410
remoteInvokeOptions.StartInfo.WorkingDirectory = workspace.
Path
;
411
RemoteExecutor.Invoke(RunTest, workspace.
Path
, remoteInvokeOptions).Dispose();
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)
179
workspace.
Path
);
186
var mainBicep = File.ReadAllText(Path.Combine(workspace.
Path
, "main.bicep"));
Aspire.Hosting.Docker.Tests (114)
DockerComposePublisherTests.cs (83)
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");
115
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
137
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
138
var envPath = Path.Combine(workspace.
Path
, ".env");
150
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
)
165
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
175
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "publish-docker-compose")
194
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
203
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
245
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
247
var envPath = Path.Combine(workspace.
Path
, ".env");
258
var envFilePath = Path.Combine(workspace.
Path
, ".env");
262
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
289
var envFilePath = Path.Combine(workspace.
Path
, ".env");
293
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
330
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
344
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
356
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
370
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
385
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
402
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
417
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
433
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
448
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
461
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
474
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
495
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
506
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
519
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
534
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
547
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
563
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
577
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
591
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
606
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
619
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
638
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
650
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
663
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
675
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run, workspace.
Path
);
687
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
696
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
714
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
724
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
743
var envFilePath = Path.Combine(workspace.
Path
, ".env.Staging");
756
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
777
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
787
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
799
var envFilePath = Path.Combine(workspace.
Path
, ".env.Production");
820
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
833
var envFilePath = Path.Combine(workspace.
Path
, ".env.Staging");
850
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
866
var composeContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "docker-compose.yaml"));
867
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
877
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
899
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
908
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
925
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
936
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
950
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
951
var envPath = Path.Combine(workspace.
Path
, ".env");
964
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
977
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
993
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1008
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1009
var envPath = Path.Combine(workspace.
Path
, ".env");
1021
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1036
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1047
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1072
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1073
var envPath = Path.Combine(workspace.
Path
, ".env");
1086
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1120
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1121
var envPath = Path.Combine(workspace.
Path
, ".env");
1140
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1154
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1155
var envPath = Path.Combine(workspace.
Path
, ".env");
1167
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1198
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1208
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1232
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 (230)
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 (188)
36
options => options.ProjectDirectory = workspace.
Path
,
87
options => options.ProjectDirectory = workspace.
Path
,
99
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
115
options => options.ProjectDirectory = workspace.
Path
,
124
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
142
options => options.ProjectDirectory = workspace.
Path
,
147
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
161
options => options.ProjectDirectory = workspace.
Path
,
170
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
186
options => options.ProjectDirectory = workspace.
Path
,
188
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
224
options => options.ProjectDirectory = workspace.
Path
,
226
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
261
options => options.ProjectDirectory = workspace.
Path
,
263
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
264
var fileDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "worker"));
323
options => options.ProjectDirectory = workspace.
Path
,
325
var sharedProject = CreateSharedProject(workspace.
Path
);
326
var firstPath = CreateFileApp(workspace.
Path
, "First", sharedProject);
327
var secondPath = CreateFileApp(workspace.
Path
, "Second", sharedProject);
328
var firstSentinel = Path.Combine(workspace.
Path
, "first-ran.txt");
329
var secondSentinel = Path.Combine(workspace.
Path
, "second-ran.txt");
394
var appPath = Path.Combine(workspace.
Path
, "worker.cs");
395
var sentinelPath = Path.Combine(workspace.
Path
, "worker-ran.txt");
399
options => options.ProjectDirectory = workspace.
Path
,
476
options => options.ProjectDirectory = workspace.
Path
,
478
var firstProject = CreateProject(workspace.
Path
, "First's Project", "First.csproj");
479
var secondProject = CreateProject(workspace.
Path
, "Second", "Second.csproj");
504
using var builder = TestDistributedApplicationBuilder.Create(options => options.ProjectDirectory = workspace.
Path
, outputHelper);
505
var aspireStoreRoot = Path.Combine(workspace.
Path
, "custom-obj");
507
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
527
workspace.
Path
,
528
Path.Combine(workspace.
Path
, "obj", ".aspire", "build"),
530
var projectPath = CreateProject(workspace.
Path
, "Service", "App.csproj");
531
var caseVariantPath = Path.Combine(workspace.
Path
, "service", "app.CSPROJ");
535
CreateProject(workspace.
Path
, "service", "app.CSPROJ");
558
options => options.ProjectDirectory = workspace.
Path
,
560
var aspireStoreRoot = Path.Combine(workspace.
Path
, "custom-obj");
562
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
563
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
615
options => options.ProjectDirectory = workspace.
Path
,
617
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
618
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
638
options => options.ProjectDirectory = workspace.
Path
,
640
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
641
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
661
options => options.ProjectDirectory = workspace.
Path
,
663
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
664
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
690
options => options.ProjectDirectory = workspace.
Path
,
692
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
693
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
712
options => options.ProjectDirectory = workspace.
Path
,
714
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
715
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
738
options => options.ProjectDirectory = workspace.
Path
,
756
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
776
options => options.ProjectDirectory = workspace.
Path
,
778
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
805
options => options.ProjectDirectory = workspace.
Path
,
807
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
839
options => options.ProjectDirectory = workspace.
Path
,
841
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
879
options => options.ProjectDirectory = workspace.
Path
,
881
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
950
options => options.ProjectDirectory = workspace.
Path
,
952
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
953
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
980
options => options.ProjectDirectory = workspace.
Path
,
982
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1003
options => options.ProjectDirectory = workspace.
Path
,
1005
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1025
options => options.ProjectDirectory = workspace.
Path
,
1027
var appPath = Path.Combine(workspace.
Path
, "app.cs");
1045
options => options.ProjectDirectory = workspace.
Path
,
1047
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1086
options => options.ProjectDirectory = workspace.
Path
,
1088
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1211
options => options.ProjectDirectory = workspace.
Path
,
1213
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1292
options => options.ProjectDirectory = workspace.
Path
,
1294
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1343
options => options.ProjectDirectory = workspace.
Path
,
1345
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1413
options => options.ProjectDirectory = workspace.
Path
,
1415
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1442
options => options.ProjectDirectory = workspace.
Path
,
1444
var apiPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
1445
var workerPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1483
options => options.ProjectDirectory = workspace.
Path
,
1485
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1487
var runtimeWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "runtime")).FullName;
1488
var sdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "sdk-runtime")).FullName;
1532
options => options.ProjectDirectory = workspace.
Path
,
1534
var projectPath = CreateProject(workspace.
Path
, "Worker", "Worker.csproj");
1536
var firstSdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "sdk-runtime-1")).FullName;
1537
var secondSdkWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "sdk-runtime-2")).FullName;
1577
options => options.ProjectDirectory = workspace.
Path
,
1579
var sourceRoot = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "source")).FullName;
1583
var runtimeWorkingDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "runtime")).FullName;
1602
options => options.ProjectDirectory = workspace.
Path
,
1605
Directory.CreateDirectory(Path.Combine(workspace.
Path
, "source")).FullName,
1609
var foreignRoot = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "foreign")).FullName;
1637
options => options.ProjectDirectory = workspace.
Path
,
1639
var activePath = CreateProject(workspace.
Path
, "Active", "Active.csproj");
1640
var removedPath = CreateProject(workspace.
Path
, "Removed", "Removed.csproj");
1661
options => options.ProjectDirectory = workspace.
Path
,
1663
var activePath = CreateProject(workspace.
Path
, "Active", "Active.csproj");
1664
var replacedPath = CreateProject(workspace.
Path
, "Replaced", "Replaced.csproj");
1671
@event.Model.Resources[index] = new ExecutableResource(replaced.Resource.Name, "dotnet", workspace.
Path
);
1687
options => options.ProjectDirectory = workspace.
Path
,
1689
var projectPath = CreateProject(workspace.
Path
, "Project", "Project.csproj");
1690
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
1732
options => options.ProjectDirectory = workspace.
Path
,
1734
var firstPath = CreateProject(workspace.
Path
, "First", "First.csproj");
1735
var secondPath = CreateProject(workspace.
Path
, "Second", "Second.csproj");
1777
options => options.ProjectDirectory = workspace.
Path
,
1779
var physicalRoot = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "Physical"));
1789
var linkPath = Path.Combine(workspace.
Path
, "Alias");
1800
var otherProjectPath = CreateProject(workspace.
Path
, "Other", "Other.csproj");
1827
options => options.ProjectDirectory = workspace.
Path
,
1829
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
1851
options => options.ProjectDirectory = workspace.
Path
,
1853
var removedProjectPath = CreateProject(workspace.
Path
, "Removed", "Removed.csproj");
1860
var activeProjectPath = CreateProject(workspace.
Path
, "Active", "Active.csproj");
1881
options => options.ProjectDirectory = workspace.
Path
,
1883
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
1911
options => options.ProjectDirectory = workspace.
Path
,
1913
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
1944
options => options.ProjectDirectory = workspace.
Path
,
1946
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
1977
options => options.ProjectDirectory = workspace.
Path
,
1979
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2002
options => options.ProjectDirectory = workspace.
Path
,
2004
var projectPath = CreateProject(workspace.
Path
, "Service", "Service.csproj");
2005
var removedPath = CreateProject(workspace.
Path
, "Removed", "Removed.csproj");
2006
var missingPath = Path.Combine(workspace.
Path
, "Missing", "Missing.csproj");
2029
options => options.ProjectDirectory = workspace.
Path
,
2031
var firstPath = CreateProject(workspace.
Path
, "First", "First.csproj");
2032
var secondPath = CreateProject(workspace.
Path
, "Second", "Second.csproj");
2082
options => options.ProjectDirectory = workspace.
Path
,
2084
var projectPath = CreateProject(workspace.
Path
, "Service", "App.csproj");
2085
var linkDirectory = Path.Combine(workspace.
Path
, "ServiceAlias");
2124
workspace.
Path
,
2125
Path.Combine(workspace.
Path
, "obj", ".aspire", "build"),
2127
buildResource.AddProject(CreateProject(workspace.
Path
, "Api", "Api.csproj"));
2162
var sharedProject = CreateSharedProject(workspace.
Path
);
2163
var apiProject = CreateConsoleProject(workspace.
Path
, "Api", sharedProject);
2164
var workerProject = CreateConsoleProject(workspace.
Path
, "Worker", sharedProject);
2165
var apiSentinel = Path.Combine(workspace.
Path
, "api-ran.txt");
2166
var workerSentinel = Path.Combine(workspace.
Path
, "worker-ran.txt");
2169
options => options.ProjectDirectory = workspace.
Path
,
2207
var firstProject = CreateSentinelProject(workspace.
Path
, "First", """
2212
var secondProject = CreateSentinelProject(workspace.
Path
, "Second", """
2218
var firstSentinel = Path.Combine(workspace.
Path
, "first-ran.txt");
2219
var secondSentinel = Path.Combine(workspace.
Path
, "second-ran.txt");
2222
options => options.ProjectDirectory = workspace.
Path
,
2262
var brokenProject = CreateBrokenProject(workspace.
Path
, "FIRST_BUILD_FAILED");
2263
var secondBuildMarker = Path.Combine(workspace.
Path
, "second-built.txt");
2264
var secondProject = CreateSentinelProject(workspace.
Path
, "Second", $$"""
2269
var secondSentinel = Path.Combine(workspace.
Path
, "second-ran.txt");
2272
options => options.ProjectDirectory = workspace.
Path
,
2317
var validProject = CreateProjectFile(workspace.
Path
, "Valid", """
2328
var sentinelPath = Path.Combine(workspace.
Path
, "valid-ran.txt");
2329
var missingProject = Path.Combine(workspace.
Path
, "Missing", "Missing.csproj");
2332
options => options.ProjectDirectory = workspace.
Path
,
2372
options => options.ProjectDirectory = workspace.
Path
,
2380
var missingPath = Path.Combine(workspace.
Path
, "Missing", $"Missing.{extension}");
2405
var projectPath = CreateProjectFile(workspace.
Path
, "EnvironmentBuild", """
2428
var sentinelPath = Path.Combine(workspace.
Path
, "environment-build-ran.txt");
2441
options => options.ProjectDirectory = workspace.
Path
,
2479
var projectPath = CreateProjectWithBuildProducedRunPropertiesSentinel(workspace.
Path
);
2482
options => options.ProjectDirectory = workspace.
Path
,
2535
var projectPath = CreateProject(workspace.
Path
, "Api", "Api.csproj");
2536
var filePath = Path.Combine(workspace.
Path
, "worker.cs");
2539
options => options.ProjectDirectory = workspace.
Path
,
2593
var projectPath = CreateProject(workspace.
Path
, "EnvironmentBuild", "EnvironmentBuild.csproj");
2596
options => options.ProjectDirectory = workspace.
Path
,
2602
Path.Combine(workspace.
Path
, "missing-dotnet");
2637
var brokenProject = CreateBrokenProject(workspace.
Path
, buildLogMarker);
2638
var fileApp = Path.Combine(workspace.
Path
, "worker.cs");
2639
var sentinel = Path.Combine(workspace.
Path
, "worker-ran.txt");
2649
options => options.ProjectDirectory = workspace.
Path
,
2700
var releaseBuild = Path.Combine(workspace.
Path
, "release-build");
2701
var brokenProject = CreateGatedBrokenProject(workspace.
Path
, releaseBuild);
2702
var fileApp = Path.Combine(workspace.
Path
, "worker.cs");
2703
var sentinel = Path.Combine(workspace.
Path
, "worker-ran.txt");
2713
options => options.ProjectDirectory = workspace.
Path
,
DotnetProjectResourceTests.cs (30)
117
"project" => CreateFile(workspace.
Path
, "MyService.csproj"),
118
"directory" => CreateProjectDirectory(workspace.
Path
),
119
"file" => CreateFile(workspace.
Path
, "service.cs"),
127
() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
138
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
155
workspace.
Path
,
157
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
163
Assert.False(File.Exists(Path.Combine(workspace.
Path
, "aspire-manifest.json")));
173
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
205
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
246
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
276
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
303
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
331
builder.AddResource(new DotnetProjectResource("svc", workspace.
Path
));
343
builder.AddDotnetProject("api", CreateFile(workspace.
Path
, "Api.csproj"), o => o.ExcludeLaunchProfile = true);
344
builder.AddDotnetProject("worker", CreateFile(workspace.
Path
, "Worker.csproj"), o => o.ExcludeLaunchProfile = true);
345
builder.AddDotnetProject("excluded", CreateFile(workspace.
Path
, "Excluded.csproj"), o => o.ExcludeLaunchProfile = true)
347
builder.AddDotnetProject("containerized", CreateFile(workspace.
Path
, "Containerized.csproj"), o => o.ExcludeLaunchProfile = true)
363
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
371
var manifest = await ManifestUtils.GetManifestOrNull(resource.Resource, workspace.
Path
);
379
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
387
var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.
Path
);
395
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
396
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "Dockerfile"), "FROM scratch");
405
var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.
Path
);
430
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
448
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "AmbiguousService"));
498
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
601
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
671
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 (228)
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 (84)
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
);
290
var filePath = Path.Combine(workspace.
Path
, expectedFile);
310
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
346
var filePath = Path.Combine(workspace.
Path
, expectedFile);
366
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
378
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
389
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
453
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
463
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
502
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
512
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
537
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
547
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
630
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
690
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
726
var filePath = Path.Combine(workspace.
Path
, expectedFile);
746
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
772
var filePath = Path.Combine(workspace.
Path
, expectedFile);
790
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
816
var filePath = Path.Combine(workspace.
Path
, expectedFile);
834
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
842
var servicePath = Path.Combine(workspace.
Path
, "templates/database/service.yaml");
855
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
878
var filePath = Path.Combine(workspace.
Path
, expectedFile);
905
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
930
var filePath = Path.Combine(workspace.
Path
, expectedFile);
953
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
975
var filePath = Path.Combine(workspace.
Path
, expectedFile);
993
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1020
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1040
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1066
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1092
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1116
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1152
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1175
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1195
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1221
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1241
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1282
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1302
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1333
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1353
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1395
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1415
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1454
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1474
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1508
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1538
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1565
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1584
var legacyPv = Path.Combine(workspace.
Path
, "templates", "service", "data-pv.yaml");
1599
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1614
var deploymentPath = Path.Combine(workspace.
Path
, "templates", "service", "deployment.yaml");
1632
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1659
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1672
var legacyPvc = Path.Combine(workspace.
Path
, "templates", "service", "data-pvc.yaml");
1676
var deploymentPath = Path.Combine(workspace.
Path
, "templates", "service", "deployment.yaml");
1689
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1714
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1732
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1750
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
1760
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1777
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
1797
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1828
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1846
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1878
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1900
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1916
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "service", "statefulset.yaml");
1922
var pvcPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
1940
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1971
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1986
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
2033
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
2060
var pvcPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
2072
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)
262
builder.Configuration["Aspire:Store:Path"] = workspace.
Path
;
MySqlFunctionalTests.cs (1)
572
.WithTempAspireStore(workspace.
Path
)
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (2)
481
builder.Configuration["Aspire:Store:Path"] = workspace.
Path
;
543
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 (3)
Dashboard\DashboardEventHandlersTests.cs (1)
332
["Aspire:Store:Path"] = workspace.
Path
,
PublishAsDockerfileTests.cs (1)
515
File.WriteAllText(Path.Join(workspace.
Path
, "Dockerfile"), "this does not matter");
WithVolumeTests.cs (1)
171
builder.Configuration[AspireStore.AspireStorePathKeyName] = workspace.
Path
;
Aspire.Hosting.TestUtilities (1)
tests\Shared\TemporaryWorkspace.cs (1)
238
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");