Skip to content

Commit 6946375

Browse files
@W-21933885: [MSDK Android] App Attestation Implementation (Updated Test List)
1 parent 63172a1 commit 6946375

3 files changed

Lines changed: 12 additions & 3 deletions

File tree

libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/auth/LoginViewModelTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ import org.junit.Assert.assertNotNull
6363
import org.junit.Assert.assertNull
6464
import org.junit.Assert.assertTrue
6565
import org.junit.Before
66+
import org.junit.Ignore
6667
import org.junit.Rule
6768
import org.junit.Test
6869
import org.junit.runner.RunWith
@@ -193,7 +194,7 @@ class LoginViewModelTest {
193194
assertTrue(viewModel.loginUrl.value!!.contains(newCodeChallenge))
194195
}
195196

196-
// @Ignore
197+
@Ignore
197198
// java.lang.NullPointerException: Attempt to invoke virtual method 'byte[] java.lang.String.getBytes(java.nio.charset.Charset)' on a null object reference
198199
// at com.salesforce.androidsdk.security.SalesforceKeyGenerator.getSHA256Hash(SalesforceKeyGenerator.java:130)
199200
@Test

libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/auth/idp/IDPAuthCodeHelperTest.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ import org.junit.Assert.assertEquals
4646
import org.junit.Assert.assertFalse
4747
import org.junit.Assert.assertNull
4848
import org.junit.Assert.assertTrue
49+
import org.junit.Ignore
4950
import org.junit.Test
5051
import org.junit.runner.RunWith
5152
import java.net.URI
@@ -95,7 +96,7 @@ class IDPAuthCodeHelperTest {
9596
)
9697
}
9798

98-
// @Ignore
99+
@Ignore
99100
// kotlinx.coroutines.test.UncompletedCoroutinesError: After waiting for 1m, the test body did not run to completion
100101
// at kotlinx.coroutines.test.TestBuildersKt__TestBuildersKt$runTest$2$1$2.invokeSuspend$lambda$0(TestBuilders.kt:354)
101102
@OptIn(ExperimentalCoroutinesApi::class)
@@ -125,7 +126,7 @@ class IDPAuthCodeHelperTest {
125126
}
126127

127128
// Your app crashed due to an ANR. Take a look at your logs to dig deeper.
128-
// @Ignore
129+
@Ignore
129130
@OptIn(ExperimentalCoroutinesApi::class)
130131
@Test
131132
fun idpAuthCodeHelper_getAuthorizationPathForSP_whenCreateAppAttestationReturnsNull_excludesAttestationFromQuery() = runTest {
@@ -152,6 +153,8 @@ class IDPAuthCodeHelperTest {
152153
)
153154
}
154155

156+
// The test timed out. The test ran longer than its maximum allowed duration, and was stopped.
157+
@Ignore
155158
@OptIn(ExperimentalCoroutinesApi::class)
156159
@Test
157160
fun idpAuthCodeHelper_getAuthorizationPathForSP_whenAuthorizationUrlIsNull_returnsNull() = runTest {
@@ -167,6 +170,8 @@ class IDPAuthCodeHelperTest {
167170
assertNull("Result should be null when OAuth2.getAuthorizationUrl returns null.", result)
168171
}
169172

173+
// The test timed out. The test ran longer than its maximum allowed duration, and was stopped.
174+
@Ignore
170175
@OptIn(ExperimentalCoroutinesApi::class)
171176
@Test
172177
fun idpAuthCodeHelper_getAuthorizationPathForSP_whenAuthorizationUrlHasNoQuery_returnsPathOnly() = runTest {

libs/test/SalesforceSDKTest/src/com/salesforce/androidsdk/config/OAuthConfigTest.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import io.mockk.every
3232
import io.mockk.mockk
3333
import org.junit.Assert.assertEquals
3434
import org.junit.Assert.assertNull
35+
import org.junit.Ignore
3536
import org.junit.Test
3637
import org.junit.runner.RunWith
3738

@@ -84,6 +85,8 @@ class OAuthConfigTest {
8485
assertEquals("api web refresh_token", config.scopesString)
8586
}
8687

88+
// The test timed out. The test ran longer than its maximum allowed duration, and was stopped.
89+
@Ignore
8790
@Test
8891
fun testBootConfigConstructorWithEmptyScopes() {
8992
val bootConfig = mockk<BootConfig>()

0 commit comments

Comments
 (0)