fix(xbox): say to sign in again when Microsoft rejects the download's licenses

This commit is contained in:
maxjivi05 authored and MaxsTechReview committed 2026-10-24 09:07:13 -04:00
1 parent a66d7d74a4
commit 6855dd4467
36 files changed
+62 -2

No files matched your search

@@ -0,0 +1,19 @@
package com.droiddeck.launcher.stores.xbox
import org.junit.Assert.assertFalse
import org.junit.Assert.assertTrue
import org.junit.Test
class XodusDiagnosticsTest {
private val rejected = Regex(Xodus.SIGN_IN_REJECTED)
@Test fun aContentLicenseRejectionIsRecognised() {
assertTrue("Microsoft content licensing rejected sign-in (HTTP 401). Sign in again in Settings.".matches(rejected))
assertTrue("Microsoft content licensing rejected sign-in (HTTP 403). Sign in again in Settings.".matches(rejected))
}
@Test fun otherStderrTextIsNotTakenForARejection() {
assertFalse("Microsoft content licensing rejected sign-in (HTTP 401). Sign in again in Settings. token=abc".matches(rejected))
assertFalse("NEXUS_CONTENT_LICENSE_DIAGNOSTIC_V1 content-http 401".matches(rejected))
}
}