@@ -20,7 +20,7 @@ func TestWebhooks(t *testing.T) {
20
20
Namespace : "test-ns" ,
21
21
},
22
22
Spec : executorsv1.WebhookSpec {
23
- Events : []string {"test-event1" },
23
+ Events : []executorsv1. EventType {"test-event1" },
24
24
},
25
25
Status : executorsv1.WebhookStatus {},
26
26
},
@@ -30,7 +30,7 @@ func TestWebhooks(t *testing.T) {
30
30
Namespace : "test-ns" ,
31
31
},
32
32
Spec : executorsv1.WebhookSpec {
33
- Events : []string {"test-event2" },
33
+ Events : []executorsv1. EventType {"test-event2" },
34
34
},
35
35
Status : executorsv1.WebhookStatus {},
36
36
},
@@ -40,7 +40,7 @@ func TestWebhooks(t *testing.T) {
40
40
Namespace : "test-ns" ,
41
41
},
42
42
Spec : executorsv1.WebhookSpec {
43
- Events : []string {"test-event1" },
43
+ Events : []executorsv1. EventType {"test-event1" },
44
44
},
45
45
Status : executorsv1.WebhookStatus {},
46
46
},
@@ -84,7 +84,7 @@ func TestWebhooks(t *testing.T) {
84
84
Namespace : "wrong-ns" ,
85
85
},
86
86
Spec : executorsv1.WebhookSpec {
87
- Events : []string {"test-event" },
87
+ Events : []executorsv1. EventType {"test-event" },
88
88
},
89
89
Status : executorsv1.WebhookStatus {},
90
90
}
0 commit comments