mlops-labs-team1 / engineering.labs

The project completed for MLops Engineering Lab #1 by Team #1. See our wiki for more info
https://github.com/mlops-labs-team1/engineering.labs/wiki
16 stars 6 forks source link

Add a basic smoke test #40

Open savagej opened 3 years ago

savagej commented 3 years ago

To mock the acceptance tests we'd do on creation of a Cloud Run service, would be good to ping the endpoint for health and maybe even make sure "Business is good this year" returns Business

savagej commented 3 years ago

curl https://bertmodel-57-52ehdii2ta-uc.a.run.app/ping should return { "status": "Healthy" }

curl https://bertmodel-57-52ehdii2ta-uc.a.run.app/predictions/news_classification -A "Business is good this year" should return "Business"