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 個 reaction 已指派 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 摘要。