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