Merge pull request #3248 from quay/joseph.schorr/QUAY-1023/fix-test-notification
Fix test notification data for repo_pull to match actual data
This commit is contained in:
commit
94253787c1
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