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

Function UpdateTemplateMeta

coderd/coderdtest/coderdtest.go:1167–1172  ·  view source on GitHub ↗

UpdateTemplateMeta updates the template meta for the given template.

(t testing.TB, client *codersdk.Client, templateID uuid.UUID, meta codersdk.UpdateTemplateMeta)

Source from the content-addressed store, hash-verified

1165
1166// UpdateTemplateMeta updates the template meta for the given template.
1167func UpdateTemplateMeta(t testing.TB, client *codersdk.Client, templateID uuid.UUID, meta codersdk.UpdateTemplateMeta) codersdk.Template {
1168 t.Helper()
1169 updated, err := client.UpdateTemplateMeta(context.Background(), templateID, meta)
1170 require.NoError(t, err)
1171 return updated
1172}
1173
1174// AwaitTemplateVersionJobRunning waits for the build to be picked up by a provisioner.
1175func AwaitTemplateVersionJobRunning(t testing.TB, client *codersdk.Client, version uuid.UUID) codersdk.TemplateVersion {

Callers 4

TestWorkspaceAutobuildFunction · 0.92
TestWorkspaceBuildFunction · 0.92
TestStartFunction · 0.92

Calls 2

UpdateTemplateMetaMethod · 0.80
HelperMethod · 0.65

Tested by 4

TestWorkspaceAutobuildFunction · 0.74
TestWorkspaceBuildFunction · 0.74
TestStartFunction · 0.74