Skip to content

Commit 09170ab

Browse files
author
Kubernetes Submit Queue
authored
Merge pull request kubernetes#61624 from jianglingxia/selinux2018032412
Automatic merge from submit-queue (batch tested with PRs 61644, 61624, 61743, 61019, 61287). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Add a sceneo UT test to TestMustRunAsOptions **What this PR does / why we need it**: Add a sceneo UT test to TestMustRunAsOptions when the opts is nil **Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*: Fixes # **Special notes for your reviewer**: **Release note**: ```release-note NONE ```
2 parents 20f76de + 25052c5 commit 09170ab

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/security/podsecuritypolicy/selinux/mustrunas_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ func TestMustRunAsOptions(t *testing.T) {
2929
opts *extensions.SELinuxStrategyOptions
3030
pass bool
3131
}{
32+
"nil opts": {
33+
opts: nil,
34+
pass: false,
35+
},
3236
"invalid opts": {
3337
opts: &extensions.SELinuxStrategyOptions{},
3438
pass: false,

0 commit comments

Comments
 (0)