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 5c8906e commit 2119164
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,8 @@ public async Task Invalid_RefreshToken_throws_RefreshTokenException_Async()
catch (WebException ex)
{
// TODO: try to replicate CI behavior locally
Assert.That(ex.Status, Is.EqualTo(HttpStatusCode.Unauthorized));
Assert.That(ex.Status, Is.EqualTo(WebExceptionStatus.ProtocolError));
Assert.That((HttpWebResponse)ex.Response, Is.EqualTo(HttpStatusCode.Unauthorized));

Check failure on line 428 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: <System.Net.HttpWebResponse>
Raw output
  Expected: Unauthorized
  But was:  <System.Net.HttpWebResponse>

   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 428
   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 428 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: <System.Net.HttpWebResponse>
Raw output
  Expected: Unauthorized
  But was:  <System.Net.HttpWebResponse>

   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 428
   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 428 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: <System.Net.HttpWebResponse>
Raw output
  Expected: Unauthorized
  But was:  <System.Net.HttpWebResponse>

   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 428
   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 _)
}
}

Expand Down

0 comments on commit 2119164

Please sign in to comment.