Skip to content

Commit 24477d6

Browse files
committed
Fixing tests
Signed-off-by: Danny Kopping <danny@coder.com>
1 parent c0ae1ba commit 24477d6

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

coderd/database/dbauthz/dbauthz_test.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2463,6 +2463,13 @@ func (s *MethodTestSuite) TestSystemFunctions() {
24632463
JobID: j.ID,
24642464
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/ )
24652465
}))
2466+
s.Run("InsertProvisionerJobTimings", s.Subtest(func(db database.Store, check *expects) {
2467+
// TODO: we need to create a ProvisionerJob resource
2468+
j := dbgen.ProvisionerJob(s.T(), db, nil, database.ProvisionerJob{})
2469+
check.Args(database.InsertProvisionerJobTimingsParams{
2470+
JobID: j.ID,
2471+
}).Asserts( /*rbac.ResourceSystem, policy.ActionCreate*/ )
2472+
}))
24662473
s.Run("UpsertProvisionerDaemon", s.Subtest(func(db database.Store, check *expects) {
24672474
org := dbgen.Organization(s.T(), db, database.Organization{})
24682475
pd := rbac.ResourceProvisionerDaemon.InOrg(org.ID)

provisioner/terraform/timings_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import (
1818
// This log content is then used to usher the provisioning process along as if terraform has run, and consequently
1919
// the timing data is extracted from the log content and validated against the expected values.
2020
func TestTimingsFromProvision(t *testing.T) {
21+
t.Parallel()
22+
2123
cwd, err := os.Getwd()
2224
require.NoError(t, err)
2325

0 commit comments

Comments
 (0)