Skip to content

Commit

Permalink
rename nexus event
Browse files Browse the repository at this point in the history
  • Loading branch information
Cisphyx committed Jan 10, 2025
1 parent 9ea3656 commit ca5df29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion synapse/cortex.py
Original file line number Diff line number Diff line change
Expand Up @@ -1130,7 +1130,7 @@ async def _migrateCronUser(self):
if update:
await role.setRules(rules)

@s_nexus.Pusher.onPushAuto('cortex:add:trigger:creator')
@s_nexus.Pusher.onPushAuto('cortex:migr:trigger:creator')
async def _migrateTriggerCreator(self):
for view in self.views.values():
for iden, trig in view.triggers.list():
Expand Down
3 changes: 3 additions & 0 deletions synapse/tests/test_lib_agenda.py
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,9 @@ async def test_agenda_edit(self):
msgs = await core.stormlist(q, opts=opts)
self.stormIsInErr('must have permission cron.set.user', msgs)

with self.raises(s_exc.BadArg):
await core.editCronJob(cdef.get('iden'), 'newp', 'newp')

q = '$cron = $lib.cron.get($iden) return ( $cron.set(creator, $lowuser) )'
msgs = await core.stormlist(q, opts=opts)
self.stormIsInErr('CronJob does not support setting: creator', msgs)
Expand Down

0 comments on commit ca5df29

Please sign in to comment.