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

Extend docker GitHub action to test the health end point

Aberta
#43 2 comentários 0 reações 2 responsáveis Reivindicada por @demilolu Ver no GitHub
stale
Linguagem predominante
Python
Estrelas
8
Forks
8
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

**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

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.