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

Function NewProvisionerDaemon

coderd/coderdtest/coderdtest.go:757–759  ·  view source on GitHub ↗

NewProvisionerDaemon launches a provisionerd instance configured to work well with coderd testing. It registers the "echo" provisioner for quick testing.

(t testing.TB, coderAPI *coderd.API)

Source from the content-addressed store, hash-verified

755// well with coderd testing. It registers the "echo" provisioner for
756// quick testing.
757func NewProvisionerDaemon(t testing.TB, coderAPI *coderd.API) io.Closer {
758 return NewTaggedProvisionerDaemon(t, coderAPI, defaultTestDaemonName, nil)
759}
760
761func NewTaggedProvisionerDaemon(t testing.TB, coderAPI *coderd.API, name string, provisionerTags map[string]string, opts ...coderd.MemoryProvisionerDaemonOption) io.Closer {
762 t.Helper()

Callers 6

TestDERPForceWebSocketsFunction · 0.92
TestWorkspaceBuildStatusFunction · 0.92
TestWorkspaceAgentFunction · 0.92
TestDERPHeadersFunction · 0.92
TestWorkspaceQuotaFunction · 0.92
NewWithAPIFunction · 0.92

Calls 1

Tested by 5

TestDERPForceWebSocketsFunction · 0.74
TestWorkspaceBuildStatusFunction · 0.74
TestWorkspaceAgentFunction · 0.74
TestDERPHeadersFunction · 0.74
TestWorkspaceQuotaFunction · 0.74