Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for new informative error messages #157

Merged
merged 2 commits into from
Aug 31, 2023

Fixes after review of improved errors

a295c6b
Select commit
Loading
Failed to load commit list.
Sign in for the full log view
Merged

Add support for new informative error messages #157

Fixes after review of improved errors
a295c6b
Select commit
Loading
Failed to load commit list.
GitHub Actions / 2021.3.8f1-playmode Test Results completed Aug 31, 2023 in 0s

❌️ 2021.3.8f1-playmode Test Results - 28/46, skipped: 10, failed: 8 - Failed in 27.274s

❌️ playmode-results.xml - 28/46, skipped: 10, failed: 8 - Failed in 27.274s

Details

❌️ playmode-results.xml - 28/46, skipped: 10, failed: 8 - Failed in 27.274s
  • ❌️ Tests.AppleSignInTests - 0/4, skipped: 2, failed: 2 - Failed in 2.501s

    • ⚠️ RefreshAppleSessionWhenSignedInSucceeds - Skipped

    • ❌️ RefreshAppleSessionWithInvalidTokenFails - Failed in 1.284s
      Response code wrong, expected 400 but was 401
      Expected: 400
      But was: 401

        SDK is Initializing
      SDK is Initializing
      SDK is Initialized
      Caller Type: User
      ServerRequest POST URL: https://mmz8d6ze.api.lootlocker.io/game/session/apple
      REQUEST BODY = {"game_key":"\"dev*******************************5f\"","refresh_token":"invalid-token","game_version":"0.0.0.1"}
      Server Response: 401 session/apple completed in 1.0607 secs.
      Response: {"message":"Could not start apple session","request_id":"0ae32ea5-695f-47bf-a596-f44b98f3260b","trace_id":"655c6faa46f99766a9dacbf3c9bbd87a"}
      Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"0ae32ea5-695f-47bf-a596-f44b98f3260b","trace_id":"655c6faa46f99766a9dacbf3c9bbd87a"}
      
      at Tests.AppleSignInTests+<RefreshAppleSessionWithInvalidTokenFails>d__4.MoveNext () [0x00095] in tests~/Assets/Tests/PlayModeTests/AppleSignInTests.cs:54
      at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in tests~/Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46
      
    • ⚠️ StartAppleSessionSucceedsAndProvidesRefreshToken - Skipped

    • ❌️ StartAppleSessionWithInvalidAuthorizationCodeFails - Failed in 1.216s
      Failed Sign In
      Expected: 400
      But was: 401

        Caller Type: User
      ServerRequest POST URL: https://mmz8d6ze.api.lootlocker.io/game/session/apple
      REQUEST BODY = {"game_key":"\"dev*******************************5f\"","apple_authorization_code":"invalid_auth_code","game_version":"0.0.0.1"}
      Server Response: 401 session/apple completed in 1.2052 secs.
      Response: {"message":"Could not start apple session","request_id":"5e303ecf-29a0-4001-bdea-4f42ac98f901","trace_id":"d5ee1189f0e338f6481807d757b776f6"}
      Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"5e303ecf-29a0-4001-bdea-4f42ac98f901","trace_id":"d5ee1189f0e338f6481807d757b776f6"}
      
      at Tests.AppleSignInTests+<StartAppleSessionWithInvalidAuthorizationCodeFails>d__7.MoveNext () [0x00095] in tests~/Assets/Tests/PlayModeTests/AppleSignInTests.cs:140
      at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in tests~/Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46
      
  • ⚠️ Tests.GoogleSignInTests - 0/4, skipped: 4 - Passed in 0.000s

    • ⚠️ RefreshGoogleSessionWhenSignedInSucceeds - Skipped
    • ⚠️ RefreshGoogleSessionWithInvalidTokenFails - Skipped
    • ⚠️ StartGoogleSessionSucceedsAndProvidesRefreshToken - Skipped
    • ⚠️ StartGoogleSessionWithInvalidAuthorizationCodeFails - Skipped
  • ✅ Tests.GuestLoginTest - 1/1 - Passed in 1.528s

    • GuestUserCanLogIn - Passed in 1.528s
  • ✅ Tests.JsonTests - 10/10 - Passed in 0.063s

    • JsonTestsSimplePasses - Passed in 0.016s
    • SDKCanDeserializeComplexArrayObjectsJson - Passed in 0.018s
    • SDKCanDeserializeJson - Passed in 0.001s
    • SDKCanDeserializeMultidimensionalArrayObjectsJson - Passed in 0.001s
    • SDKCanSerializeJson - Passed in 0.001s
    • SDKCanSerializeMultidimensionalArrayObjectsJson - Passed in 0.001s
    • TestCyclic - Passed in 0.005s
    • TestCyclicCustom - Passed in 0.003s
    • TestDictionary - Passed in 0.015s
    • TestList - Passed in 0.001s
  • ✅ Tests.PingTest - 1/1 - Passed in 2.267s

    • BackendCanBePinged - Passed in 2.267s
  • ✅ Tests.PlayerFilesTests - 1/1 - Passed in 7.462s

    • PlayerFileCanBeCreatedWithPathUpdatedAndThenDeleted - Passed in 7.462s
  • ✅ Tests.PlayerHandlingTests - 1/1 - Passed in 1.943s

    • PlayerCanBeCreatedAndDeleted - Passed in 1.943s
  • ✅ Tests.RateLimiterTests - 11/11 - Passed in 0.403s

    • AfterHavingBeenSetOffTheRateLimitingCancelsAfter3Minutes - Passed in 0.040s
    • ConstantRequestsBelowTripWireStillHitsMovingAverageRateLimit - Passed in 0.010s
    • ExcessiveQuickSuccessionRequestsHitsTripwireRateLimit - Passed in 0.013s
    • FrequentSmallBurstsDoesNotHitRateLimit - Passed in 0.002s
    • InfrequentLargeBurstsDoesNotHitRateLimit - Passed in 0.002s
    • LowLevelBackgroundRequestsWithIntermittentBurstsHitsRateLimit - Passed in 0.050s
    • NormalAmountOfAverageRequestsDoesNotHitRateLimit - Passed in 0.002s
    • SuddenHugeBurstAboveLimitTriggersRateLimit - Passed in 0.154s
    • SuddenHugeBurstBelowLimitDoesNotTriggerRateLimit - Passed in 0.002s
    • SuddenHugeBurstBelowLimitFollowedByAFewRequestsTriggersRateLimit - Passed in 0.126s
    • UndulatingLowLevelOfRequestsDoesNotHitRateLimit - Passed in 0.002s
  • ❌️ Tests.RefreshTests - 1/2, failed: 1 - Failed in 6.317s

    • SDKAutomaticallyRefreshesExpiredSessionWhenEnabled - Passed in 5.646s
    • ❌️ SDKDoesNotAutomaticallyRefreshesExpiredSessionWhenDisabled - Failed in 0.671s
  • ⚠️ Tests.SubmitScoresWithGuestLogin - 0/1, skipped: 1 - Passed in 0.000s

    • ⚠️ TestResponsesAreAsExpectedForAllLeaderboardsAndPlayers - Skipped
  • ❌️ Tests.WhiteLabelLoginTests - 2/10, skipped: 3, failed: 5 - Failed in 4.728s

    • ⚠️ RequestEmailVerificationByEmailSucceeds - Skipped

    • ⚠️ RequestEmailVerificationSucceeds - Skipped

    • RequestPasswordResetSucceeds - Passed in 0.787s

    • WhiteLabelCheckSessionFailsWhenNoSessionExists - Passed in 0.003s

    • ❌️ WhiteLabelCheckSessionSucceeds - Failed in 0.749s

    • ❌️ WhiteLabelCheckSessionWithEmailAndTokenSucceeds - Failed in 0.771s

    • ❌️ WhiteLabelCheckSessionWithWrongEmailFails - Failed in 0.796s
      Prerequisite start session failed, status code not 200
      Expected: 200
      But was: 429

        ServerRequest POST URL: https://mmz8d6ze.api.lootlocker.io/white-label-login/login
      REQUEST BODY = {"email":"\"er**********************io\"","password":"**********","remember":false}
      Server Response: 429 white-label-login/login completed in 0.7916 secs.
      Response: {"error":"too many requests","success":false}
      Too Many Requests -- You're being limited for sending too many requests too quickly. {"error":"too many requests","success":false}
      
      at Tests.WhiteLabelLoginTests+<WhiteLabelCheckSessionWithWrongEmailFails>d__12.MoveNext () [0x000b8] in tests~/Assets/Tests/PlayModeTests/WhiteLabelTests.cs:340
      at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in tests~/Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46
      
    • ❌️ WhiteLabelLoginAndSessionStartFromSavedStateSucceeds - Failed in 0.796s

    • ❌️ WhiteLabelLoginAndStartSessionSucceeds - Failed in 0.827s

    • ⚠️ WhiteLabelSignUpSucceeds - Skipped

