-
Notifications
You must be signed in to change notification settings - Fork 70
SANDBOX-560 update controller-runtime to v0.15 #1057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
09cb2e4
0076914
c131f66
324a1cf
26e1c33
107ca15
3646ad4
6f91a19
8ad1348
876fdf9
c4acfd0
19fce7c
cedfcf4
f8f8e5c
301f417
332dcdc
9552b40
524b8a9
f9bcec7
17bde78
6463c77
2c9919b
7ecab05
90278f1
b1d4d83
6a2da79
2bdbf6b
29fdf5c
30e2461
e9e36a4
8faaca6
32ae5a5
3b06460
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,7 +92,8 @@ func TestNotificationSentFailure(t *testing.T) { | |
| t.Run("will return an error since it cannot delete the Notification after successfully sending", func(t *testing.T) { | ||
| // given | ||
| ds, _ := mockDeliveryService(defaultTemplateLoader()) | ||
| controller, cl := newController(t, ds, toolchainConfig) | ||
| controller, cl := newController(t, ds, toolchainConfig, &toolchainv1alpha1.Notification{}) | ||
| // Add notification to fakeclient - update failing because notification status not found as subresource | ||
|
||
| cl.MockDelete = func(ctx context.Context, obj runtimeclient.Object, opts ...runtimeclient.DeleteOption) error { | ||
| return fmt.Errorf("error") | ||
| } | ||
|
|
@@ -141,7 +142,7 @@ func TestNotificationDelivery(t *testing.T) { | |
| }, | ||
| }, | ||
| } | ||
| controller, cl := newController(t, ds, userSignup) | ||
| controller, cl := newController(t, ds, userSignup, &toolchainv1alpha1.Notification{}) | ||
|
|
||
| notification, err := notify.NewNotificationBuilder(cl, test.HostOperatorNs). | ||
| WithUserContext(userSignup). | ||
|
|
@@ -189,7 +190,7 @@ func TestNotificationDelivery(t *testing.T) { | |
|
|
||
| t.Run("test admin notification delivery ok", func(t *testing.T) { | ||
| // given | ||
| controller, cl := newController(t, ds) | ||
| controller, cl := newController(t, ds, &toolchainv1alpha1.Notification{}) | ||
|
|
||
| notification, err := notify.NewNotificationBuilder(cl, test.HostOperatorNs). | ||
| WithSubjectAndContent("Alert", "Something bad happened"). | ||
|
|
@@ -251,7 +252,7 @@ func TestNotificationDelivery(t *testing.T) { | |
| }, | ||
| } | ||
| // pass in nil for deliveryService since send won't be used (sending skipped) | ||
| controller, cl := newController(t, nil, userSignup, toolchainConfig) | ||
| controller, cl := newController(t, nil, userSignup, toolchainConfig, &toolchainv1alpha1.Notification{}) | ||
|
|
||
| notification, err := notify.NewNotificationBuilder(cl, test.HostOperatorNs). | ||
| Create(context.TODO(), "[email protected]") | ||
|
|
@@ -292,7 +293,7 @@ func TestNotificationDelivery(t *testing.T) { | |
| }, | ||
| } | ||
| mds := &MockDeliveryService{} | ||
| controller, cl := newController(t, mds, userSignup) | ||
| controller, cl := newController(t, mds, userSignup, &toolchainv1alpha1.Notification{}) | ||
|
|
||
| notification, err := notify.NewNotificationBuilder(cl, test.HostOperatorNs). | ||
| Create(context.TODO(), "[email protected]") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.