(t *testing.T)
| 2023 | } |
| 2024 | |
| 2025 | func TestStarterTemplates(t *testing.T) { |
| 2026 | t.Parallel() |
| 2027 | t.Run("OK", func(t *testing.T) { |
| 2028 | t.Parallel() |
| 2029 | client := coderdtest.New(t, nil) |
| 2030 | _ = coderdtest.CreateFirstUser(t, client) |
| 2031 | |
| 2032 | ctx, cancel := context.WithTimeout(context.Background(), testutil.WaitLong) |
| 2033 | defer cancel() |
| 2034 | |
| 2035 | ex, err := client.StarterTemplates(ctx) |
| 2036 | require.NoError(t, err) |
| 2037 | ls, err := examples.List() |
| 2038 | require.NoError(t, err) |
| 2039 | require.EqualValues(t, ls, ex) |
| 2040 | }) |
| 2041 | } |
| 2042 | |
| 2043 | func TestTemplateVersionVariables(t *testing.T) { |
| 2044 | t.Parallel() |
nothing calls this directly
no test coverage detected