Single Sign On E2E test concept

Abierto
#395 5 comentarios 3 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
android, docker, github-actions, java

Línea de trabajo

El issue no nombra archivos del repositorio ni pruebas existentes; empieza revisando la configuración propuesta del servidor Docker, el ejemplo del flujo de trabajo del emulador y los dos flujos de pruebas de SSO. Se considera completado cuando se haya definido e implementado la cobertura de extremo a extremo tanto para el flujo de files-app estable como para el flujo de files-app beta, con un flujo de trabajo push o nightly acordado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement

This document is subject of change at all time based on feedback in the comments.

ℹ️ Terms

🙋‍♂ 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

  1. When changes in the files app or in the SSO lib lead to a breaking change, we must get notified
  2. 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
  3. 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
  1. Setup a temporary server using the Docker image
  2. Run emulator
  3. Fetch (or clone) and install the latest stable SSO sample app, for example via GitHub, jitpack.io or F-Droid (given the sample app will be published there)
  4. Build and install the current files app
  5. Run actual test
SSO lib
  1. Setup a temporary server using the Docker image
  2. Run emulator
  3. Fetch and install the latest beta files app
  4. Build and install the current files app
  5. 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.

Lenguaje dominante
Java
Estrellas
74
Forks
36
Merge medio
1 d 6 h
PR fusionados (30 d)
15

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de nextcloud/Android-SingleSignOn

Todos los issues de nextcloud/Android-SingleSignOn

Issues similares

Más issues de Java

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.