diff --git a/validate/validate_test.go b/validate/validate_test.go index 9c3e3ea29..4de21622b 100644 --- a/validate/validate_test.go +++ b/validate/validate_test.go @@ -61,6 +61,40 @@ func TestJSONSchema(t *testing.T) { }, error: "process.args: Invalid type. Expected: array, given: null", }, + { + config: &rspec.Spec{ + Version: "1.0.0", + Linux: &rspec.Linux{}, + }, + error: "", + }, + { + config: &rspec.Spec{ + Version: "1.0.0", + Linux: &rspec.Linux{ + RootfsPropagation: "", + }, + }, + error: "", + }, + { + config: &rspec.Spec{ + Version: "1.0.0", + Linux: &rspec.Linux{ + RootfsPropagation: "shared", + }, + }, + error: "", + }, + { + config: &rspec.Spec{ + Version: "1.0.0", + Linux: &rspec.Linux{ + RootfsPropagation: "rshared", + }, + }, + error: "linux.rootfsPropagation: linux.rootfsPropagation must be one of the following: \"private\", \"shared\", \"slave\", \"unbindable\"", + }, { config: &rspec.Spec{ Version: "1.0.0-rc5",