167 references to Path
Infrastructure.Tests (167)
BuildWarningPolicyTests.cs (5)
31using var command = CreateCommand(script, RepoRoot.Path) 96File.Copy(Path.Combine(RepoRoot.Path, "eng", file), Path.Combine(root, "eng", file)); 101File.Copy(Path.Combine(RepoRoot.Path, file), Path.Combine(root, file)); 324var dotnet = Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"); 331.WithEnvironmentVariable("TEST_REPO", RepoRoot.Path)
CreateFailingTestIssue\CreateFailingTestIssueFixture.cs (1)
18ToolProjectPath = Path.Combine(RepoRoot.Path, "tools", "CreateFailingTestIssue", "CreateFailingTestIssue.csproj");
DownloadFailingJobLogs\DownloadFailingJobLogsFixture.cs (2)
19ToolPath = Path.Combine(RepoRoot.Path, "tools", "scripts", "DownloadFailingJobLogs.cs"); 20DotNetPath = Path.Combine(RepoRoot.Path, "dotnet.sh");
ExtractTestPartitions\ExtractTestPartitionsFixture.cs (1)
54var projectPath = Path.Combine(RepoRoot.Path, "tools", "ExtractTestPartitions", "ExtractTestPartitions.csproj");
GenerateTestSummary\GenerateTestSummaryFixture.cs (1)
18ToolProjectPath = Path.Combine(RepoRoot.Path, "tools", "GenerateTestSummary", "GenerateTestSummary.csproj");
Hex1bNativePublishingTests.cs (9)
21Path.Combine(RepoRoot.Path, "artifacts", "tests", nameof(Hex1bNativePublishingTests), Guid.NewGuid().ToString("N")))); 42var project = Path.Combine(RepoRoot.Path, "src", projectName, $"{projectName}.csproj"); 59using var reader = File.OpenText(Path.Combine(RepoRoot.Path, ".github", "workflows", "build-cli-native-archives.yml")); 70["msbuild", Path.Combine(RepoRoot.Path, "eng", "Bundle.proj"), "-nologo", "-getProperty:Configuration"]); 76var project = Path.Combine(RepoRoot.Path, "src", projectName, $"{projectName}.csproj"); 97["msbuild", Path.Combine(RepoRoot.Path, "eng", "Bundle.proj"), "-nologo", "-t:_ShowBanner", 112["msbuild", Path.Combine(RepoRoot.Path, "src", "Aspire.TerminalHost", "Aspire.TerminalHost.csproj"), 121Path.GetFullPath(Path.Combine(RepoRoot.Path, "artifacts", "bin", "Aspire.TerminalHost", "Debug", framework!)), 432new XElement("Import", new XAttribute("Project", Path.Combine(RepoRoot.Path, "src", "Aspire.Hosting", "buildTransitive", "Aspire.Hosting.targets"))),
MicrosoftTestingPlatformTests.cs (6)
38.WithWorkingDirectory(RepoRoot.Path) 39.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet")) 40.WithEnvironmentVariable("TEST_REPO", RepoRoot.Path) 74.WithWorkingDirectory(RepoRoot.Path) 75.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet")) 80var target = XDocument.Load(Path.Combine(RepoRoot.Path, "eng", "Xunit3", "Microsoft.Testing.Platform.targets"));
Pipelines\BundleBuildWrapperTests.cs (2)
56File.Copy(Path.Combine(RepoRoot.Path, "eng", "scripts", "stabilization-smoke-init-restore.sh"), script); 102File.Copy(Path.Combine(RepoRoot.Path, "eng", name), Path.Combine(root, "eng", name));
Pipelines\MacOSStaplerRetryTests.cs (2)
24Path.Combine(RepoRoot.Path, "tests", "Infrastructure.Tests", "Pipelines", "macos-stapler-retry.harness.js"), 25RepoRoot.Path, scenario);
Pipelines\NixCliPackageTests.cs (4)
44Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"), 101Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"), 130Path.Combine(RepoRoot.Path, "eng", "nix", "update-versions.sh"), 183: File.ReadAllTextAsync(Path.Combine(RepoRoot.Path, relativePath));
Pipelines\NpmCliPackageTests.cs (1)
28private readonly string _repoRoot = RepoRoot.Path;
Pipelines\TrayBundleTests.cs (7)
216.WithWorkingDirectory(RepoRoot.Path) 220"-RepositoryRoot", $"\"{RepoRoot.Path}\"", 248Path.Combine(RepoRoot.Path, "eng/github-ci/test-trigger-map.yml"), 353File.Copy(Path.Combine(RepoRoot.Path, "src/Shared/Aspire.ico"), Path.Combine(source, "Aspire.ico"), overwrite: true); 379using var command = new PowerShellCommand(Path.Combine(RepoRoot.Path, "tools/CreateLayout/verify-windows-tray-payload.ps1"), output) 453"-Verifier", $"\"{Path.Combine(RepoRoot.Path, "tools/CreateLayout/verify-linux-tray-payload.sh")}\"", 510using var command = new PowerShellCommand(Path.Combine(RepoRoot.Path, "eng/scripts/test-native-tray.ps1"), output)
PowerShellScripts\BuildTestMatrixTests.cs (3)
23_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "build-test-matrix.ps1"); 680var propsPath = Path.Combine(RepoRoot.Path, "eng", "testing", "CITestsProperties.props"); 779var propsPath = Path.Combine(RepoRoot.Path, "eng", "testing", "CITestsProperties.props");
PowerShellScripts\CiResourceMonitorTests.cs (1)
24_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "ci-resource-monitor.ps1");
PowerShellScripts\DownloadNativeArchivesTests.cs (1)
25_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "download-native-archives.ps1");
PowerShellScripts\ExpandTestMatrixGitHubTests.cs (3)
23_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "expand-test-matrix-github.ps1"); 547var buildMatrixScript = Path.Combine(RepoRoot.Path, "eng", "scripts", "build-test-matrix.ps1"); 563var splitScriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "split-test-matrix-by-deps.ps1");
PowerShellScripts\ScanTestPartitionsFromSourceGuardTests.cs (2)
43var testsRoot = Path.Combine(RepoRoot.Path, "tests"); 79var rel = Path.GetRelativePath(RepoRoot.Path, file).Replace('\\', '/');
PowerShellScripts\SplitTestMatrixByDepsTests.cs (1)
24_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "split-test-matrix-by-deps.ps1");
PowerShellScripts\SplitTestProjectsTests.cs (1)
31_repoRoot = RepoRoot.Path;
PowerShellScripts\StageNativeCliToolPackagesTests.cs (1)
33_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "stage-native-cli-tool-packages.ps1");
PowerShellScripts\ValidateNpmPackageSignaturesTests.cs (1)
28_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "validate-npm-package-signatures.ps1");
PowerShellScripts\ValidateNpmReleaseAliasesTests.cs (1)
26_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "validate-npm-release-aliases.ps1");
PowerShellScripts\VerifyNonBlockingTestResultsTests.cs (1)
19_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "verify-nonblocking-test-results.ps1");
PowerShellScripts\WriteClassModeTestPropsTests.cs (1)
19_scriptPath = Path.Combine(RepoRoot.Path, "eng", "scripts", "write-class-mode-test-props.ps1");
ResourceGeneratorMetadataTests.cs (3)
46var projectDirectory = Path.Combine(RepoRoot.Path, "src", projectName); 47var source = XDocument.Load(Path.Combine(RepoRoot.Path, "Directory.Build.targets")); 175private static string DotNetPath => Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet");
TemplateManifest\TemplateManifestBuildTargetTests.cs (2)
31var templateProject = XDocument.Load(Path.Combine(RepoRoot.Path, "src", "Aspire.ProjectTemplates", "Aspire.ProjectTemplates.csproj")); 64.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"))
TemplateManifest\TemplateManifestGenerationTests.cs (1)
90new PowerShellCommand(Path.Combine(RepoRoot.Path, "eng", "scripts", "generate-template-cgmanifest.ps1"), output)
TemplateManifest\TemplateManifestTestEnvironment.cs (1)
91var dotnet = Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet");
TemplateManifest\TemplateRestorePlanTests.cs (1)
205.WithEnvironmentVariable("TEST_DOTNET", Path.Combine(RepoRoot.Path, ".dotnet", OperatingSystem.IsWindows() ? "dotnet.exe" : "dotnet"))
TestTriggerMap\PrComparisonBaseTests.cs (1)
295[Path.Combine(RepoRoot.Path, "eng", "github-ci", "resolve-comparison-base.sh"), eventBase, head],
TestTriggerMap\SelectTestsAcceptanceTests.cs (28)
830var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 832var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter); 861var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 863var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter); 886var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 888var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter); 997var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1018var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1034var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1047var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1058var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1084var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1107var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1119var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1138var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1159var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1182var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1186var filter = ChangedFileFilter.Create(RepoRoot.Path, map.Prefilter); 1211var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1234var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1249var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1274var srcDir = Path.Combine(RepoRoot.Path, "src"); 1275var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts"); 1301var polyglotRoot = Path.Combine(RepoRoot.Path, "tests", "PolyglotAppHosts"); 1330var componentsRoot = Path.Combine(RepoRoot.Path, "src", "Components"); 1345var testsDir = Path.Combine(RepoRoot.Path, "tests"); 1355var testsDir = Path.Combine(RepoRoot.Path, "tests"); 1365var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx"));
TestTriggerMap\SelectTestsCliTests.cs (8)
526var solution = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx")); 534var project = File.ReadAllText(Path.Combine(RepoRoot.Path, projectPath)); 543RepoRoot.Path, 667var options = Options(RepoRoot.Path, propsPath, changedFilesPath: changed, enforce: true) with 669MapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml") 827var workflow = File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml")); 831var options = Options(RepoRoot.Path, propsPath, skipLayer1: true, forceAll: true, enforce: true) with 833MapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml")
TestTriggerMap\TestTriggerMapTests.cs (8)
187var slnx = File.ReadAllText(Path.Combine(RepoRoot.Path, "Aspire.slnx")); 535WorkingDirectory = RepoRoot.Path, 1044using (var reader = new StringReader(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "tests.yml")))) 1126Path.Combine(RepoRoot.Path, "tests"), "*.csproj", SearchOption.AllDirectories) 1137var mapPath = Path.Combine(RepoRoot.Path, "eng", "github-ci", "test-trigger-map.yml"); 1200var solutionPath = Path.Combine(RepoRoot.Path, "Aspire.slnx"); 1216RepoRoot.Path, 1242var relativePath = Path.GetRelativePath(RepoRoot.Path, projectPath).Replace('\\', '/');
WorkflowScripts\AnalyzeCiFailureReportTemplatesTests.cs (2)
117.WithWorkingDirectory(RepoRoot.Path) 122Path.Combine(RepoRoot.Path, ".github", "workflows", "analyze-ci-failure", "prepare-report-templates.js"),
WorkflowScripts\AutoRerunTransientCiFailuresTests.cs (1)
27_repoRoot = RepoRoot.Path;
WorkflowScripts\AutoSecWorkflowTests.cs (10)
3255AssertPublicationGuards(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml"))); 3624=> AssertSafeUploadPaths(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml"))); 3629var steps = PublicationSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml"))); 3643var steps = AgentSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml"))); 3687=> new(PublicationSteps(File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", "auto-sec.lock.yml"))) 4223["nugetConfigText"] = File.ReadAllText(Path.Combine(RepoRoot.Path, "NuGet.config")), 4332["nugetConfigText"] = File.ReadAllText(Path.Combine(RepoRoot.Path, "NuGet.config")), 4797command.WithWorkingDirectory(RepoRoot.Path).WithTimeout(TimeSpan.FromSeconds(30)); 4799Path.Combine(RepoRoot.Path, "tests", "Infrastructure.Tests", "WorkflowScripts", "auto-sec.harness.js"), 4810=> File.ReadAllText(Path.Combine(RepoRoot.Path, ".github", "workflows", fileName));
WorkflowScripts\BackportWorkflowTests.cs (2)
25Path.Combine(RepoRoot.Path, "tests", "Infrastructure.Tests", "WorkflowScripts", "backport-cleanup.harness.mjs"), 41using var reader = File.OpenText(Path.Combine(RepoRoot.Path, WorkflowRelativePath));
WorkflowScripts\CreateFailingTestIssueWorkflowTests.cs (1)
26_repoRoot = RepoRoot.Path;
WorkflowScripts\CreatePullRequestActionTests.cs (1)
16var action = ReadYaml(Path.Combine(RepoRoot.Path, ".github", "actions", "create-pull-request", "action.yml"));
WorkflowScripts\DashboardExperienceScriptTests.cs (2)
16.WithWorkingDirectory(RepoRoot.Path) 18var result = await command.ExecuteScriptAsync(Path.Combine(RepoRoot.Path,
WorkflowScripts\DashboardResourceGraphScriptTests.cs (4)
16.WithWorkingDirectory(RepoRoot.Path) 18var result = await command.ExecuteScriptAsync(Path.Combine(RepoRoot.Path, 29.WithWorkingDirectory(RepoRoot.Path) 31var result = await command.ExecuteScriptAsync(Path.Combine(RepoRoot.Path,
WorkflowScripts\DashboardResourceNavigationScriptTests.cs (2)
16.WithWorkingDirectory(RepoRoot.Path) 18var result = await command.ExecuteScriptAsync(Path.Combine(RepoRoot.Path,
WorkflowScripts\DashboardTerminalScriptTests.cs (2)
56.WithWorkingDirectory(RepoRoot.Path) 58var result = await command.ExecuteScriptAsync(Path.Combine(RepoRoot.Path,
WorkflowScripts\DeploymentTestScriptTests.cs (1)
16RepoRoot.Path,
WorkflowScripts\ExtensionChangelogFinalizedWorkflowTests.cs (1)
257var scriptPath = Path.Combine(RepoRoot.Path, ScriptRelativePath);
WorkflowScripts\ExtensionReleaseWorkflowTests.cs (6)
14RepoRoot.Path, 20RepoRoot.Path, 26RepoRoot.Path, 354WorkingDirectory = RepoRoot.Path, 404WorkingDirectory = RepoRoot.Path, 437WorkingDirectory = RepoRoot.Path,
WorkflowScripts\FilterNonBlockingTestArtifactsTests.cs (5)
12RepoRoot.Path, 31var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path); 63var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path); 89var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path); 115var result = await TestProcessRunner.RunAsync(output, "bash", [s_scriptPath, allLogsPath], RepoRoot.Path);
WorkflowScripts\LabelerPredictPullsWorkflowTests.cs (1)
18private readonly string _repoRoot = RepoRoot.Path;
WorkflowScripts\LintHandwrittenWorkflowsScriptTests.cs (1)
17RepoRoot.Path,
WorkflowScripts\MonitorScheduledWorkflowsIntegrationTests.cs (1)
38_repoRoot = RepoRoot.Path;
WorkflowScripts\MonitorScheduledWorkflowsTests.cs (1)
27_repoRoot = RepoRoot.Path;
WorkflowScripts\MtpExitCodeScriptTests.cs (3)
13RepoRoot.Path, 18RepoRoot.Path, 55process.StartInfo.WorkingDirectory = RepoRoot.Path;
WorkflowScripts\PrDocsCheckWorkflowTests.cs (1)
26WorkingDirectory = RepoRoot.Path,
WorkflowScripts\ReportCiFailureIntegrationTests.cs (1)
34_repoRoot = RepoRoot.Path;
WorkflowScripts\ReportCiFailureTests.cs (1)
28_repoRoot = RepoRoot.Path;
WorkflowScripts\ReportPipelineFailureIntegrationTests.cs (1)
34_repoRoot = RepoRoot.Path;
WorkflowScripts\ReportPipelineFailureTests.cs (1)
27_repoRoot = RepoRoot.Path;
WorkflowScripts\ReportSpecializedTestFailuresTests.cs (1)
27_repoRoot = RepoRoot.Path;
WorkflowScripts\SpecializedTestFailureRunnerTests.cs (1)
35_repoRoot = RepoRoot.Path;
WorkflowScripts\TrackingIssueTests.cs (1)
29_repoRoot = RepoRoot.Path;
WorkflowScripts\UpdateActionlintTests.cs (1)
33_repoRoot = RepoRoot.Path;