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

Extend docker GitHub action to test the health end point

オープン
#43 コメント 2 件 リアクション 0 件 担当者 2 名 @demilolu が担当を希望しています GitHub で見る
stale
主要言語
Python
スター
8
フォーク
8
PR マージ指標
30日以内にマージされた PR はありません

説明

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

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。