summaryrefslogtreecommitdiffhomepage
path: root/android/app/src
diff options
context:
space:
mode:
authorAlbin <albin@mullvad.net>2022-03-11 11:00:12 +0100
committerAlbin <albin@mullvad.net>2022-04-20 17:52:30 +0200
commit19cacfbd013fed75af0408492999fc031d2330d4 (patch)
tree55977cd9738df49b5386f74fc6be82f391de9b6b /android/app/src
parent339038cca27828cc060d23f846e3ab6026889af2 (diff)
downloadmullvadvpn-19cacfbd013fed75af0408492999fc031d2330d4.tar.xz
mullvadvpn-19cacfbd013fed75af0408492999fc031d2330d4.zip
Add mechanism to reset an account before e2e tests
Adds a mechanism to remove all keys/devices of a specified account in order to start all tests with a known state. This is achieved using a simple http client included in the e2e test apk, which support login, listing devices and removing devices. Two account used for testing _must_ be specified either as gradle properties or as runtime arguments to the test runner: * Local properties (local.properties): valid_test_account_token=XXXX invalid_test_account_token=XXXX * Gradle/CLI arguments: ./gradlew :e2e:assembleDebug -Pvalid_test_account_token=XXXX -Pinvalid_test_account_token=XXXX * Runtime arguments: am instrument -e valid_test_account_token XXXX -e invalid_test_account_token XXXX # ...
Diffstat (limited to 'android/app/src')
0 files changed, 0 insertions, 0 deletions