owncloud / twofactor_totp

🔑 Second factor TOTP (Google Authenticator) provider for ownCloud
GNU Affero General Public License v3.0
9 stars 9 forks source link

Add acceptance tests for guests with 2FA #248

Closed phil-davis closed 1 year ago

phil-davis commented 2 years ago

See discussion in #247

Add a test suite that runs in CI with the guests app, and tests what happens when guests try to use 2FA. Try with the guests app whitelisted, and it should all work. (I think that it will be whitelisted already now, by default, so the test suite will not have to touch those settings) ~Make a scenario(s) to demonstrate what happens when the guests app is not whitelisted - and then we can all discuss what the proper behavior should be, and developers can make it so.~

We want scenarios that confirm basic behavior for guests with 2FA:

Hint: the password_policy app already has a webUIGuests test suite. .drone.star there will be a good clue about how to start up the guests app in CI and run tests.