MCPcopy
hub / github.com/basecamp/once / deployApp

Function deployApp

integration/docker_test.go:892–898  ·  view source on GitHub ↗
(t *testing.T, ctx context.Context, ns *docker.Namespace, settings docker.ApplicationSettings)

Source from the content-addressed store, hash-verified

890}
891
892func deployApp(t *testing.T, ctx context.Context, ns *docker.Namespace, settings docker.ApplicationSettings) *docker.Application {
893 t.Helper()
894 app := docker.NewApplication(ns, settings)
895 require.NoError(t, app.Deploy(ctx, nil))
896 require.NoError(t, ns.Refresh(ctx))
897 return ns.Application(settings.Name)
898}
899
900func getFreePort(t *testing.T) int {
901 t.Helper()

Callers 15

TestDockerDeploymentFunction · 0.85
TestRestoreStateFunction · 0.85
TestGaplessDeploymentFunction · 0.85
TestLargeLabelDataFunction · 0.85
TestStartStopFunction · 0.85
TestLongAppNameFunction · 0.85
TestContainerLogConfigFunction · 0.85
TestBackupFunction · 0.85
TestRestoreFunction · 0.85
TestBackupHookBehaviorFunction · 0.85

Calls 4

DeployMethod · 0.95
NewApplicationFunction · 0.92
RefreshMethod · 0.80
ApplicationMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…