MCPcopy
hub / github.com/docker/compose / TestReconcileVolumes_ExternalSkipped

Function TestReconcileVolumes_ExternalSkipped

pkg/compose/reconcile_test.go:265–280  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

263}
264
265func TestReconcileVolumes_ExternalSkipped(t *testing.T) {
266 project := &types.Project{
267 Name: "myproject",
268 Volumes: types.Volumes{"ext": {Name: "external_vol", External: true}},
269 }
270 observed := &ObservedState{
271 ProjectName: "myproject",
272 Containers: map[string][]ObservedContainer{},
273 Networks: map[string]ObservedNetwork{},
274 Volumes: map[string]ObservedVolume{},
275 }
276
277 plan, err := reconcile(t.Context(), project, observed, defaultReconcileOptions(), noPrompt)
278 assert.NilError(t, err)
279 assert.Assert(t, plan.IsEmpty())
280}
281
282// TestReconcileVolumes_DivergedIsIgnored verifies that a diverged volume
283// produces no plan operations: recreation of diverged volumes is owned by

Callers

nothing calls this directly

Calls 3

reconcileFunction · 0.85
defaultReconcileOptionsFunction · 0.85
IsEmptyMethod · 0.45

Tested by

no test coverage detected