-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
120 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,12 @@ name: iOS settings migration tests | |
concurrency: | ||
group: ios-end-to-end-tests | ||
cancel-in-progress: false | ||
|
||
permissions: | ||
contents: read | ||
issues: write | ||
pull-requests: write | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
|
@@ -14,113 +18,112 @@ on: | |
# Github Actions enabled, so these don't go unnoticed. | ||
# https://docs.github.com/en/actions/monitoring-and-troubleshooting-workflows/notifications-for-workflow-runs | ||
- cron: '0 0 * * *' | ||
|
||
env: | ||
TEST_DEVICE_UDID: 00008130-0019181022F3803A | ||
OLD_APP_COMMIT_HASH: 895b7d98825e678f5d7023d5ea3c9b7beee89280 | ||
|
||
jobs: | ||
test: | ||
name: Settings migration end to end tests | ||
runs-on: [self-hosted, macOS, ios-test] | ||
env: | ||
OLD_APP_COMMIT_HASH: 895b7d98825e678f5d7023d5ea3c9b7beee89280 | ||
configure_rust: | ||
name: Configure Rust | ||
runs-on: | ||
- self-hosted | ||
- macOS | ||
- ios-test | ||
continue-on-error: true | ||
steps: | ||
- name: Configure Rust | ||
- name: Configure Rust Toolchain | ||
uses: actions-rs/[email protected] | ||
with: | ||
toolchain: stable | ||
override: true | ||
target: aarch64-apple-ios | ||
|
||
- name: Uninstall app | ||
uninstall_app: | ||
name: Uninstall Old App | ||
runs-on: | ||
- self-hosted | ||
- macOS | ||
- ios-test | ||
needs: | ||
- configure_rust | ||
continue-on-error: true | ||
steps: | ||
- name: Uninstall Old App from Device | ||
timeout-minutes: 5 | ||
run: ios-deploy --id ${{ env.TEST_DEVICE_UDID }} --uninstall_only --bundle_id net.mullvad.MullvadVPN | ||
|
||
- name: Checkout old repository version | ||
checkout_old_version: | ||
name: Checkout Old Repository Version | ||
runs-on: | ||
- self-hosted | ||
- macOS | ||
- ios-test | ||
needs: | ||
- uninstall_app | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout Old Version | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.OLD_APP_COMMIT_HASH }} | ||
- name: Verify Old Commit Hash | ||
run: git rev-parse HEAD | ||
|
||
- name: Change DNS settings on old app version | ||
uses: ./.github/actions/ios-end-to-end-tests | ||
with: | ||
ios_device_pin_code: ${{ secrets.IOS_DEVICE_PIN_CODE }} | ||
test_device_identifier_uuid: ${{ secrets.IOS_TEST_DEVICE_IDENTIFIER_UUID }} | ||
has_time_account_number: ${{ secrets.IOS_HAS_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
no_time_account_number: ${{ secrets.IOS_NO_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
test_device_udid: ${{ env.TEST_DEVICE_UDID }} | ||
xcode_test_plan: 'MullvadVPNUITestsChangeDNSSettings' | ||
partner_api_token: ${{ secrets.STAGEMOLE_PARTNER_AUTH }} | ||
|
||
- name: Store test report for changing DNS settings | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-report-change-dns-settings | ||
path: ios/test-report/junit.xml | ||
|
||
- name: Checkout repository to get the current app version | ||
uses: actions/checkout@v4 | ||
|
||
- name: Verify DNS settings still changed on current app version | ||
uses: ./.github/actions/ios-end-to-end-tests | ||
if: always() | ||
with: | ||
ios_device_pin_code: ${{ secrets.IOS_DEVICE_PIN_CODE }} | ||
test_device_identifier_uuid: ${{ secrets.IOS_TEST_DEVICE_IDENTIFIER_UUID }} | ||
has_time_account_number: ${{ secrets.IOS_HAS_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
no_time_account_number: ${{ secrets.IOS_NO_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
test_device_udid: ${{ env.TEST_DEVICE_UDID }} | ||
partner_api_token: ${{ secrets.STAGEMOLE_PARTNER_AUTH }} | ||
xcode_test_plan: 'MullvadVPNUITestsVerifyDNSSettingsChanged' | ||
|
||
- name: Store test report for verifying DNS settings | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-report-verify-dns-settings | ||
path: ios/test-report/junit.xml | ||
|
||
- name: Checkout old repository version | ||
checkout_current_version: | ||
name: Checkout Current Repository Version | ||
runs-on: | ||
- self-hosted | ||
- macOS | ||
- ios-test | ||
needs: | ||
- configure_rust | ||
continue-on-error: true | ||
steps: | ||
- name: Checkout Current Version | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ env.OLD_APP_COMMIT_HASH }} | ||
- name: Verify Current Commit Hash | ||
run: git rev-parse HEAD | ||
|
||
- name: Change all other settings on old app version | ||
uses: ./.github/actions/ios-end-to-end-tests | ||
if: always() | ||
with: | ||
ios_device_pin_code: ${{ secrets.IOS_DEVICE_PIN_CODE }} | ||
test_device_identifier_uuid: ${{ secrets.IOS_TEST_DEVICE_IDENTIFIER_UUID }} | ||
has_time_account_number: ${{ secrets.IOS_HAS_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
no_time_account_number: ${{ secrets.IOS_NO_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
test_device_udid: ${{ env.TEST_DEVICE_UDID }} | ||
partner_api_token: ${{ secrets.STAGEMOLE_PARTNER_AUTH }} | ||
xcode_test_plan: 'MullvadVPNUITestsChangeSettings' | ||
|
||
- name: Store test report for changing all settings | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-report-change-all-other-settings | ||
path: ios/test-report/junit.xml | ||
change_dns_settings: | ||
name: Change DNS Settings on Old App Version | ||
needs: | ||
- checkout_old_version | ||
continue-on-error: true | ||
uses: mullvad/mullvadvpn-app/.github/workflows/ios-end-to-end-tests.yml@main | ||
with: | ||
arg_tests_json_key: "MullvadVPNUITestsChangeDNSSettings" | ||
secrets: inherit | ||
|
||
- name: Checkout repository to get the current app version | ||
uses: actions/checkout@v4 | ||
verify_dns_settings: | ||
name: Verify DNS Settings on Current App Version | ||
needs: | ||
- change_dns_settings | ||
- checkout_current_version | ||
continue-on-error: true | ||
uses: mullvad/mullvadvpn-app/.github/workflows/ios-end-to-end-tests.yml@main | ||
with: | ||
arg_tests_json_key: "MullvadVPNUITestsVerifyDNSSettingsChanged" | ||
secrets: inherit | ||
|
||
- name: Verify all other settings still changed on current app version | ||
uses: ./.github/actions/ios-end-to-end-tests | ||
if: always() | ||
with: | ||
ios_device_pin_code: ${{ secrets.IOS_DEVICE_PIN_CODE }} | ||
test_device_identifier_uuid: ${{ secrets.IOS_TEST_DEVICE_IDENTIFIER_UUID }} | ||
has_time_account_number: ${{ secrets.IOS_HAS_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
no_time_account_number: ${{ secrets.IOS_NO_TIME_ACCOUNT_NUMBER_PRODUCTION }} | ||
test_device_udid: ${{ env.TEST_DEVICE_UDID }} | ||
partner_api_token: ${{ secrets.STAGEMOLE_PARTNER_AUTH }} | ||
xcode_test_plan: 'MullvadVPNUITestsVerifySettingsChanged' | ||
change_other_settings: | ||
name: Change All Other Settings on Old App Version | ||
needs: | ||
- verify_dns_settings | ||
- checkout_old_version | ||
continue-on-error: true | ||
uses: mullvad/mullvadvpn-app/.github/workflows/ios-end-to-end-tests.yml@main | ||
with: | ||
arg_tests_json_key: "MullvadVPNUITestsChangeSettings" | ||
secrets: inherit | ||
|
||
- name: Store test report for verifying all other settings | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: test-report-verify-all-other-settings | ||
path: ios/test-report/junit.xml | ||
verify_other_settings: | ||
name: Verify All Other Settings on Current App Version | ||
needs: | ||
- change_other_settings | ||
- checkout_current_version | ||
continue-on-error: true | ||
uses: mullvad/mullvadvpn-app/.github/workflows/ios-end-to-end-tests.yml@main | ||
with: | ||
arg_tests_json_key: "MullvadVPNUITestsVerifySettingsChanged" | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,30 @@ | ||
{ | ||
"tests": { | ||
"nightly": [ | ||
"AccountTests", | ||
"ConnectivityTests", | ||
"CustomListsTests", | ||
"RelayTests", | ||
"SettingsTests" | ||
], | ||
"pr-merge-to-main": [ | ||
"AccountTests/testLogin", | ||
"AccountTests/testCreateAccount" | ||
], | ||
"api-tests": [ | ||
"AccountTests" | ||
] | ||
} | ||
"tests":{ | ||
"nightly":[ | ||
"AccountTests", | ||
"ConnectivityTests", | ||
"CustomListsTests", | ||
"RelayTests", | ||
"SettingsTests" | ||
], | ||
"pr-merge-to-main":[ | ||
"AccountTests/testLogin", | ||
"AccountTests/testCreateAccount" | ||
], | ||
"api-tests":[ | ||
"AccountTests" | ||
], | ||
"MullvadVPNUITestsChangeDNSSettings":[ | ||
"SettingsMigrationTests/testChangeCustomDNSSettings" | ||
], | ||
"MullvadVPNUITestsVerifyDNSSettingsChanged":[ | ||
"SettingsMigrationTests/testVerifyCustomDNSSettingsStillChanged" | ||
], | ||
"MullvadVPNUITestsChangeSettings":[ | ||
"SettingsMigrationTests/testChangeVPNSettings" | ||
], | ||
"MullvadVPNUITestsVerifySettingsChanged":[ | ||
"SettingsMigrationTests/testVerifySettingsStillChanged" | ||
] | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 0 additions & 28 deletions
28
ios/TestPlans/MullvadVPNUITestsChangeDNSSettings.xctestplan
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.