##// END OF EJS Templates
audit-logs: use stricter limit on how much data the commits key can hold....
marcink -
r1964:70ea4c96 default
parent child Browse files
Show More
@@ -201,7 +201,7 b' def post_push(extras):'
201 audit_logger.store(
201 audit_logger.store(
202 'user.push', action_data={
202 'user.push', action_data={
203 'user_agent': extras.user_agent,
203 'user_agent': extras.user_agent,
204 'commit_ids': commit_ids[:10000]},
204 'commit_ids': commit_ids[:400]},
205 user=audit_user, repo=repo, commit=True)
205 user=audit_user, repo=repo, commit=True)
206
206
207 # Propagate to external components.
207 # Propagate to external components.
@@ -44,7 +44,7 b' def test_post_push_truncates_commits(use'
44 hooks_base.post_push(extras)
44 hooks_base.post_push(extras)
45
45
46 # Calculate appropriate action string here
46 # Calculate appropriate action string here
47 commit_ids = extras.commit_ids[:10000]
47 commit_ids = extras.commit_ids[:400]
48
48
49 entry = UserLog.query().order_by('-user_log_id').first()
49 entry = UserLog.query().order_by('-user_log_id').first()
50 assert entry.action == 'user.push'
50 assert entry.action == 'user.push'
General Comments 0
You need to be logged in to leave comments. Login now