diff --git a/src/test/java/org/dependencytrack/resources/v1/ScheduledNotificationRuleResourceTest.java b/src/test/java/org/dependencytrack/resources/v1/ScheduledNotificationRuleResourceTest.java index 77322cca1..afdaa3362 100644 --- a/src/test/java/org/dependencytrack/resources/v1/ScheduledNotificationRuleResourceTest.java +++ b/src/test/java/org/dependencytrack/resources/v1/ScheduledNotificationRuleResourceTest.java @@ -187,6 +187,9 @@ public void createScheduledNotificationRuleWithInvalidCronConfigTest() { NotificationPublisher publisher = new NotificationPublisher(); publisher.setUuid(UUID.randomUUID()); ScheduledNotificationRule rule = new ScheduledNotificationRule(); + rule.setName("Example Rule"); + rule.setScope(NotificationScope.PORTFOLIO); + rule.setEnabled(true); rule.setCronConfig("A B C D E"); rule.setLastExecutionTime(ZonedDateTime.now()); Response response = jersey.target(V1_SCHEDULED_NOTIFICATION_RULE).request()