187 references to Path
Aspire.Cli.Tests (187)
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();
Commands\InitCommandTests.cs (3)
478
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "apphost.mts"), "console.log('existing AppHost');");
481
var originalFiles = Directory.GetFiles(workspace.
Path
, "*", SearchOption.AllDirectories)
524
var projectFiles = Directory.GetFiles(workspace.
Path
, "*", SearchOption.AllDirectories).Where(path => path != logFilePath);
HeldFileLeaseTests.cs (5)
57
var leaseDirectory = Path.Combine(workspace.
Path
, "missing");
79
var readyPath = Path.Combine(workspace.
Path
, "ready");
80
var releasePath = Path.Combine(workspace.
Path
, "release");
135
var readyPath = Path.Combine(workspace.
Path
, "ready");
136
var releasePath = Path.Combine(workspace.
Path
, "release");
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)
282
var directory = new DirectoryInfo(workspace.
Path
);
976
new DirectoryInfo(workspace.
Path
),
982
new DirectoryInfo(workspace.
Path
),
1137
var tempDir = workspace.
Path
;
1180
var tempDir = workspace.
Path
;
Projects\JavaAppHostToolchainResolverTests.cs (58)
84
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
95
File.WriteAllText(Path.Combine(workspace.
Path
, buildFileName), "");
104
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
105
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
114
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
138
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
139
var wrapper = WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw");
147
workspace.
Path
,
186
File.WriteAllText(Path.Combine(workspace.
Path
, buildFileName), "");
187
WriteWrapper(workspace.
Path
, buildFileName == "pom.xml"
243
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
244
var wrapper = WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
251
workspace.
Path
,
281
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
282
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw");
315
var wrapperPath = Path.Combine(workspace.
Path
, expectedWrapper);
350
WriteBuildRootMarker(workspace.
Path
, useMaven);
352
var rootWrapperPath = Path.Combine(workspace.
Path
, expectedWrapper);
355
var moduleDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "apphost"));
375
var appHostDirectory = CreateMavenReactor(workspace.
Path
);
376
var localRepository = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "empty-maven-repository"));
386
Path.Combine(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"),
410
Path.Combine(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"),
441
var appHostDirectory = CreateIndependentMavenReactor(workspace.
Path
);
442
var localRepository = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "empty-maven-repository"));
452
Path.Combine(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw"),
480
Path.Combine(workspace.
Path
, "pom.xml"),
482
var wrapperPath = WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw");
484
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "standalone"));
692
WriteBuildRootMarker(workspace.
Path
, useMaven);
693
File.WriteAllText(Path.Combine(workspace.
Path
, OperatingSystem.IsWindows() ? windowsWrapperName : wrapperName), "");
695
var innerCheckout = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "inner"));
721
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
722
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
723
var scriptPath = Path.Combine(workspace.
Path
, ".aspire", "aspire-gradle-init.gradle");
740
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
741
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
745
var script = await File.ReadAllTextAsync(Path.Combine(workspace.
Path
, ".aspire", "aspire-gradle-init.gradle"));
756
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
758
var dependencyDirectory = Path.Combine(workspace.
Path
, "target", "aspire-deps");
773
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
777
Assert.False(Directory.Exists(Path.Combine(workspace.
Path
, "target")));
784
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
785
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
787
var dependencyDirectory = Path.Combine(workspace.
Path
, "build", "aspire-deps");
806
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
823
File.WriteAllText(Path.Combine(workspace.
Path
, buildFileName), "");
824
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "main", "java"));
831
Assert.Equal(workspace.
Path
, resolution.ProjectDirectory.FullName);
838
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
839
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "a", "b", "c"));
848
File.WriteAllText(Path.Combine(workspace.
Path
, "pom.xml"), "<project />");
849
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "mvnw.cmd" : "mvnw");
850
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "main", "java"));
890
File.WriteAllText(Path.Combine(workspace.
Path
, "build.gradle"), "");
891
WriteWrapper(workspace.
Path
, OperatingSystem.IsWindows() ? "gradlew.bat" : "gradlew");
892
var appHostDirectory = Directory.CreateDirectory(Path.Combine(workspace.
Path
, "src", "main", "java"));
899
var scriptPath = Path.Combine(workspace.
Path
, ".aspire", "aspire-gradle-init.gradle");
Telemetry\InternalMicrosoftDetectorTests.cs (66)
44
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
86
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
112
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
136
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
175
Path.Combine(workspace.
Path
, "cache", "detector.json"),
211
Path.Combine(workspace.
Path
, "cache", "detector.json"),
257
Path.Combine(workspace.
Path
, "cache", "detector.json"),
287
Path.Combine(workspace.
Path
, "cache", "detector.json"),
330
Path.Combine(workspace.
Path
, "cache", "detector.json"),
357
Path.Combine(workspace.
Path
, "cache", "detector.json"),
373
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
392
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
419
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
442
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
468
Path.Combine(workspace.
Path
, "cache", "detector.json"),
491
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
525
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
564
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
590
Path.Combine(workspace.
Path
, "cache", "detector.json"),
611
Path.Combine(workspace.
Path
, "cache", "detector.json"),
631
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd"), string.Empty);
632
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd.EXE"), string.Empty);
643
Path.Combine(workspace.
Path
, "cache", "detector.json"),
649
["PATH"] = workspace.
Path
,
669
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd"), string.Empty);
670
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd.EXE"), string.Empty);
680
Path.Combine(workspace.
Path
, "cache", "detector.json"),
686
["PATH"] = workspace.
Path
,
703
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd"), string.Empty);
704
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd.EXE"), string.Empty);
711
Path.Combine(workspace.
Path
, "cache", "detector.json"),
717
["PATH"] = workspace.
Path
,
850
var appSsoPath = Path.Combine(workspace.
Path
, "usr", "bin", "app-sso");
872
Path.Combine(workspace.
Path
, "cache", "detector.json"),
891
Path.Combine(workspace.
Path
, "cache", "detector.json"),
894
macPlatformSsoPath: Path.Combine(workspace.
Path
, "missing-app-sso"));
907
var appSsoPath = Path.Combine(workspace.
Path
, "app-sso");
937
Path.Combine(workspace.
Path
, "cache", "detector.json"),
951
Path.Combine(workspace.
Path
, "full-detector-cache", "detector.json"),
1024
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1045
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd"), string.Empty);
1046
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, "dsregcmd.EXE"), string.Empty);
1052
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1058
["PATH"] = workspace.
Path
,
1076
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, executable), string.Empty);
1083
["PATH"] = workspace.
Path
1086
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1107
await File.WriteAllTextAsync(Path.Combine(workspace.
Path
, executable), string.Empty);
1114
["PATH"] = workspace.
Path
1117
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1141
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1166
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1183
var cacheFilePath = Path.Combine(workspace.
Path
, "cache", "detector.json");
1214
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1238
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1262
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1286
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1309
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1314
["PATH"] = workspace.
Path
,
1338
environmentVariables["PATH"] = workspace.
Path
;
1341
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1362
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1568
environmentVariables["PATH"] = workspace.
Path
;
1571
Path.Combine(workspace.
Path
, "cache", "detector.json"),
1618
environmentVariables["PATH"] = workspace.
Path
;
1621
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());