nextcloud / nextcloud/Android-SingleSignOn
Single Sign On E2E test concept
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 74
- Forks
- 36
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 17
Description
This document is subject of change at all time based on feedback in the comments.
ℹ️ Terms
SSO lib: Nextcloud Single Sign On library3rd party app: Any third party Android app the uses the SSO libfiles app: The Nextcloud Android appserver: A running Nextcloud instance that is accessible via Browser, REST, etc. ...
🙋♂ Motivation
The files app 3.18-RC1 introduced an issue which caused all 3rd party apps stop working. The aftermaths were complaining users, increased support efforts and 1-star ratings. We should avoid this in the future.
🏁 Goal
- When changes in the files app or in the SSO lib lead to a breaking change, we must get notified
- Having an real end to end test, which covers the flow of a 3rd party app authenticating and using the latest SSO lib in combination with the latest beta files app
- Having an real end to end test, which covers the flow of a 3rd party app authenticating and using the latest stable SSO sample app in combination with the latest files app
➡️ Proposal
In order to achieve goal 2 and 3, i came to the conclusion that we eventually need two separate test flows. One should be located in the repository of the SSO lib and one in the repository of the files app.
Testing flows
We already know that those tests will have a quite long runtime due to the usage of an AVD emulator. Ideally they will run on each push event, but i am also fine with setting up a nightly running job. Maybe listening to push events makes sense for the SSO lib (where less commits are made, and we usually have more time), while setting up a nightly job for the files app.
Files app
- Setup a temporary server using the
Dockerimage - Run emulator
- Fetch (or clone) and install the latest stable SSO sample app, for example via
GitHub,jitpack.ioorF-Droid(given the sample app will be published there) - Build and install the current files app
- Run actual test
SSO lib
- Setup a temporary server using the
Dockerimage - Run emulator
- Fetch and install the latest beta files app
- Build and install the current files app
- Run actual test
I would love to get some feedback from @tobiasKaminsky @David-Development @desperateCoder - also feel free to ping everyone who might be interested, wants to join forces or can provide further information (for example regarding Docker.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository files or existing tests; start by reviewing the proposed Docker server setup, emulator workflow example, and the two SSO testing flows. Done means defining and implementing end-to-end coverage for both the stable files-app flow and the beta files-app flow, with an agreed push or nightly workflow.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, docker, github-actions, java
- Domain
- ci-cd, mobile-dev, testing
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100