(t *testing.T)
| 491 | } |
| 492 | |
| 493 | func TestConvertFileObjectDefaults(t *testing.T) { |
| 494 | namespace := NewNamespace("testing") |
| 495 | config := composetypes.FileReferenceConfig{Source: "source"} |
| 496 | swarmRef, err := convertFileObject(namespace, config, lookupConfig) |
| 497 | assert.NilError(t, err) |
| 498 | |
| 499 | expected := swarmReferenceObject{ |
| 500 | Name: "testing_source", |
| 501 | File: swarmReferenceTarget{ |
| 502 | Name: config.Source, |
| 503 | UID: "0", |
| 504 | GID: "0", |
| 505 | Mode: os.FileMode(0o444), |
| 506 | }, |
| 507 | } |
| 508 | assert.Check(t, is.DeepEqual(expected, swarmRef)) |
| 509 | } |
| 510 | |
| 511 | func TestServiceConvertsIsolation(t *testing.T) { |
| 512 | src := composetypes.ServiceConfig{ |
nothing calls this directly
no test coverage detected
searching dependent graphs…