MCPcopy Index your code
hub / github.com/coder/coder / TestStarterTemplates

Function TestStarterTemplates

coderd/templateversions_test.go:2025–2041  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2023}
2024
2025func 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
2043func TestTemplateVersionVariables(t *testing.T) {
2044 t.Parallel()

Callers

nothing calls this directly

Calls 5

NewFunction · 0.92
CreateFirstUserFunction · 0.92
ListFunction · 0.92
StarterTemplatesMethod · 0.80
RunMethod · 0.65

Tested by

no test coverage detected