843 references to Path
Aspire.Hosting.Azure.Kubernetes.Tests (9)
AzureKubernetesFoundryReferenceTests.cs (2)
24
workspace.
Path
);
59
var valuesPath = Directory.EnumerateFiles(workspace.
Path
, "values.yaml", SearchOption.AllDirectories).Single();
AzureKubernetesInfrastructureTests.cs (1)
172
workspace.
Path
,
AzureKubernetesIngressTests.cs (4)
17
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
33
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
138
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
160
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
AzureKubernetesPersistentVolumeTests.cs (2)
27
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
36
var claimPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
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 (44)
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)
1872
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "publish-manifest");
1890
await VerifyFile(Path.Combine(workspace.
Path
, "aspire-manifest.json"));
1994
workspace.
Path
,
2024
workspace.
Path
,
2144
workspace.
Path
,
2170
workspace.
Path
,
2199
workspace.
Path
,
2228
workspace.
Path
,
2684
File.WriteAllText(Path.Combine(workspace.
Path
, "Dockerfile"), "FROM alpine");
2686
builder.AddDockerfile("with-bind-mount", workspace.
Path
)
2687
.WithBindMount(workspace.
Path
, "/app/data");
AzureEnvironmentResourceTests.cs (10)
181
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
218
var mainBicep = File.ReadAllText(Path.Combine(workspace.
Path
, "main.bicep"));
236
workspace.
Path
);
250
var mainBicepPath = Path.Combine(workspace.
Path
, "main.bicep");
255
var includedStorageBicepPath = Path.Combine(workspace.
Path
, "included-storage", "included-storage.bicep");
259
var excludedStorageBicepPath = Path.Combine(workspace.
Path
, "excluded-storage", "excluded-storage.bicep");
269
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
281
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
294
remoteInvokeOptions.StartInfo.WorkingDirectory = workspace.
Path
;
295
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");
Aspire.Hosting.Docker.Tests (106)
DockerComposePublisherTests.cs (75)
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
);
487
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
500
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
515
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
528
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
547
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
559
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
572
var dockerfilePath = Path.Combine(workspace.
Path
, "testcontainer.Dockerfile");
584
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run, workspace.
Path
);
596
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
605
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
623
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
633
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
652
var envFilePath = Path.Combine(workspace.
Path
, ".env.Staging");
665
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
686
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
696
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
708
var envFilePath = Path.Combine(workspace.
Path
, ".env.Production");
729
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
742
var envFilePath = Path.Combine(workspace.
Path
, ".env.Staging");
759
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
775
var composeContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "docker-compose.yaml"));
776
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
786
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
808
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
817
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
, step: "prepare-docker-compose");
834
var envFileContent = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".env.Production"));
845
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
859
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
860
var envPath = Path.Combine(workspace.
Path
, ".env");
873
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
886
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
902
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
917
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
918
var envPath = Path.Combine(workspace.
Path
, ".env");
931
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
956
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
957
var envPath = Path.Combine(workspace.
Path
, ".env");
970
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1004
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1005
var envPath = Path.Combine(workspace.
Path
, ".env");
1024
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1038
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1039
var envPath = Path.Combine(workspace.
Path
, ".env");
1051
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1082
var composePath = Path.Combine(workspace.
Path
, "docker-compose.yaml");
1092
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1116
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 (30)
DotnetProjectResourceTests.cs (30)
118
"project" => CreateFile(workspace.
Path
, "MyService.csproj"),
119
"directory" => CreateProjectDirectory(workspace.
Path
),
120
"file" => CreateFile(workspace.
Path
, "service.cs"),
128
() => ManifestUtils.GetManifest(app.Resource, workspace.
Path
));
139
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
156
workspace.
Path
,
158
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
164
Assert.False(File.Exists(Path.Combine(workspace.
Path
, "aspire-manifest.json")));
174
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
206
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
247
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
277
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
304
builder.AddDotnetProject("svc", CreateFile(workspace.
Path
, "MyService.csproj"), o => o.ExcludeLaunchProfile = true);
332
builder.AddResource(new DotnetProjectResource("svc", workspace.
Path
));
344
builder.AddDotnetProject("api", CreateFile(workspace.
Path
, "Api.csproj"), o => o.ExcludeLaunchProfile = true);
345
builder.AddDotnetProject("worker", CreateFile(workspace.
Path
, "Worker.csproj"), o => o.ExcludeLaunchProfile = true);
346
builder.AddDotnetProject("excluded", CreateFile(workspace.
Path
, "Excluded.csproj"), o => o.ExcludeLaunchProfile = true)
348
builder.AddDotnetProject("containerized", CreateFile(workspace.
Path
, "Containerized.csproj"), o => o.ExcludeLaunchProfile = true)
364
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
372
var manifest = await ManifestUtils.GetManifestOrNull(resource.Resource, workspace.
Path
);
380
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
388
var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.
Path
);
396
var projectPath = CreateFile(workspace.
Path
, "MyService.csproj");
397
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "Dockerfile"), "FROM scratch");
406
var manifest = await ManifestUtils.GetManifest(resource.Resource, workspace.
Path
);
431
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
449
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "AmbiguousService"));
475
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
562
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
632
var projectDir = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "MyService"));
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 (262)
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")
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 (7)
29
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js");
41
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js")
53
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js")
66
var app = builder.AddNodeApp("app", workspace.
Path
, "server.js")
157
File.WriteAllText(Path.Combine(workspace.
Path
, "package.json"), "{}");
159
var app = builder.AddBunApp("app", workspace.
Path
, "server.ts");
170
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 (196)
KubernetesDeployTests.cs (52)
309
workspace.
Path
,
350
workspace.
Path
,
390
workspace.
Path
,
431
workspace.
Path
,
471
workspace.
Path
,
506
workspace.
Path
,
546
workspace.
Path
,
592
workspace.
Path
,
623
workspace.
Path
,
830
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
864
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
878
var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "Chart.yaml"));
891
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
909
var chartYaml = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "Chart.yaml"));
922
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
931
var deploymentYaml = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "templates", "svc", "deployment.yaml"));
945
workspace.
Path
,
972
var outputPath = Path.Combine(workspace.
Path
, "env");
1019
var outputPath = Path.Combine(workspace.
Path
, "env");
1039
var outputPath = Path.Combine(workspace.
Path
, "env");
1113
var outputPath = Path.Combine(workspace.
Path
, "env");
1164
workspace.
Path
,
1197
workspace.
Path
,
1270
var outputPath = Path.Combine(workspace.
Path
, "env");
1320
var outputPath = Path.Combine(workspace.
Path
, "env");
1343
workspace.
Path
,
1369
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1392
var serverSecretsTemplatePath = Path.Combine(workspace.
Path
, "templates", "server", "secrets.yaml");
1414
workspace.
Path
,
1444
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1471
var outputPath = Path.Combine(workspace.
Path
, "deploy");
1533
workspace.
Path
,
1559
workspace.
Path
, env, CancellationToken.None);
1561
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1587
workspace.
Path
,
1620
workspace.
Path
, env, CancellationToken.None);
1622
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1633
workspace.
Path
,
1665
workspace.
Path
, env, CancellationToken.None);
1667
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1678
workspace.
Path
,
1705
workspace.
Path
, env, CancellationToken.None);
1707
var overridePath = Path.Combine(workspace.
Path
, HelmDeploymentEngine.GetDeployValuesFileName("env"));
1708
await Verify(await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "values.yaml")), "yaml")
1710
await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, "templates", "myapp", "config.yaml")),
1764
workspace.
Path
,
1780
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1798
workspace.
Path
,
1815
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
1854
workspace.
Path
,
1886
workspace.
Path
,
1926
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 (24)
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
);
105
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
123
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
140
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "public");
149
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
171
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "public");
184
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
205
var gatewayDir = Path.Combine(workspace.
Path
, "templates", "empty");
220
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
272
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
283
var templatesDir = Path.Combine(workspace.
Path
, "templates", "myapi");
295
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
313
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
345
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
362
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
382
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
407
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
429
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
445
var gatewayFile = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
462
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
KubernetesIngressTests.cs (41)
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
);
176
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
188
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
205
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
218
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
238
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
251
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
266
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
276
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
290
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
303
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
316
var ingressDir = Path.Combine(workspace.
Path
, "templates", "empty");
329
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
362
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
382
var ingressDir = Path.Combine(workspace.
Path
, "templates", "public");
404
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
437
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
467
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
479
var ingressDir = Path.Combine(workspace.
Path
, "templates", "empty");
487
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
499
var templatesDir = Path.Combine(workspace.
Path
, "templates", "myapi");
510
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
535
var publicPath = Path.Combine(workspace.
Path
, "templates", "public-ingress", "public-ingress.yaml");
536
var internalPath = Path.Combine(workspace.
Path
, "templates", "internal-ingress", "internal-ingress.yaml");
552
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
570
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
587
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
605
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
656
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
681
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
704
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
721
var ingressPath = Path.Combine(workspace.
Path
, "templates", "public", "public.yaml");
KubernetesPublisherTests.cs (74)
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
);
546
var deploymentPath = Path.Combine(workspace.
Path
, "templates/myapp/deployment.yaml");
606
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
642
var filePath = Path.Combine(workspace.
Path
, expectedFile);
662
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
688
var filePath = Path.Combine(workspace.
Path
, expectedFile);
706
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
714
var servicePath = Path.Combine(workspace.
Path
, "templates/database/service.yaml");
727
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
750
var filePath = Path.Combine(workspace.
Path
, expectedFile);
777
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
802
var filePath = Path.Combine(workspace.
Path
, expectedFile);
825
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
847
var filePath = Path.Combine(workspace.
Path
, expectedFile);
865
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
892
var filePath = Path.Combine(workspace.
Path
, expectedFile);
912
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
938
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
964
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
988
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1024
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1047
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1067
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1093
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1113
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1154
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1174
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1205
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1225
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1267
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1287
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1326
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1346
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1380
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1410
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1437
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1456
var legacyPv = Path.Combine(workspace.
Path
, "templates", "service", "data-pv.yaml");
1471
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1486
var deploymentPath = Path.Combine(workspace.
Path
, "templates", "service", "deployment.yaml");
1504
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1531
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1544
var legacyPvc = Path.Combine(workspace.
Path
, "templates", "service", "data-pvc.yaml");
1548
var deploymentPath = Path.Combine(workspace.
Path
, "templates", "service", "deployment.yaml");
1561
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1586
var filePath = Path.Combine(workspace.
Path
, expectedFile);
1604
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1622
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
1632
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1649
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
1673
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1689
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "service", "statefulset.yaml");
1695
var pvcPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
1713
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1744
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1759
var statefulSetPath = Path.Combine(workspace.
Path
, "templates", "api", "statefulset.yaml");
1806
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, workspace.
Path
);
1833
var pvcPath = Path.Combine(workspace.
Path
, "templates", "data", "data.yaml");
1845
var valuesPath = Path.Combine(workspace.
Path
, "values.yaml");
Aspire.Hosting.Maui.Tests (53)
MauiiOSValidationTests.cs (6)
23
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
48
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
73
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
93
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
111
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
129
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
MauiOtlpTemplateTests.cs (3)
25
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
52
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
75
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
MauiPlatformExtensionsTests.cs (27)
94
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
117
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
137
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
156
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
185
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
233
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
252
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
276
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
304
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
330
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
353
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
376
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
399
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
427
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
452
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
481
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
506
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
533
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
561
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
591
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
615
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
638
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
676
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
728
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
792
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
816
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
843
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)
20
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
38
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
57
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
77
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
94
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
114
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
131
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
150
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
167
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
187
var tempFile = Path.Combine(workspace.
Path
, "TempMauiProject.csproj");
209
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 (1)
PublishAsDockerfileTests.cs (1)
515
File.WriteAllText(Path.Join(workspace.
Path
, "Dockerfile"), "this does not matter");
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");