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:
Joseph Schorr 2018-09-12 22:15:21 -04:00 committed by GitHub
commit 94253787c1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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', {})
event_data = {
'updated_tags': updated_tags,}
'updated_tags': updated_tags.keys(),
}
track_and_log('push_repo', repo)
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):
return build_repository_event_data(namespace_name, repo_name, {
'updated_tags': {'latest': 'someimageid', 'foo': 'anotherimage'},
'updated_tags': ['latest', 'foo'],
'pruned_image_count': 3
})