(t *testing.T)
| 91 | } |
| 92 | |
| 93 | func 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 | |
| 112 | func TestReconcileNetworks_Diverged(t *testing.T) { |
| 113 | project := &types.Project{ |
nothing calls this directly
no test coverage detected