From 10b14866f5f8904e0e3015575923a6c832cd73fb Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 12 Sep 2018 17:31:07 -0400 Subject: [PATCH] Fix test notification data for repo_pull to match actual data Fixes https://jira.coreos.com/browse/QUAY-1023 --- endpoints/v1/index.py | 3 ++- notifications/notificationevent.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/endpoints/v1/index.py b/endpoints/v1/index.py index 74d6b9c2d..7f276685a 100644 --- a/endpoints/v1/index.py +++ b/endpoints/v1/index.py @@ -237,7 +237,8 @@ def update_images(namespace_name, repo_name): updated_tags = session.get('pushed_tags', {}) event_data = { - 'updated_tags': updated_tags,} + 'updated_tags': updated_tags.keys(), + } track_and_log('push_repo', repo) spawn_notification(repo, 'repo_push', event_data) diff --git a/notifications/notificationevent.py b/notifications/notificationevent.py index 02578e1a6..1a189da03 100644 --- a/notifications/notificationevent.py +++ b/notifications/notificationevent.py @@ -100,7 +100,7 @@ class RepoPushEvent(NotificationEvent): def get_sample_data(self, namespace_name, repo_name, event_config): return build_repository_event_data(namespace_name, repo_name, { - 'updated_tags': {'latest': 'someimageid', 'foo': 'anotherimage'}, + 'updated_tags': ['latest', 'foo'], 'pruned_image_count': 3 })