95 references to Path
Aspire.Hosting.Azure.Kusto.Tests (2)
KustoFunctionalTests.cs (2)
240
container.WithBindMount(temp.
Path
, dbPath);
271
return Directory.GetFileSystemEntries(temp.
Path
, searchPattern, enumerationOptions);
Aspire.Hosting.Azure.Tests (11)
AzureAppServiceTests.cs (3)
342
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: tempDir.
Path
);
363
Path.Combine(tempDir.
Path
, "aspire-manifest.json"),
372
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: tempDir.
Path
);
AzureContainerAppsTests.cs (2)
1615
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: tempDir.
Path
);
1631
await VerifyFile(Path.Combine(tempDir.
Path
, "aspire-manifest.json"));
AzureEnvironmentResourceTests.cs (6)
193
outputPath: tempDir.
Path
);
207
var mainBicepPath = Path.Combine(tempDir.
Path
, "main.bicep");
212
var includedStorageBicepPath = Path.Combine(tempDir.
Path
, "included-storage", "included-storage.bicep");
216
var excludedStorageBicepPath = Path.Combine(tempDir.
Path
, "excluded-storage", "excluded-storage.bicep");
226
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
238
var dockerfilePath = Path.Combine(tempDir.
Path
, "testcontainer.Dockerfile");
Aspire.Hosting.Containers.Tests (4)
DockerSocketBindMountTests.cs (4)
24
var dockerFilePath = Path.Combine(dir.
Path
, "Dockerfile");
29
appBuilder.AddDockerfile("docker-client", contextPath: dir.
Path
)
31
.WithBindMount(outDir.
Path
, "/out");
48
var infoFile = Path.Combine(outDir.
Path
, "docker-info.txt");
Aspire.Hosting.Docker.Tests (37)
DockerComposePublisherTests.cs (31)
22
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
97
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
98
var envPath = Path.Combine(tempDir.
Path
, ".env");
112
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
130
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
131
var envPath = Path.Combine(tempDir.
Path
, ".env");
143
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
)
158
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
170
using var builder = TestDistributedApplicationBuilder.Create(["--operation", "publish", "--publisher", "default", "--output-path", tempDir.
Path
])
193
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
202
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, "default", outputPath: tempDir.
Path
);
242
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
244
var envPath = Path.Combine(tempDir.
Path
, ".env");
255
var envFilePath = Path.Combine(tempDir.
Path
, ".env");
259
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
286
var envFilePath = Path.Combine(tempDir.
Path
, ".env");
290
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
327
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
341
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
354
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
367
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
380
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
393
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
406
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
421
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
434
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
453
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
465
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
478
var dockerfilePath = Path.Combine(tempDir.
Path
, "testcontainer.Dockerfile");
490
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run, outputPath: tempDir.
Path
);
502
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
DockerComposeTests.cs (6)
125
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
142
await VerifyDirectory(tempDir.
Path
);
150
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
162
var composeFile = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
174
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
196
var composeFile = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
Aspire.Hosting.Kubernetes.Tests (14)
KubernetesEnvironmentResourceTests.cs (2)
76
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
92
await VerifyDirectory(tempDir.
Path
);
KubernetesPublisherTests.cs (12)
17
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, "default", outputPath: tempDir.
Path
);
63
var filePath = Path.Combine(tempDir.
Path
, expectedFile);
83
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
102
var deploymentPath = Path.Combine(tempDir.
Path
, "templates/service/deployment.yaml");
114
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, "default", outputPath: tempDir.
Path
);
158
var filePath = Path.Combine(tempDir.
Path
, expectedFile);
178
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, "default", outputPath: tempDir.
Path
);
212
var filePath = Path.Combine(tempDir.
Path
, expectedFile);
232
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, "default", outputPath: tempDir.
Path
);
267
var filePath = Path.Combine(tempDir.
Path
, expectedFile);
287
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, "default", outputPath: tempDir.
Path
);
299
var dockerfilePath = Path.Combine(tempDir.
Path
, "testcontainer.Dockerfile");
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (1)
261
builder.Configuration["Aspire:Store:Path"] = tempStore.
Path
;
MySqlFunctionalTests.cs (1)
560
.WithTempAspireStore(aspireStore.
Path
)
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (2)
457
builder.Configuration["Aspire:Store:Path"] = tempStore.
Path
;
519
builder.Configuration["Aspire:Store:Path"] = tempStore.
Path
;
PostgresFunctionalTests.cs (1)
549
.WithTempAspireStore(aspireStore.
Path
)
Aspire.Hosting.Tests (17)
MSBuildTests.cs (5)
20
CreateLibraryProject(tempDirectory.
Path
, "Library");
22
var appHostDirectory = Path.Combine(tempDirectory.
Path
, "AppHost");
76
CreateAppProject(tempDirectory.
Path
, "App");
78
var appHostDirectory = Path.Combine(tempDirectory.
Path
, "AppHost");
128
var temp = tempDirectory?.
Path
;
PublishAsDockerfileTests.cs (10)
18
var path = tempDir.
Path
;
56
var path = tempDir.
Path
;
109
var path = tempDir.
Path
;
154
var path = tempDir.
Path
;
216
var path = tempDir.
Path
;
273
var path = tempDir.
Path
;
290
var path = tempDir.
Path
;
310
var path = tempDir.
Path
;
333
var path = tempDir.
Path
;
360
File.WriteAllText(Path.Join(tempDir.
Path
, "Dockerfile"), "this does not matter");
Publishing\ResourceContainerImageBuilderTests.cs (1)
250
OutputPath = Path.Combine(tempDir.
Path
, "NewFolder"), // tests that the folder is created if it doesn't exist
tests\Shared\TempDirectory.cs (1)
12
Directory.Delete(
Path
, recursive: true);
Aspire.Hosting.Yarp.Tests (5)
AddYarpTests.cs (3)
91
var yarp = builder.AddYarp("yarp").WithStaticFiles(tempDir.
Path
);
106
var yarp = builder.AddYarp("yarp").WithStaticFiles(tempDir.
Path
);
120
var yarp = builder.AddYarp("yarp").WithStaticFiles(tempDir.
Path
);
YarpConfigGeneratorTests.cs (2)
268
using var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
293
var composeFile = Path.Combine(tempDir.
Path
, "docker-compose.yaml");