22 references to SocketPath
Aspire.Hosting.Native.Core.Tests (22)
NativeCliProtocolTests.cs (11)
28var parent = new DirectoryInfo(Path.GetDirectoryName(directory.SocketPath)!); 39Assert.Throws<IOException>(() => CreateProtocol(directory.SocketPath)); 46Assert.Throws<IOException>(() => CreateProtocol(directory.SocketPath)); 49Assert.False(File.Exists(directory.SocketPath)); 61var parent = Path.GetDirectoryName(directory.SocketPath)!; 75SocketPermissionHelper.CreateDirectory(Path.GetDirectoryName(directory.SocketPath)!, repairExisting: true); 76var first = CreateProtocol(directory.SocketPath); 79Assert.Throws<ArgumentException>(() => CreateProtocol(directory.SocketPath)); 82Assert.Equal(UnixFileMode.UserRead | UnixFileMode.UserWrite, File.GetUnixFileMode(directory.SocketPath)); 89using var replacement = CreateProtocol(directory.SocketPath); 91using var client = new NativeSocketTestClient(new UnixDomainSocketEndPoint(directory.SocketPath));
NativeIpcSecurityTests.cs (2)
46using var rpc = new NativeRpcListener(new UnixDomainSocketEndPoint(rpcDirectory.SocketPath), Token, NullLogger.Instance); 78rpcDirectory.SocketPath, cli.SocketPath, auxiliary.SocketPath
NativeSocketIsolationTests.cs (9)
263var parent = Path.GetDirectoryName(directory.SocketPath)!; 267Assert.Throws<IOException>(() => new NativeRpcListener(new UnixDomainSocketEndPoint(directory.SocketPath), Token, NullLogger.Instance)); 269Assert.False(File.Exists(directory.SocketPath)); 280var endPoint = new UnixDomainSocketEndPoint(directory.SocketPath); 284Assert.Equal(UnixFileMode.UserRead | UnixFileMode.UserWrite, File.GetUnixFileMode(directory.SocketPath)); 286Assert.True(File.Exists(directory.SocketPath)); 292Assert.False(File.Exists(directory.SocketPath)); 295Assert.True(File.Exists(directory.SocketPath)); 308var endPoint = new UnixDomainSocketEndPoint(directory.SocketPath);