File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
internal/pkg/controllers/profile Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,7 @@ func TestReconcile(t *testing.T) {
108108 "GotProfile" : {
109109 rec : & Reconciler {
110110 client : & test.MockClient {
111- MockGet : test .NewMockGetFn (nil , func (obj runtime.Object ) error {
112- obj = & corev1.ConfigMap {
113- ObjectMeta : metav1.ObjectMeta {
114- Name : name ,
115- Namespace : namespace ,
116- },
117- }
118- return nil
119- }),
111+ MockGet : test .NewMockGetFn (nil ),
120112 },
121113 log : log .Log ,
122114 record : event .NewNopRecorder (),
Original file line number Diff line number Diff line change 6464 eventsOutput := e .kubectl ("get" , "events" )
6565 for _ , s := range []string {
6666 "Warning" ,
67- "cannot validate profile " + profileName ,
67+ "InvalidSeccompProfile" ,
6868 "configmap/" + configMapName ,
6969 "decoding seccomp profile: json: cannot unmarshal bool into " +
7070 "Go struct field Seccomp.defaultAction of type seccomp.Action" ,
You can’t perform that action at this time.
0 commit comments