feat: 支持Cli通过server info
输出服务器信息
#60
117 passed, 7 failed and 0 skipped
❌ ./src/Serein.Tests/TestResults.trx
124 tests were completed in 41s with 117 passed, 7 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
Serein.Tests.Services.BindingTests | 8✅ | 1s | ||
Serein.Tests.Services.CommandParser.CommandTests | 28✅ | 4ms | ||
Serein.Tests.Services.CommandParser.VariableTests | 19✅ | 31ms | ||
Serein.Tests.Services.CommandTests | 1✅ | 108ms | ||
Serein.Tests.Services.JsPlugin.LoadTests | 1✅ | 1❌ | 1s | |
Serein.Tests.Services.JsPlugin.PluginConfigTests | 1✅ | 949ms | ||
Serein.Tests.Services.JsPlugin.PluginInfoTests | 4✅ | 2s | ||
Serein.Tests.Services.JsPlugin.RunTimeTests | 3✅ | 2s | ||
Serein.Tests.Services.PermissionGroup.DefaultValueTests | 1✅ | 12ms | ||
Serein.Tests.Services.PermissionGroup.LogicTests | 8✅ | 33ms | ||
Serein.Tests.Services.PermissionGroup.NodeTests | 10✅ | 8ms | ||
Serein.Tests.Services.Server.ConfigurationTests | 2✅ | 3s | ||
Serein.Tests.Services.Server.FunctionTests | 2✅ | 13s | ||
Serein.Tests.Services.Server.ManagementTests | 14✅ | 51ms | ||
Serein.Tests.Services.WebApi.ApiTests | 6❌ | 17s | ||
Serein.Tests.Static.CrashTests | 1✅ | 11ms | ||
Serein.Tests.Static.MatchTests | 9✅ | 28ms | ||
Serein.Tests.Static.ScheduleTests | 3✅ | 17ms | ||
Serein.Tests.Static.SereinAppInfoTests | 2✅ | 10ms |
✅ Serein.Tests.Services.BindingTests
✅ ShouldBeAbleToAccessUsingCommandVariable
✅ ShouldCheckConflict
✅ ShouldThrowWhenTryingToRemoveNonExistentRecord
✅ ShouldValidateInvalidGameId(gameId: "_")
✅ ShouldValidateInvalidGameId(gameId: "-")
✅ ShouldValidateInvalidGameId(gameId: "00000000000000000000000000000000000000000000000000"···)
✅ ShouldValidateInvalidGameId(gameId: "1")
✅ ShouldValidateInvalidGameId(gameId: "a..bc")
✅ Serein.Tests.Services.CommandParser.CommandTests
✅ ShouldBeAbleToParseCommand(input: "[cmd]114", exceptedType: ExecuteShellCommand, exceptedBody: "114", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[CmD]514", exceptedType: ExecuteShellCommand, exceptedBody: "514", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[cmD]abc", exceptedType: ExecuteShellCommand, exceptedBody: "abc", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[G:114514]3", exceptedType: SendGroupMsg, exceptedBody: "3", exceptedArgument: "114514")
✅ ShouldBeAbleToParseCommand(input: "[g]1", exceptedType: SendGroupMsg, exceptedBody: "1", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[group:114514]4", exceptedType: SendGroupMsg, exceptedBody: "4", exceptedArgument: "114514")
✅ ShouldBeAbleToParseCommand(input: "[grOUp:114514]4", exceptedType: SendGroupMsg, exceptedBody: "4", exceptedArgument: "114514")
✅ ShouldBeAbleToParseCommand(input: "[gRoup]2", exceptedType: SendGroupMsg, exceptedBody: "2", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[p:114514]3", exceptedType: SendPrivateMsg, exceptedBody: "3", exceptedArgument: "114514")
✅ ShouldBeAbleToParseCommand(input: "[p]1", exceptedType: SendPrivateMsg, exceptedBody: "1", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[priVate:114514]4", exceptedType: SendPrivateMsg, exceptedBody: "4", exceptedArgument: "114514")
✅ ShouldBeAbleToParseCommand(input: "[priVAte:114514]4", exceptedType: SendPrivateMsg, exceptedBody: "4", exceptedArgument: "114514")
✅ ShouldBeAbleToParseCommand(input: "[pRIvate]2", exceptedType: SendPrivateMsg, exceptedBody: "2", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[s]0000", exceptedType: InputServer, exceptedBody: "0000", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[server]0000", exceptedType: InputServer, exceptedBody: "0000", exceptedArgument: null)
✅ ShouldBeAbleToParseCommand(input: "[sErVer]0000", exceptedType: InputServer, exceptedBody: "0000", exceptedArgument: null)
✅ ShouldThrowExceptionWithInvalidInput(input: " [", exceptedMsg: "缺少命令标识")
✅ ShouldThrowExceptionWithInvalidInput(input: " ", exceptedMsg: "命令为空")
✅ ShouldThrowExceptionWithInvalidInput(input: "", exceptedMsg: "命令为空")
✅ ShouldThrowExceptionWithInvalidInput(input: "[:]123", exceptedMsg: "命令语法不正确")
✅ ShouldThrowExceptionWithInvalidInput(input: "[", exceptedMsg: "缺少命令标识")
✅ ShouldThrowExceptionWithInvalidInput(input: "[]", exceptedMsg: "命令语法不正确")
✅ ShouldThrowExceptionWithInvalidInput(input: "[]123", exceptedMsg: "命令语法不正确")
✅ ShouldThrowExceptionWithInvalidInput(input: "[]a", exceptedMsg: "命令语法不正确")
✅ ShouldThrowExceptionWithInvalidInput(input: "[1]", exceptedMsg: "命令语法不正确")
✅ ShouldThrowExceptionWithInvalidInput(input: "]", exceptedMsg: "缺少命令标识")
✅ ShouldThrowExceptionWithInvalidInput(input: "1", exceptedMsg: "缺少命令标识")
✅ ShouldThrowExceptionWithInvalidInput(input: null, exceptedMsg: "命令为空")
✅ Serein.Tests.Services.CommandParser.VariableTests
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{_}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{\\}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{1}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a.}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a.111}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a.b.}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a.b.c}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a.b}", result: True)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a.b@}", result: False)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a.b@c}", result: True)
✅ ShouldAnalyzeWhetherToBeVariablePattern(input: "{a}", result: True)
✅ ShouldApplyCustomVariables
✅ ShouldPreserveOrRemoveInvalidVariable(input: "{aaa.bb@ccc}")
✅ ShouldPreserveOrRemoveInvalidVariable(input: "{aaa.bbbb}")
✅ ShouldPreserveOrRemoveInvalidVariable(input: "{aasafjefeiooivniv}")
✅ ShouldWorkWithMsgPacketVariable
✅ ShouldWorkWithRegexVariable
✅ ShouldWorkWithServerVariable
✅ Serein.Tests.Services.CommandTests
✅ ShouldExecuteShellCommand
❌ Serein.Tests.Services.JsPlugin.LoadTests
❌ ShouldLoadSingleJsPlugin
Assert.Single() Failure: The collection was empty
✅ ShouldSkipJsModuleFile
✅ Serein.Tests.Services.JsPlugin.PluginConfigTests
✅ ShouldLoadJsPluginWithoutSpecifyingAssemblies
✅ Serein.Tests.Services.JsPlugin.PluginInfoTests
✅ ShouldLoadJsPluginWithoutSpecifyingEntryFile
✅ ShouldLoadJsPluginWithValidPluginInfo
✅ ShouldNotLoadJsPluginWithInvalidPluginInfo
✅ ShouldNotLoadJsPluginWithoutPluginInfo
✅ Serein.Tests.Services.JsPlugin.RunTimeTests
✅ ShouldAccessToBuiltInProperties
✅ ShouldAccessToClrMethod
✅ ShouldAccessToClrType
✅ Serein.Tests.Services.PermissionGroup.DefaultValueTests
✅ ShouldCreateDefaultGroup
✅ Serein.Tests.Services.PermissionGroup.LogicTests
✅ ShouldAvoidCyclingInheritance
✅ ShouldInheritFromDefaultGroup
✅ ShouldWorkWithInheritance
✅ ShouldWorkWithInheritanceAndPriority(priority1: -1, priority2: 1, expected: False)
✅ ShouldWorkWithInheritanceAndPriority(priority1: 0, priority2: 0, expected: False)
✅ ShouldWorkWithInheritanceAndPriority(priority1: 1, priority2: -1, expected: True)
✅ ShouldWorkWithWildcard(permissionKey: "NodeTests.*", result1: True, result2: True)
✅ ShouldWorkWithWildcard(permissionKey: "NodeTests.foo.*", result1: True, result2: null)
✅ Serein.Tests.Services.PermissionGroup.NodeTests
✅ ShouldBeAbleToRegisterPermissions(node: "a-b")
✅ ShouldBeAbleToRegisterPermissions(node: "a-c.a-c")
✅ ShouldBeAbleToRegisterPermissions(node: "a11.b22")
✅ ShouldBeAbleToRegisterPermissions(node: "abc.abc")
✅ ShouldBeAbleToRegisterPermissions(node: "abc")
✅ ShouldThrowWhenRegisteringPermissionsWithInvalidKey(node: "")
✅ ShouldThrowWhenRegisteringPermissionsWithInvalidKey(node: "114514.abc")
✅ ShouldThrowWhenRegisteringPermissionsWithInvalidKey(node: "a..b")
✅ ShouldThrowWhenRegisteringPermissionsWithInvalidKey(node: "abc.")
✅ ShouldThrowWhenUnregisterNonExistentPermission
✅ Serein.Tests.Services.Server.ConfigurationTests
✅ ShouldOutputToFile
✅ ShouldStartServerWithStartWhenSettingUpTrue
✅ Serein.Tests.Services.Server.FunctionTests
✅ ShouldGetPid
✅ ShouldRestartServer
✅ Serein.Tests.Services.Server.ManagementTests
✅ ShouldAddServer
✅ ShouldNotAddServerWithInvalidId(id: "")
✅ ShouldNotAddServerWithInvalidId(id: "1")
✅ ShouldNotAddServerWithInvalidId(id: "a")
✅ ShouldNotAddServerWithInvalidId(id: "abc-")
✅ ShouldNotAddServerWithInvalidId(id: "abc-1")
✅ ShouldNotAddServerWithInvalidId(id: "abc;")
✅ ShouldNotAddServerWithInvalidId(id: "aux")
✅ ShouldNotAddServerWithInvalidId(id: "com0")
✅ ShouldNotAddServerWithInvalidId(id: "con")
✅ ShouldNotAddServerWithInvalidId(id: "nul")
✅ ShouldNotAddServerWithInvalidId(id: "prn")
✅ ShouldNotRemoveRunningServer
✅ ShouldRemoveServer
❌ Serein.Tests.Services.WebApi.ApiTests
❌ ShouldBeAbleToGetHardwareInfo
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
❌ ShouldBeAbleToVisitSpecifiedPath(path: "/api/")
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
❌ ShouldBeAbleToVisitSpecifiedPath(path: "/api/connection")
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
❌ ShouldBeAbleToVisitSpecifiedPath(path: "/api/metadata")
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
❌ ShouldBeAbleToVisitSpecifiedPath(path: "/api/servers")
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
❌ ShouldBeAbleToVisitSpecifiedPath(path: "/api/setting")
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
✅ Serein.Tests.Static.CrashTests
✅ ShouldCreateLogFile
✅ Serein.Tests.Static.MatchTests
✅ RegexObjShouldBeNullIfRegExpIsEmptyOrInvalid
✅ ShouldCalculateMatchExclusion
✅ ShouldChooseCorrectCommandOrigin(matchFieldType: Disabled, commandOrigin: Null)
✅ ShouldChooseCorrectCommandOrigin(matchFieldType: GroupMsg, commandOrigin: Msg)
✅ ShouldChooseCorrectCommandOrigin(matchFieldType: PrivateMsg, commandOrigin: Msg)
✅ ShouldChooseCorrectCommandOrigin(matchFieldType: SelfMsg, commandOrigin: Msg)
✅ ShouldChooseCorrectCommandOrigin(matchFieldType: ServerInput, commandOrigin: ServerInput)
✅ ShouldChooseCorrectCommandOrigin(matchFieldType: ServerOutput, commandOrigin: ServerOutput)
✅ ShouldModifyCommandObjWhenSettingCommand
✅ Serein.Tests.Static.ScheduleTests
✅ CronShouldBeNullIfExpressionIsEmptyOrInvalid
✅ ShouldCalculateCorrectNextTime
✅ ShouldModifyCommandObjWhenSettingCommand
✅ Serein.Tests.Static.SereinAppInfoTests
✅ AppTypeShouleBeUnknown
✅ VersionShouldBeEqualToThisTestAssembly
Annotations
Check failure on line 44 in src/Serein.Tests/Services/JsPlugin/LoadTests.cs
github-actions / Test Result
Serein.Tests.Services.JsPlugin.LoadTests ► ShouldLoadSingleJsPlugin
Failed test found in:
./src/Serein.Tests/TestResults.trx
Error:
Assert.Single() Failure: The collection was empty
Raw output
Assert.Single() Failure: The collection was empty
at Serein.Tests.Services.JsPlugin.LoadTests.ShouldLoadSingleJsPlugin() in D:\a\Serein\Serein\src\Serein.Tests\Services\JsPlugin\LoadTests.cs:line 44
--- End of stack trace from previous location ---
Check failure on line 81 in src/Serein.Tests/Services/WebApi/ApiTests.cs
github-actions / Test Result
Serein.Tests.Services.WebApi.ApiTests ► ShouldBeAbleToGetHardwareInfo
Failed test found in:
./src/Serein.Tests/TestResults.trx
Error:
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
Raw output
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Serein.Tests.Services.WebApi.ApiTests.ShouldBeAbleToGetHardwareInfo() in D:\a\Serein\Serein\src\Serein.Tests\Services\WebApi\ApiTests.cs:line 81
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
Check failure on line 56 in src/Serein.Tests/Services/WebApi/ApiTests.cs
github-actions / Test Result
Serein.Tests.Services.WebApi.ApiTests ► ShouldBeAbleToVisitSpecifiedPath(path: "/api/")
Failed test found in:
./src/Serein.Tests/TestResults.trx
Error:
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
Raw output
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Serein.Tests.Services.WebApi.ApiTests.ShouldBeAbleToVisitSpecifiedPath(String path) in D:\a\Serein\Serein\src\Serein.Tests\Services\WebApi\ApiTests.cs:line 56
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
Check failure on line 56 in src/Serein.Tests/Services/WebApi/ApiTests.cs
github-actions / Test Result
Serein.Tests.Services.WebApi.ApiTests ► ShouldBeAbleToVisitSpecifiedPath(path: "/api/connection")
Failed test found in:
./src/Serein.Tests/TestResults.trx
Error:
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
Raw output
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Serein.Tests.Services.WebApi.ApiTests.ShouldBeAbleToVisitSpecifiedPath(String path) in D:\a\Serein\Serein\src\Serein.Tests\Services\WebApi\ApiTests.cs:line 56
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
Check failure on line 56 in src/Serein.Tests/Services/WebApi/ApiTests.cs
github-actions / Test Result
Serein.Tests.Services.WebApi.ApiTests ► ShouldBeAbleToVisitSpecifiedPath(path: "/api/metadata")
Failed test found in:
./src/Serein.Tests/TestResults.trx
Error:
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
Raw output
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Serein.Tests.Services.WebApi.ApiTests.ShouldBeAbleToVisitSpecifiedPath(String path) in D:\a\Serein\Serein\src\Serein.Tests\Services\WebApi\ApiTests.cs:line 56
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
Check failure on line 56 in src/Serein.Tests/Services/WebApi/ApiTests.cs
github-actions / Test Result
Serein.Tests.Services.WebApi.ApiTests ► ShouldBeAbleToVisitSpecifiedPath(path: "/api/servers")
Failed test found in:
./src/Serein.Tests/TestResults.trx
Error:
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
Raw output
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Serein.Tests.Services.WebApi.ApiTests.ShouldBeAbleToVisitSpecifiedPath(String path) in D:\a\Serein\Serein\src\Serein.Tests\Services\WebApi\ApiTests.cs:line 56
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
Check failure on line 56 in src/Serein.Tests/Services/WebApi/ApiTests.cs
github-actions / Test Result
Serein.Tests.Services.WebApi.ApiTests ► ShouldBeAbleToVisitSpecifiedPath(path: "/api/setting")
Failed test found in:
./src/Serein.Tests/TestResults.trx
Error:
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
Raw output
System.Net.Http.HttpRequestException : No connection could be made because the target machine actively refused it. (127.0.0.1:50000)
---- System.Net.Sockets.SocketException : No connection could be made because the target machine actively refused it.
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Serein.Tests.Services.WebApi.ApiTests.ShouldBeAbleToVisitSpecifiedPath(String path) in D:\a\Serein\Serein\src\Serein.Tests\Services\WebApi\ApiTests.cs:line 56
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)