From 25052c591a02190153b49c499fe2deeed57076dc Mon Sep 17 00:00:00 2001 From: jianglingxia Date: Sat, 24 Mar 2018 12:54:42 +0800 Subject: [PATCH] Add a sceneo UT test to TestMustRunAsOptions --- pkg/security/podsecuritypolicy/selinux/mustrunas_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/security/podsecuritypolicy/selinux/mustrunas_test.go b/pkg/security/podsecuritypolicy/selinux/mustrunas_test.go index 4c57df73797..09d602de420 100644 --- a/pkg/security/podsecuritypolicy/selinux/mustrunas_test.go +++ b/pkg/security/podsecuritypolicy/selinux/mustrunas_test.go @@ -29,6 +29,10 @@ func TestMustRunAsOptions(t *testing.T) { opts *extensions.SELinuxStrategyOptions pass bool }{ + "nil opts": { + opts: nil, + pass: false, + }, "invalid opts": { opts: &extensions.SELinuxStrategyOptions{}, pass: false,