Annotations

Check failure on line 54 in tests~/Assets/Tests/PlayModeTests/AppleSignInTests.cs

See this annotation in the file changed.

@github-actions github-actions / 2021.3.8f1-playmode Test Results

Tests.AppleSignInTests.RefreshAppleSessionWithInvalidTokenFails

  Response code wrong, expected 400 but was 401
  Expected: 400
  But was:  401
Raw output
SDK is Initializing
SDK is Initializing
SDK is Initialized
Caller Type: User
ServerRequest POST URL: https://mmz8d6ze.api.lootlocker.io/game/session/apple
REQUEST BODY = {"game_key":"\"dev*******************************5f\"","refresh_token":"invalid-token","game_version":"0.0.0.1"}
Server Response: 401 session/apple completed in 1.0607 secs.
Response: {"message":"Could not start apple session","request_id":"0ae32ea5-695f-47bf-a596-f44b98f3260b","trace_id":"655c6faa46f99766a9dacbf3c9bbd87a"}
Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"0ae32ea5-695f-47bf-a596-f44b98f3260b","trace_id":"655c6faa46f99766a9dacbf3c9bbd87a"}

at Tests.AppleSignInTests+<RefreshAppleSessionWithInvalidTokenFails>d__4.MoveNext () [0x00095] in /github/workspace/tests~/Assets/Tests/PlayModeTests/AppleSignInTests.cs:54
at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in /github/workspace/tests~/Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46

