Call-for-Code-for-Racial-Justice / Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI

Extend docker GitHub action to test the health end point

Abierto
#43 2 comentarios 0 reacciones 2 asignados Reclamado por @demilolu Ver en GitHub
stale
Lenguaje dominante
Python
Estrellas
8
Forks
8
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

**Is your feature request related to a problem? Please describe.**
Add health endpoint test to this [GitHub action](https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI/blob/main/.github/workflows/pythonapp.yml).

**Describe the solution you'd like**
Example from Legit Info:
```
STATUS_CODE=$(docker exec legitinfo-test curl -s -o /dev/null -w "%{http_code}" localhost:8080/health/)
docker stop legitinfo-test
echo $STATUS_CODE | grep -q 200
```

Actions:
- [ ] https://github.com/Call-for-Code-for-Racial-Justice/TakeTwo-WebAPI/blob/main/taketwo-webapi/main.py
- [ ] return `{"status": "UP"}` with HTTP status code 200 #42
- [ ] add curl check to GitHub action

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.