(t *testing.T)
| 263 | } |
| 264 | |
| 265 | func 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 |
nothing calls this directly
no test coverage detected