70 references to Path
Aspire.Hosting.Azure.Tests (8)
AzureAppServiceTests.cs (2)
332
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: tempDir.
Path
);
353
Path.Combine(tempDir.
Path
, "aspire-manifest.json"),
AzureContainerAppsTests.cs (2)
1548
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, outputPath: tempDir.
Path
);
1564
await VerifyFile(Path.Combine(tempDir.
Path
, "aspire-manifest.json"));
AzureEnvironmentResourceTests.cs (4)
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");
Aspire.Hosting.Containers.Tests (4)
DockerSocketBindMountTests.cs (4)
23
var dockerFilePath = Path.Combine(dir.
Path
, "Dockerfile");
28
appBuilder.AddDockerfile("docker-client", contextPath: dir.
Path
)
30
.WithBindMount(outDir.
Path
, "/out");
47
var infoFile = Path.Combine(outDir.
Path
, "docker-info.txt");
Aspire.Hosting.Docker.Tests (31)
DockerComposePublisherTests.cs (29)
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");
466
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Run, outputPath: tempDir.
Path
);
478
var composePath = Path.Combine(tempDir.
Path
, "docker-compose.yaml");
DockerComposeTests.cs (2)
125
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
142
await VerifyDirectory(tempDir.
Path
);
Aspire.Hosting.Kubernetes.Tests (10)
KubernetesEnvironmentResourceTests.cs (2)
73
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, publisher: "default", outputPath: tempDir.
Path
);
89
await VerifyDirectory(tempDir.
Path
);
KubernetesPublisherTests.cs (8)
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
);
157
var filePath = Path.Combine(tempDir.
Path
, expectedFile);
177
var builder = TestDistributedApplicationBuilder.Create(DistributedApplicationOperation.Publish, "default", outputPath: tempDir.
Path
);
209
var filePath = Path.Combine(tempDir.
Path
, expectedFile);
Aspire.Hosting.MySql.Tests (2)
AddMySqlTests.cs (1)
261
builder.Configuration["Aspire:Store:Path"] = tempStore.
Path
;
MySqlFunctionalTests.cs (1)
558
.WithTempAspireStore(aspireStore.
Path
)
Aspire.Hosting.PostgreSQL.Tests (3)
AddPostgresTests.cs (2)
455
builder.Configuration["Aspire:Store:Path"] = tempStore.
Path
;
513
builder.Configuration["Aspire:Store:Path"] = tempStore.
Path
;
PostgresFunctionalTests.cs (1)
549
.WithTempAspireStore(aspireStore.
Path
)
Aspire.Hosting.Tests (12)
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 (6)
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
;
270
File.WriteAllText(Path.Join(tempDir.
Path
, "Dockerfile"), "this does not matter");
tests\Shared\TempDirectory.cs (1)
12
Directory.Delete(
Path
, recursive: true);