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

Function TestReconcileNetworks_ExternalSkipped

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

Source from the content-addressed store, hash-verified

91}
92
93func TestReconcileNetworks_ExternalSkipped(t *testing.T) {
94 project := &types.Project{
95 Name: "myproject",
96 Networks: types.Networks{
97 "ext": {Name: "external_net", External: true},
98 },
99 }
100 observed := &ObservedState{
101 ProjectName: "myproject",
102 Containers: map[string][]ObservedContainer{},
103 Networks: map[string]ObservedNetwork{},
104 Volumes: map[string]ObservedVolume{},
105 }
106
107 plan, err := reconcile(t.Context(), project, observed, defaultReconcileOptions(), noPrompt)
108 assert.NilError(t, err)
109 assert.Assert(t, plan.IsEmpty())
110}
111
112func TestReconcileNetworks_Diverged(t *testing.T) {
113 project := &types.Project{

Callers

nothing calls this directly

Calls 3

reconcileFunction · 0.85
defaultReconcileOptionsFunction · 0.85
IsEmptyMethod · 0.45

Tested by

no test coverage detected