(t *testing.T)
| 33 | ) |
| 34 | |
| 35 | func TestTemplate(t *testing.T) { |
| 36 | t.Parallel() |
| 37 | |
| 38 | t.Run("Get", func(t *testing.T) { |
| 39 | t.Parallel() |
| 40 | client := coderdtest.New(t, nil) |
| 41 | user := coderdtest.CreateFirstUser(t, client) |
| 42 | version := coderdtest.CreateTemplateVersion(t, client, user.OrganizationID, nil) |
| 43 | template := coderdtest.CreateTemplate(t, client, user.OrganizationID, version.ID) |
| 44 | |
| 45 | ctx := testutil.Context(t, testutil.WaitLong) |
| 46 | |
| 47 | _, err := client.Template(ctx, template.ID) |
| 48 | require.NoError(t, err) |
| 49 | }) |
| 50 | } |
| 51 | |
| 52 | func TestPostTemplateByOrganization(t *testing.T) { |
| 53 | t.Parallel() |
nothing calls this directly
no test coverage detected