Skip to content

Commit

Permalink
unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
coilysiren committed Nov 22, 2023
1 parent d512f22 commit 56e72e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion infrastructure/kubeconfig.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ items:
app: application
spec:
containers:
- image: us-central1-docker.pkg.dev/dotted-hope-405813/repository/gke-test-3:certs-66b6b77-kai
- image: us-central1-docker.pkg.dev/dotted-hope-405813/repository/gke-test-3:certs-d512f22-kai
name: application
ports:
- containerPort: 8080
Expand Down
6 changes: 6 additions & 0 deletions src/test/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ def test_true():
assert True


def test_healthcheck_root():
response = client.get("/")
assert response.status_code == 200
assert response.json == {"status": "ok"}


def test_healthcheck():
response = client.get("/api/healthcheck")
assert response.status_code == 200
Expand Down

0 comments on commit 56e72e3

Please sign in to comment.