Fix test notification data for repo_pull to match actual data
Fixes https://jira.coreos.com/browse/QUAY-1023
This commit is contained in:
parent
54aca8206b
commit
10b14866f5
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
})
|
||||
|
||||
|
|
Reference in a new issue