File tree Expand file tree Collapse file tree 2 files changed +31
-3
lines changed
native/SampleApps/AuthFlowTester/AuthFlowTesterUITests Expand file tree Collapse file tree 2 files changed +31
-3
lines changed Original file line number Diff line number Diff line change @@ -82,8 +82,34 @@ class MigrationTests: BaseAuthFlowTesterTest {
8282 )
8383 }
8484
85- // MARK: - Cross-App Migrations with rollbacks
85+ // MARK: - Migration to or from beacon
86+
87+ // Migrate from CA to Beacon
88+ func testMigrateCAToBeacon( ) throws {
89+ launchAndLogin (
90+ user: . second,
91+ staticAppConfigName: . caAdvancedOpaque
92+ )
93+ migrateAndValidate (
94+ staticAppConfigName: . caAdvancedOpaque,
95+ migrationAppConfigName: . beaconAdvancedOpaque
96+ )
97+ }
8698
99+ // Migrate from Beacon to CA
100+ func testMigrateBeaconToCA( ) throws {
101+ launchAndLogin (
102+ user: . second,
103+ staticAppConfigName: . beaconAdvancedOpaque
104+ )
105+ migrateAndValidate (
106+ staticAppConfigName: . beaconAdvancedOpaque,
107+ migrationAppConfigName: . caAdvancedOpaque
108+ )
109+ }
110+
111+ // MARK: - Cross-App Migrations with rollbacks
112+
87113 /// Migrate from CA to ECA and back to CA
88114 func testMigrateCAToECA( ) throws {
89115 launchAndLogin (
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ Tests for Beacon app configurations using web server flow with hybrid auth.
7171
7272## Migration Tests
7373
74- ### MigrationTests (6 tests)
74+ ### MigrationTests (8 tests)
7575
7676Tests for migrating refresh tokens between different app configurations without re-authentication.
7777
@@ -80,8 +80,10 @@ Tests for migrating refresh tokens between different app configurations without
8080| ` testMigrateCA_AddMoreScopes ` | CA Advanced JWT (subset) | CA Advanced JWT (all) | Yes (add more scopes) |
8181| ` testMigrateECA_AddMoreScopes ` | ECA Advanced JWT (subset) | ECA Advanced JWT (all) | Yes (add more scopes) |
8282| ` testMigrateBeacon_AddMoreScopes ` | Beacon Advanced JWT (subset) | Beacon Advanced JWT (all) | Yes (add more scopes) |
83+ | ` testMigrateCAToBeacon ` | CA Advanced Opaque | Beacon Advanced Opaque | No |
84+ | ` testMigrateBeaconToCA ` | Beacon Advanced Opaque | CA Advanced Opaque | No |
8385| ` testMigrateCAToECA ` | CA Advanced Opaque → ECA Advanced Opaque → CA Advanced Opaque | Migration with rollback | No |
84- | ` testMigrateCAToBeaconAndBack ` | CA Advanced Opaque → Beacon Advanced Opaque → CA Advanced Opaque | Migration with rollback | No |
86+ | ` testMigrateCAToBeaconAndBack ` | CA Advanced Opaque → Beacon Advanced Opaque | Migration to Beacon | No |
8587| ` testMigrateBeaconOpaqueToJWTAndBack ` | Beacon Advanced Opaque → Beacon Advanced JWT → Beacon Advanced Opaque | Migration with rollback | No |
8688
8789---
You can’t perform that action at this time.
0 commit comments