Add tests for repository notification api

This commit is contained in:
Evan Cordell 2017-07-17 17:56:32 -04:00
parent 9dad44e93d
commit 57517adef3
7 changed files with 239 additions and 32 deletions

View file

@ -133,8 +133,8 @@ class QuayNotificationMethod(NotificationMethod):
return
# Lookup the target user or team to which we'll send the notification.
config_data = notification_obj.method_config_dict
status, err_message, target_users = self.find_targets(repository, config_data)
config_data = json.loads(notification_obj.config_json)
status, err_message, target_users = self.find_targets(repository.namespace_user.username, repository.name, config_data)
if not status:
raise NotificationMethodPerformException(err_message)