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

Extend docker GitHub action to test the health end point

Đang mở
#43 2 bình luận 0 reaction 2 người được giao Được @demilolu nhận Xem trên GitHub
stale
Ngôn ngữ chính
Python
Star
8
Fork
8
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.