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