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 / 2020.3.38f1-playmode Test Results completed Aug 31, 2023 in 0s

❌️ 2020.3.38f1-playmode Test Results - 32/46, skipped: 10, failed: 4 - Failed in 19.550s

❌️ playmode-results.xml - 32/46, skipped: 10, failed: 4 - Failed in 19.550s

Details

❌️ playmode-results.xml - 32/46, skipped: 10, failed: 4 - Failed in 19.550s
  • ❌️ Tests.AppleSignInTests - 0/4, skipped: 2, failed: 2 - Failed in 1.462s

    • ⚠️ RefreshAppleSessionWhenSignedInSucceeds - Skipped

    • ❌️ RefreshAppleSessionWithInvalidTokenFails - Failed in 0.710s
      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 0.5240 secs.
      Response: {"message":"Could not start apple session","request_id":"b045ca78-d2f1-4d0a-a161-5bf81c0454c2","trace_id":"52e5db4bd67b76fc1502e8eb91d90f8e"}
      Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"b045ca78-d2f1-4d0a-a161-5bf81c0454c2","trace_id":"52e5db4bd67b76fc1502e8eb91d90f8e"}
      
      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 0.751s
      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 0.7282 secs.
      Response: {"message":"Could not start apple session","request_id":"43fd04db-2c08-4c73-b606-ee435ce9f99c","trace_id":"64115d46736a4c0b197f10e3c0b4b64d"}
      Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"43fd04db-2c08-4c73-b606-ee435ce9f99c","trace_id":"64115d46736a4c0b197f10e3c0b4b64d"}
      
      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 0.878s

    • GuestUserCanLogIn - Passed in 0.878s
  • ✅ Tests.JsonTests - 10/10 - Passed in 0.071s

    • JsonTestsSimplePasses - Passed in 0.016s
    • SDKCanDeserializeComplexArrayObjectsJson - Passed in 0.025s
    • SDKCanDeserializeJson - Passed in 0.001s
    • SDKCanDeserializeMultidimensionalArrayObjectsJson - Passed in 0.002s
    • SDKCanSerializeJson - Passed in 0.001s
    • SDKCanSerializeMultidimensionalArrayObjectsJson - Passed in 0.001s
    • TestCyclic - Passed in 0.004s
    • TestCyclicCustom - Passed in 0.002s
    • TestDictionary - Passed in 0.018s
    • TestList - Passed in 0.002s
  • ✅ Tests.PingTest - 1/1 - Passed in 1.110s

    • BackendCanBePinged - Passed in 1.110s
  • ✅ Tests.PlayerFilesTests - 1/1 - Passed in 3.626s

    • PlayerFileCanBeCreatedWithPathUpdatedAndThenDeleted - Passed in 3.626s
  • ✅ Tests.PlayerHandlingTests - 1/1 - Passed in 0.899s

    • PlayerCanBeCreatedAndDeleted - Passed in 0.899s
  • ✅ Tests.RateLimiterTests - 11/11 - Passed in 0.557s

    • AfterHavingBeenSetOffTheRateLimitingCancelsAfter3Minutes - Passed in 0.068s
    • ConstantRequestsBelowTripWireStillHitsMovingAverageRateLimit - Passed in 0.027s
    • ExcessiveQuickSuccessionRequestsHitsTripwireRateLimit - Passed in 0.031s
    • FrequentSmallBurstsDoesNotHitRateLimit - Passed in 0.022s
    • InfrequentLargeBurstsDoesNotHitRateLimit - Passed in 0.022s
    • LowLevelBackgroundRequestsWithIntermittentBurstsHitsRateLimit - Passed in 0.071s
    • NormalAmountOfAverageRequestsDoesNotHitRateLimit - Passed in 0.022s
    • SuddenHugeBurstAboveLimitTriggersRateLimit - Passed in 0.127s
    • SuddenHugeBurstBelowLimitDoesNotTriggerRateLimit - Passed in 0.023s
    • SuddenHugeBurstBelowLimitFollowedByAFewRequestsTriggersRateLimit - Passed in 0.123s
    • UndulatingLowLevelOfRequestsDoesNotHitRateLimit - Passed in 0.022s
  • ✅ Tests.RefreshTests - 2/2 - Passed in 4.732s

    • SDKAutomaticallyRefreshesExpiredSessionWhenEnabled - Passed in 2.994s
    • SDKDoesNotAutomaticallyRefreshesExpiredSessionWhenDisabled - Passed in 1.737s
  • ⚠️ Tests.SubmitScoresWithGuestLogin - 0/1, skipped: 1 - Passed in 0.000s

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

    • ⚠️ RequestEmailVerificationByEmailSucceeds - Skipped
    • ⚠️ RequestEmailVerificationSucceeds - Skipped
    • RequestPasswordResetSucceeds - Passed in 0.324s
    • WhiteLabelCheckSessionFailsWhenNoSessionExists - Passed in 0.023s
    • WhiteLabelCheckSessionSucceeds - Passed in 1.779s
    • WhiteLabelCheckSessionWithEmailAndTokenSucceeds - Passed in 1.725s
    • WhiteLabelCheckSessionWithWrongEmailFails - Passed in 1.668s
    • ❌️ WhiteLabelLoginAndSessionStartFromSavedStateSucceeds - Failed in 0.305s
    • ❌️ WhiteLabelLoginAndStartSessionSucceeds - Failed in 0.307s
    • ⚠️ 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 / 2020.3.38f1-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 0.5240 secs.
Response: {"message":"Could not start apple session","request_id":"b045ca78-d2f1-4d0a-a161-5bf81c0454c2","trace_id":"52e5db4bd67b76fc1502e8eb91d90f8e"}
Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"b045ca78-d2f1-4d0a-a161-5bf81c0454c2","trace_id":"52e5db4bd67b76fc1502e8eb91d90f8e"}

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 / 2020.3.38f1-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 0.7282 secs.
Response: {"message":"Could not start apple session","request_id":"43fd04db-2c08-4c73-b606-ee435ce9f99c","trace_id":"64115d46736a4c0b197f10e3c0b4b64d"}
Unauthorized -- Your session_token is invalid. {"message":"Could not start apple session","request_id":"43fd04db-2c08-4c73-b606-ee435ce9f99c","trace_id":"64115d46736a4c0b197f10e3c0b4b64d"}

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