Skip to content

Commit

Permalink
Revert "Skipping failing E2E tests for macOS due to Keychain access r…
Browse files Browse the repository at this point in the history
…equired by the Kevault component"

This reverts commit d239b4c.
  • Loading branch information
spetrescu84 committed Dec 20, 2024
1 parent d239b4c commit 4f65bff
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@ import MSAL
final class MSALNativeAuthSignInWithMFAEndToEndTests: MSALNativeAuthEndToEndPasswordTestCase {

func test_signInUsingPasswordWithMFASubmitWrongChallengeResendChallengeThen_completeSuccessfully() async throws {
#if os(macOS)
throw XCTSkip("Keychain access is not active on the macOS app and is used by Keyvault")
#endif
guard let username = retrieveUsernameForSignInUsernamePasswordAndMFA(),
let password = await retrievePasswordForSignInUsername(),
let awaitingMFAState = await signInUsernameAndPassword(username: username, password: password)
Expand Down Expand Up @@ -88,9 +85,6 @@ final class MSALNativeAuthSignInWithMFAEndToEndTests: MSALNativeAuthEndToEndPass
}

func test_signInUsingPasswordWithMFAGetAuthMethods_thenCompleteSuccessfully() async throws {
#if os(macOS)
throw XCTSkip("Keychain access is not active on the macOS app and is used by Keyvault")
#endif
guard let username = retrieveUsernameForSignInUsernamePasswordAndMFA(),
let password = await retrievePasswordForSignInUsername(),
let awaitingMFAState = await signInUsernameAndPassword(username: username, password: password)
Expand Down Expand Up @@ -146,9 +140,6 @@ final class MSALNativeAuthSignInWithMFAEndToEndTests: MSALNativeAuthEndToEndPass
}

func test_signInUsingPasswordWithMFANoDefaultAuthMethod_completeSuccessfully() async throws {
#if os(macOS)
throw XCTSkip("Keychain access is not active on the macOS app and is used by Keyvault")
#endif
guard let username = retrieveUsernameForSignInUsernamePasswordAndMFANoDefaultAuthMethod(),
let password = await retrievePasswordForSignInUsername(),
let awaitingMFAState = await signInUsernameAndPassword(username: username, password: password)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ final class MSALNativeAuthSignInUsernameAndPasswordEndToEndTests: MSALNativeAuth

// Hero Scenario 1.2.1. Sign in - Use email and password to get token
func test_signInUsingPasswordWithKnownUsernameResultsInSuccess() async throws {
#if os(macOS)
throw XCTSkip("Keychain access is not active on the macOS app and is used by Keyvault")
#endif
guard let sut = initialisePublicClientApplication(), let username = retrieveUsernameForSignInUsernameAndPassword(), let password = await retrievePasswordForSignInUsername() else {
XCTFail("Missing information")
return
Expand Down

0 comments on commit 4f65bff

Please sign in to comment.