Skip to content

Commit

Permalink
Update JwtAuthProviderNoCookiesTests.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Feb 22, 2024
1 parent f1105ba commit 5c8906e
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -421,6 +421,11 @@ public async Task Invalid_RefreshToken_throws_RefreshTokenException_Async()
Assert.That(ex.StatusCode, Is.EqualTo(400));
Assert.That(ex.ErrorCode, Is.EqualTo(nameof(ArgumentException)));
}
catch (WebException ex)
{
// TODO: try to replicate CI behavior locally
Assert.That(ex.Status, Is.EqualTo(HttpStatusCode.Unauthorized));

Check failure on line 427 in ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UseCases/JwtAuthProviderNoCookiesTests.cs

View workflow job for this annotation

GitHub Actions / WebHost.Endpoints Tests

ServiceStack.WebHost.Endpoints.Tests.UseCases.JwtAuthProviderHS256NoCookiesTests ► Invalid_RefreshToken_throws_RefreshTokenException_Async

Failed test found in: ./ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/TestResults/results.trx Error: Expected: Unauthorized But was: ProtocolError
Raw output
  Expected: Unauthorized
  But was:  ProtocolError

   at ServiceStack.WebHost.Endpoints.Tests.UseCases.JwtAuthProviderNoCookiesTests.Invalid_RefreshToken_throws_RefreshTokenException_Async() in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UseCases/JwtAuthProviderNoCookiesTests.cs:line 427
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

Check failure on line 427 in ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UseCases/JwtAuthProviderNoCookiesTests.cs

View workflow job for this annotation

GitHub Actions / WebHost.Endpoints Tests

ServiceStack.WebHost.Endpoints.Tests.UseCases.JwtAuthProviderRsaEncryptedNoCookiesTests ► Invalid_RefreshToken_throws_RefreshTokenException_Async

Failed test found in: ./ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/TestResults/results.trx Error: Expected: Unauthorized But was: ProtocolError
Raw output
  Expected: Unauthorized
  But was:  ProtocolError

   at ServiceStack.WebHost.Endpoints.Tests.UseCases.JwtAuthProviderNoCookiesTests.Invalid_RefreshToken_throws_RefreshTokenException_Async() in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UseCases/JwtAuthProviderNoCookiesTests.cs:line 427
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)

Check failure on line 427 in ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UseCases/JwtAuthProviderNoCookiesTests.cs

View workflow job for this annotation

GitHub Actions / WebHost.Endpoints Tests

ServiceStack.WebHost.Endpoints.Tests.UseCases.JwtAuthProviderRsaNoCookiesTests ► Invalid_RefreshToken_throws_RefreshTokenException_Async

Failed test found in: ./ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/TestResults/results.trx Error: Expected: Unauthorized But was: ProtocolError
Raw output
  Expected: Unauthorized
  But was:  ProtocolError

   at ServiceStack.WebHost.Endpoints.Tests.UseCases.JwtAuthProviderNoCookiesTests.Invalid_RefreshToken_throws_RefreshTokenException_Async() in /home/runner/work/ServiceStack/ServiceStack/ServiceStack/tests/ServiceStack.WebHost.Endpoints.Tests/UseCases/JwtAuthProviderNoCookiesTests.cs:line 427
   at NUnit.Framework.Internal.TaskAwaitAdapter.GenericAdapter`1.BlockUntilCompleted()
   at NUnit.Framework.Internal.MessagePumpStrategy.NoMessagePumpStrategy.WaitForCompletion(AwaitAdapter awaiter)
   at NUnit.Framework.Internal.AsyncToSyncAdapter.Await(Func`1 invoke)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.RunTestMethod(TestExecutionContext context)
   at NUnit.Framework.Internal.Commands.TestMethodCommand.Execute(TestExecutionContext context)
   at NUnit.Framework.Internal.Execution.SimpleWorkItem.<>c__DisplayClass4_0.<PerformWork>b__0()
   at NUnit.Framework.Internal.ContextUtils.<>c__DisplayClass1_0`1.<DoIsolated>b__0(Object _)
}
}

[Test]
Expand Down

0 comments on commit 5c8906e

Please sign in to comment.