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