Skip to content

feat(coderd): add parameter insights to template insights #8656

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
Prev Previous commit
Next Next commit
add todo
  • Loading branch information
mafredri committed Jul 21, 2023
commit 05d7a2c8fa1d14fa75f46d8d431edaf83ea3a185
2 changes: 2 additions & 0 deletions coderd/insights_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ func TestTemplateInsights(t *testing.T) {
assert.WithinDuration(t, req.StartTime, resp.IntervalReports[0].StartTime, 0)
assert.WithinDuration(t, req.EndTime, resp.IntervalReports[0].EndTime, 0)
assert.Equal(t, resp.IntervalReports[0].ActiveUsers, int64(1), "want one active user in the interval report")

// TODO(mafredri): Verify template parameter insights (first we need to generate them).
}

func TestTemplateInsights_BadRequest(t *testing.T) {
Expand Down