Skip to content

Commit 8668b0f

Browse files
committed
test(NotificationPolicy): ApplySuccesful
1 parent d0a8170 commit 8668b0f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

controllers/notificationpolicy_controller_test.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,20 @@ var _ = Describe("NotificationPolicy Reconciler: Provoke Conditions", func() {
448448
wantReason: conditionReasonFieldsMutuallyExclusive,
449449
wantErr: "invalid route spec discovered: routeSelector is mutually exclusive with routes",
450450
},
451+
{
452+
name: "Successfully applied resource to instance",
453+
cr: &v1beta1.GrafanaNotificationPolicy{
454+
ObjectMeta: objectMetaSynchronized,
455+
Spec: v1beta1.GrafanaNotificationPolicySpec{
456+
GrafanaCommonSpec: commonSpecSynchronized,
457+
Route: &v1beta1.Route{
458+
Receiver: "grafana-default-email",
459+
},
460+
},
461+
},
462+
wantCondition: conditionNotificationPolicySynchronized,
463+
wantReason: conditionReasonApplySuccessful,
464+
},
451465
}
452466

453467
for _, test := range tests {

0 commit comments

Comments
 (0)