diff options
Diffstat (limited to 'config/common_test.go')
-rw-r--r-- | config/common_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/config/common_test.go b/config/common_test.go index 20a07f5..537c025 100644 --- a/config/common_test.go +++ b/config/common_test.go @@ -10,6 +10,7 @@ import ( func TestCommonConfig(t *testing.T) { cfg, err := config.ReadConfig([]byte(`--- + version: v1 base: fooimage sharedvolume: true entrypoint: ["/bin/foo"] @@ -33,6 +34,7 @@ func TestCommonConfigValidation(t *testing.T) { t.Run("base", func(t *testing.T) { t.Run("ok", func(t *testing.T) { _, err := config.ReadConfig([]byte(`--- + version: v1 base: foo variants: {}`)) @@ -41,6 +43,7 @@ func TestCommonConfigValidation(t *testing.T) { t.Run("optional", func(t *testing.T) { _, err := config.ReadConfig([]byte(`--- + version: v1 base: variants: {}`)) @@ -49,6 +52,7 @@ func TestCommonConfigValidation(t *testing.T) { t.Run("bad", func(t *testing.T) { _, err := config.ReadConfig([]byte(`--- + version: v1 base: foo fighter variants: {}`)) |