Skip to content

feat(coderd): add simple healthcheck formatting option #9864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 25, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! simple -> text
  • Loading branch information
coadler committed Sep 25, 2023
commit 0699d0f36c0529dd1cb89ea4afe80de5f171ef0a
4 changes: 2 additions & 2 deletions coderd/debug_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func TestDebugHealth(t *testing.T) {
require.Equal(t, 1, calls)
})

t.Run("Simple", func(t *testing.T) {
t.Run("Text", func(t *testing.T) {
t.Parallel()

var (
Expand All @@ -129,7 +129,7 @@ func TestDebugHealth(t *testing.T) {
defer cancel()

sessionToken = client.SessionToken()
res, err := client.Request(ctx, "GET", "/api/v2/debug/health?format=simple", nil)
res, err := client.Request(ctx, "GET", "/api/v2/debug/health?format=text", nil)
require.NoError(t, err)
defer res.Body.Close()
resB, _ := io.ReadAll(res.Body)
Expand Down