Fix test notification data for repo_pull to match actual data

Fixes https://jira.coreos.com/browse/QUAY-1023
This commit is contained in:
Joseph Schorr 2018-09-12 17:31:07 -04:00
parent 54aca8206b
commit 10b14866f5
2 changed files with 3 additions and 2 deletions

View file

@ -237,7 +237,8 @@ def update_images(namespace_name, repo_name):
updated_tags = session.get('pushed_tags', {}) updated_tags = session.get('pushed_tags', {})
event_data = { event_data = {
'updated_tags': updated_tags,} 'updated_tags': updated_tags.keys(),
}
track_and_log('push_repo', repo) track_and_log('push_repo', repo)
spawn_notification(repo, 'repo_push', event_data) spawn_notification(repo, 'repo_push', event_data)

View file

@ -100,7 +100,7 @@ class RepoPushEvent(NotificationEvent):
def get_sample_data(self, namespace_name, repo_name, event_config): def get_sample_data(self, namespace_name, repo_name, event_config):
return build_repository_event_data(namespace_name, repo_name, { return build_repository_event_data(namespace_name, repo_name, {
'updated_tags': {'latest': 'someimageid', 'foo': 'anotherimage'}, 'updated_tags': ['latest', 'foo'],
'pruned_image_count': 3 'pruned_image_count': 3
}) })