MCPcopy Create free account
hub / github.com/encodeous/nylon / CopyFile

Method CopyFile

e2e/harness.go:427–438  ·  view source on GitHub ↗
(nodeName string, hostPath string, containerPath string)

Source from the content-addressed store, hash-verified

425}
426
427func (h *Harness) CopyFile(nodeName string, hostPath string, containerPath string) {
428 h.mu.Lock()
429 c, ok := h.Nodes[nodeName]
430 h.mu.Unlock()
431 if !ok {
432 h.t.Fatalf("node %s not found", nodeName)
433 }
434 err := c.CopyFileToContainer(h.ctx, hostPath, containerPath, 0644)
435 if err != nil {
436 h.t.Fatalf("failed to copy file to container %s: %v", nodeName, err)
437 }
438}
439
440func (h *Harness) StartDNS(name string, ip string, corefile string, zones map[string]string) testcontainers.Container {
441 h.t.Logf("Starting DNS server %s at %s", name, ip)

Callers 1

TestDynamicResolutionFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestDynamicResolutionFunction · 0.76