Update authentication test to include isMicrosoftOwned case in getUser #2425
Build #20240725.1 had test failures
Details
- Failed: 9 (0.10%)
- Passed: 8,815 (97.17%)
- Other: 248 (2.73%)
- Total: 9,072
Annotations
Check failure on line 3576 in Build log
azure-pipelines / OfficeDev.microsoft-teams-library-js
Build log #L3576
Bash exited with code '1'.
Check failure on line 16 in Build log
azure-pipelines / OfficeDev.microsoft-teams-library-js
Build log #L16
Bash exited with code '1'.
Check failure on line 3661 in Build log
azure-pipelines / OfficeDev.microsoft-teams-library-js
Build log #L3661
Bash exited with code '1'.
Check failure on line 1 in launchLocalTeamsTestApp_whenClickedOnPaste_shouldPasteData
azure-pipelines / OfficeDev.microsoft-teams-library-js
launchLocalTeamsTestApp_whenClickedOnPaste_shouldPasteData
Test failed
Raw output
androidx.test.espresso.base.DefaultFailureHandler$AssertionFailedWithCauseError: 'a string containing "Hello VSR Team"' doesn't match: Error: true
Expected: a string containing "Hello VSR Team"
Got: "Error: true"
at dalvik.system.VMStack.getThreadStackTrace(Native Method)
at java.lang.Thread.getStackTrace(Thread.java:1841)
at androidx.test.espresso.base.DefaultFailureHandler.getUserFriendlyError(DefaultFailureHandler.java:16)
at androidx.test.espresso.base.DefaultFailureHandler.handle(DefaultFailureHandler.java:36)
at androidx.test.espresso.ViewInteraction.waitForAndHandleInteractionResults(ViewInteraction.java:103)
at androidx.test.espresso.ViewInteraction.check(ViewInteraction.java:31)
at androidx.test.espresso.web.sugar.Web$WebInteraction.check(Web.java:13)
at com.microsoft.metaos.orange.ClipboardCapabilitiesTest.launchLocalTeamsTestApp_whenClickedOnPaste_shouldPasteData(ClipboardCapabilitiesTest.kt:107)
... 35 trimmed
Caused by: junit.framework.AssertionFailedError: 'a string containing "Hello VSR Team"' doesn't match: Error: true
Expected: a string containing "Hello VSR Team"
Got: "Error: true"
at androidx.test.espresso.matcher.ViewMatchers.assertThat(ViewMatchers.java:17)
at androidx.test.espresso.web.assertion.WebViewAssertions$ResultCheckingWebAssertion.checkResult(WebViewAssertions.java:11)
at androidx.test.espresso.web.assertion.WebAssertion$CheckResultWebAssertion.check(WebAssertion.java:9)
at androidx.test.espresso.ViewInteraction$SingleExecutionViewAssertion.check(ViewInteraction.java:10)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:11)
at androidx.test.espresso.ViewInteraction$2.call(ViewInteraction.java:2)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
azure-pipelines / OfficeDev.microsoft-teams-library-js
Capabilities - Authentication - Current Web Host SDK Version: 4.0.1 - current Teams-JS Library Version: 999.0.0 - TestCases - Target Web Host SDK v->3.1.0 - getUser API Call - Success (Microsoft owned app) - iOS Excluded - >2.25.0
Timed out retrying after 30000ms: expected '<span#text_getUser>' to have text '{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}', but the text was 'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
Raw output
AssertionError: Timed out retrying after 30000ms: expected '<span#text_getUser>' to have text '{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}', but the text was 'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
at Context.eval (webpack://metaos-hub/./cypress/support/testAppInteractions.ts:85:12)
+ expected - actual
-'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
+'{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}'
azure-pipelines / OfficeDev.microsoft-teams-library-js
[Caching Enabled] Capabilities - Authentication - Current Web Host SDK Version: 4.0.1 - current Teams-JS Library Version: 999.0.0 - TestCases - Target Web Host SDK v->3.1.0 - getUser API Call - Success (Microsoft owned app) - iOS Excluded - >2.25.0
Timed out retrying after 30000ms: expected '<span#text_getUser>' to have text '{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}', but the text was 'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
Raw output
AssertionError: Timed out retrying after 30000ms: expected '<span#text_getUser>' to have text '{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}', but the text was 'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
at Context.eval (webpack://metaos-hub/./cypress/support/testAppInteractions.ts:85:12)
+ expected - actual
-'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
+'{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}'
azure-pipelines / OfficeDev.microsoft-teams-library-js
Capabilities - Authentication - Current Web Host SDK Version: 4.0.1 - current Teams-JS Library Version: 999.0.0 - TestCases - BackCompat - Target Web Host SDK v->3.1.0 - getUser API Call - Success (Microsoft owned app) - iOS Excluded - >2.25.0
Timed out retrying after 30000ms: expected '<span#text_getUser>' to have text '{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}', but the text was 'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
Raw output
AssertionError: Timed out retrying after 30000ms: expected '<span#text_getUser>' to have text '{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}', but the text was 'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
at Context.eval (webpack://metaos-hub/./cypress/support/testAppInteractions.ts:85:12)
+ expected - actual
-'Error: Error: Error returned, code = 500, message = App does not have the required permissions for this operation'
+'{"oid":"mockoid","tid":"mocktid","upn":"mockupn","loginHint":"mockLoginHint","displayName":"mockName","dataResidency":"public"}'