(t *testing.T)
| 1037 | } |
| 1038 | |
| 1039 | func TestLoadBindMountSourceMustNotBeEmpty(t *testing.T) { |
| 1040 | _, err := loadYAML(` |
| 1041 | version: "3.5" |
| 1042 | services: |
| 1043 | tmpfs: |
| 1044 | image: nginx:latest |
| 1045 | volumes: |
| 1046 | - type: bind |
| 1047 | target: /app |
| 1048 | `) |
| 1049 | assert.Check(t, is.Error(err, `invalid mount config for type "bind": field Source must not be empty`)) |
| 1050 | } |
| 1051 | |
| 1052 | func TestLoadBindMountSourceIsWindowsAbsolute(t *testing.T) { |
| 1053 | tests := []struct { |