(t *testing.T)
| 299 | } |
| 300 | |
| 301 | func TestLoadV38(t *testing.T) { |
| 302 | actual, err := loadYAML(` |
| 303 | version: "3.8" |
| 304 | services: |
| 305 | foo: |
| 306 | image: busybox |
| 307 | credential_spec: |
| 308 | config: "0bt9dmxjvjiqermk6xrop3ekq" |
| 309 | `) |
| 310 | assert.NilError(t, err) |
| 311 | assert.Assert(t, is.Len(actual.Services, 1)) |
| 312 | assert.Check(t, is.Equal(actual.Services[0].CredentialSpec.Config, "0bt9dmxjvjiqermk6xrop3ekq")) |
| 313 | } |
| 314 | |
| 315 | func TestParseAndLoad(t *testing.T) { |
| 316 | actual, err := loadYAML(sampleYAML) |