130 references to Path
Aspire.Cli.Tests (130)
Acquisition\InstallSidecarWriterTests.cs (14)
15
var sidecarPath = Path.Combine(workspace.
Path
, InstallSidecarReader.SidecarFileName);
28
using var update = InstallSidecarWriter.PrepareForSelfUpdate(workspace.
Path
, "staging");
44
Assert.Empty(Directory.GetFiles(workspace.
Path
, $"{InstallSidecarReader.SidecarFileName}.*.tmp"));
52
using var update = InstallSidecarWriter.PrepareForSelfUpdate(workspace.
Path
, "daily");
54
var sidecarPath = Path.Combine(workspace.
Path
, InstallSidecarReader.SidecarFileName);
63
var sidecarPath = Path.Combine(workspace.
Path
, InstallSidecarReader.SidecarFileName);
67
Assert.ThrowsAny<JsonException>(() => InstallSidecarWriter.PrepareForSelfUpdate(workspace.
Path
, "staging"));
70
Assert.Empty(Directory.GetFiles(workspace.
Path
, $"{InstallSidecarReader.SidecarFileName}.*.tmp"));
77
var sidecarPath = Path.Combine(workspace.
Path
, InstallSidecarReader.SidecarFileName);
86
() => InstallSidecarWriter.PrepareForSelfUpdate(workspace.
Path
, "staging"));
90
Assert.Empty(Directory.GetFiles(workspace.
Path
, $"{InstallSidecarReader.SidecarFileName}.*.tmp"));
97
var sidecarPath = Path.Combine(workspace.
Path
, InstallSidecarReader.SidecarFileName);
101
InstallSidecarWriter.PrepareForSelfUpdate(workspace.
Path
, "staging")!.Dispose();
104
Assert.Empty(Directory.GetFiles(workspace.
Path
, $"{InstallSidecarReader.SidecarFileName}.*.tmp"));
Acquisition\WingetRegistryProbeTests.cs (8)
23
probe.Run(workspace.
Path
);
25
var sidecarPath = Path.Combine(workspace.
Path
, SidecarFileName);
36
Assert.Empty(Directory.GetFiles(workspace.
Path
));
44
var sidecarPath = Path.Combine(workspace.
Path
, SidecarFileName);
57
probe.Run(workspace.
Path
);
76
probe.Run(workspace.
Path
);
89
var sidecarPath = Path.Combine(workspace.
Path
, SidecarFileName);
93
var leftovers = Directory.GetFiles(workspace.
Path
, $"{SidecarFileName}.*.tmp");
BundleServiceComputeDefaultExtractDirTests.cs (7)
32
var prefixDir = Path.Combine(workspace.
Path
, "aspire");
55
var prDir = Path.Combine(workspace.
Path
, "dogfood", "pr-12345");
76
var installDir = Path.Combine(workspace.
Path
, "WindowsApps", "Microsoft.Aspire_8wekyb3d8bbwe");
103
var cellarDir = Path.Combine(workspace.
Path
, "Caskroom", "aspire", "13.2.0");
109
var brewBinDir = Path.Combine(workspace.
Path
, "bin");
131
workspace.
Path
,
160
var prefixDir = Path.Combine(workspace.
Path
, "nix", "store", "aspire");
Certificates\DeveloperCertificateCacheWriteTests.cs (3)
22
options.StartInfo.Environment["HOME"] = workspace.
Path
;
23
options.StartInfo.Environment["USERPROFILE"] = workspace.
Path
;
50
}, workspace.
Path
, options).Dispose();
Npm\AspireJsLauncherTests.cs (9)
25
var layout = CreateFakeNpmLayout(workspace.
Path
, pointerVersion, rid, ridPackageName, ridPackageVersion);
43
var layout = CreateFakeNpmLayout(workspace.
Path
, pointerVersion, rid, ridPackageName, pointerVersion);
64
var layout = CreateFakeNpmLayout(workspace.
Path
, pointerVersion, rid, ridPackageName, pointerVersion);
66
var monkeyPatchScript = Path.Combine(workspace.
Path
, "patch-chmod.js");
93
var layout = CreateFakeNpmLayout(workspace.
Path
, pointerVersion, rid, ridPackageName, pointerVersion);
95
var monkeyPatchScript = Path.Combine(workspace.
Path
, "patch-copy.js");
122
var layout = CreateFakeNpmLayout(workspace.
Path
, pointerVersion, rid, ridPackageName, pointerVersion);
150
var probeScript = Path.Combine(workspace.
Path
, "detect-rids.js");
169
var probeScript = Path.Combine(workspace.
Path
, "detect-current-rid.js");
Projects\DefaultLanguageDiscoveryTests.cs (2)
196
var appHostPath = Path.Combine(workspace.
Path
, relativePath.Replace('/', Path.DirectorySeparatorChar));
203
var located = java.FindInDirectory(workspace.
Path
);
Projects\GuestRuntimeTests.cs (5)
284
var directory = new DirectoryInfo(workspace.
Path
);
790
new DirectoryInfo(workspace.
Path
),
796
new DirectoryInfo(workspace.
Path
),
947
var tempDir = workspace.
Path
;
990
var tempDir = workspace.
Path
;
Projects\JavaAppHostToolchainResolverTests.cs (48)
81
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
92
File.WriteAllText(Path.Combine(workspace.
Path
, buildFileName), "");
101
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
102
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
111
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
135
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
136
var wrapper = WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw");
144
workspace.
Path
,
183
File.WriteAllText(Path.Combine(workspace.
Path
, buildFileName), "");
184
WriteWrapper(workspace.
Path
, buildFileName == "pom.xml"
234
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
235
var wrapper = WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
242
workspace.
Path
,
272
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
273
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw");
306
var wrapperPath = Path.Combine(workspace.
Path
, expectedWrapper);
341
WriteBuildRootMarker(workspace.
Path
, useMaven);
343
var rootWrapperPath = Path.Combine(workspace.
Path
, expectedWrapper);
346
var moduleDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "apphost"));
371
WriteBuildRootMarker(workspace.
Path
, useMaven);
372
File.WriteAllText(Path.Combine(workspace.
Path
, OperatingSystem.IsWindows() ? windowsWrapperName : wrapperName), "");
374
var innerCheckout = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "inner"));
400
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
401
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
402
var scriptPath = Path.Combine(workspace.
Path
, ".aspire", "aspire-gradle-init.gradle");
419
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
420
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
424
var script = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".aspire", "aspire-gradle-init.gradle"));
435
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
437
var dependencyDirectory = Path.Combine(workspace.
Path
, "target", "aspire-deps");
452
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
456
Assert.False(Directory.Exists(Path.Combine(workspace.
Path
, "target")));
463
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
464
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
466
var dependencyDirectory = Path.Combine(workspace.
Path
, "build", "aspire-deps");
485
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
502
File.WriteAllText(Path.Combine(workspace.
Path
, buildFileName), "");
503
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "main", "java"));
510
Assert.Equal(workspace.
Path
, resolution.ProjectDirectory.FullName);
517
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
518
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "a", "b", "c"));
527
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
528
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw");
529
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "main", "java"));
569
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
570
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
571
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "main", "java"));
578
var scriptPath = Path.Combine(workspace.
Path
, ".aspire", "aspire-gradle-init.gradle");
Telemetry\InternalMicrosoftDetectorTests.cs (27)
23
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
62
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
98
Path.Combine(workspace.
Path
, "cache", "detector.json"),
134
Path.Combine(workspace.
Path
, "cache", "detector.json"),
177
Path.Combine(workspace.
Path
, "cache", "detector.json"),
217
Path.Combine(workspace.
Path
, "cache", "detector.json"),
237
Path.Combine(workspace.
Path
, "cache", "detector.json"),
257
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd"), string.Empty);
258
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd.EXE"), string.Empty);
268
Path.Combine(workspace.
Path
, "cache", "detector.json"),
274
["PATH"] = workspace.
Path
,
294
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd"), string.Empty);
295
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd.EXE"), string.Empty);
302
Path.Combine(workspace.
Path
, "cache", "detector.json"),
308
["PATH"] = workspace.
Path
,
331
Path.Combine(workspace.
Path
, "cache", "detector.json"),
354
Path.Combine(workspace.
Path
, "cache", "detector.json"),
378
Path.Combine(workspace.
Path
, "cache", "detector.json"),
402
Path.Combine(workspace.
Path
, "cache", "detector.json"),
425
Path.Combine(workspace.
Path
, "cache", "detector.json"),
430
["PATH"] = workspace.
Path
,
454
environmentVariables["PATH"] = workspace.
Path
;
457
Path.Combine(workspace.
Path
, "cache", "detector.json"),
480
environmentVariables["PATH"] = workspace.
Path
;
483
Path.Combine(workspace.
Path
, "cache", "detector.json"),
530
environmentVariables["PATH"] = workspace.
Path
;
533
Path.Combine(workspace.
Path
, "cache", "detector.json"),
tests\Shared\TemporaryWorkspace.cs (1)
238
var aspireDir = IOPath.Combine(workspace.
Path
, ".aspire");
Utils\DcpConnectionHealthCheckTests.cs (3)
221
options.StartInfo.Environment["HOME"] = workspace.
Path
;
222
options.StartInfo.Environment["USERPROFILE"] = workspace.
Path
;
243
}, workspace.
Path
, options).Dispose();
Utils\DotNetToolDetectionTests.cs (3)
28
var toolPath = Path.Combine(workspace.
Path
, "custom tool path");
55
var toolPath = Path.Combine(workspace.
Path
, "custom tool path");
83
var processPath = Path.Combine(workspace.
Path
, GetAspireExecutableName());