Check failure on line 140 in tests~/Assets/Tests/PlayModeTests/AppleSignInTests.cs

See this annotation in the file changed.

@github-actions github-actions / 2021.3.8f1-playmode Test Results

Tests.AppleSignInTests.StartAppleSessionWithInvalidAuthorizationCodeFails

  Failed Sign In
  Expected: 400
  But was:  401
Raw output
Caller Type: User
ServerRequest POST URL: https://mmz8d6ze.api.lootlocker.io/game/session/apple
REQUEST BODY = {"game_key":"\"dev*******************************5f\"","apple_authorization_code":"invalid_auth_code","game_version":"0.0.0.1"}
Server Response: 401 session/apple completed in 1.2052 secs.
Response: {"message":"Could not start apple session","request_id":"5e303ecf-29a0-4001-bdea-4f42ac98f901","trace_id":"d5ee1189f0e338f6481807d757b776f6"}
Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"5e303ecf-29a0-4001-bdea-4f42ac98f901","trace_id":"d5ee1189f0e338f6481807d757b776f6"}

at Tests.AppleSignInTests+<StartAppleSessionWithInvalidAuthorizationCodeFails>d__7.MoveNext () [0x00095] in /github/workspace/tests~/Assets/Tests/PlayModeTests/AppleSignInTests.cs:140
at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in /github/workspace/tests~/Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46

Check failure on line 340 in tests~/Assets/Tests/PlayModeTests/WhiteLabelTests.cs

See this annotation in the file changed.

@github-actions github-actions / 2021.3.8f1-playmode Test Results

Tests.WhiteLabelLoginTests.WhiteLabelCheckSessionWithWrongEmailFails

  Prerequisite start session failed, status code not 200
  Expected: 200
  But was:  429
Raw output
ServerRequest POST URL: https://mmz8d6ze.api.lootlocker.io/white-label-login/login
REQUEST BODY = {"email":"\"er**********************io\"","password":"**********","remember":false}
Server Response: 429 white-label-login/login completed in 0.7916 secs.
Response: {"error":"too many requests","success":false}
Too Many Requests -- You're being limited for sending too many requests too quickly. {"error":"too many requests","success":false}

at Tests.WhiteLabelLoginTests+<WhiteLabelCheckSessionWithWrongEmailFails>d__12.MoveNext () [0x000b8] in /github/workspace/tests~/Assets/Tests/PlayModeTests/WhiteLabelTests.cs:340
at UnityEngine.TestTools.TestEnumerator+<Execute>d__7.MoveNext () [0x0004e] in /github/workspace/tests~/Library/PackageCache/[email protected]/UnityEngine.TestRunner/NUnitExtensions/Attributes/TestEnumerator.cs:46