(t *testing.T)
| 762 | } |
| 763 | |
| 764 | func TestUnsupportedProperties(t *testing.T) { |
| 765 | dict, err := ParseYAML([]byte(` |
| 766 | version: "3" |
| 767 | services: |
| 768 | web: |
| 769 | image: web |
| 770 | build: |
| 771 | context: ./web |
| 772 | links: |
| 773 | - bar |
| 774 | pid: host |
| 775 | db: |
| 776 | image: db |
| 777 | build: |
| 778 | context: ./db |
| 779 | `)) |
| 780 | assert.NilError(t, err) |
| 781 | |
| 782 | configDetails := buildConfigDetails(dict, nil) |
| 783 | |
| 784 | _, err = Load(configDetails) |
| 785 | assert.NilError(t, err) |
| 786 | |
| 787 | unsupported := GetUnsupportedProperties(dict) |
| 788 | assert.Check(t, is.DeepEqual([]string{"build", "links", "pid"}, unsupported)) |
| 789 | } |
| 790 | |
| 791 | func TestDiscardEnvFileOption(t *testing.T) { |
| 792 | dict, err := ParseYAML([]byte(`version: "3" |
nothing calls this directly
no test coverage detected
searching dependent graphs…