fix: 补齐取消发布审计操作者
This commit is contained in:
@@ -311,7 +311,16 @@ describe('DeployRunsService', () => {
|
||||
expect(jenkins.cancelQueueItem).toHaveBeenCalledWith('queue_001');
|
||||
expect(jenkins.stopBuild).not.toHaveBeenCalled();
|
||||
expect(audit.record).toHaveBeenCalledWith(
|
||||
expect.objectContaining({ action: 'DEPLOY_CANCELED' }),
|
||||
expect.objectContaining({
|
||||
action: 'DEPLOY_CANCELED',
|
||||
actorName: queuedRun.operator,
|
||||
}),
|
||||
);
|
||||
expect(audit.record).toHaveBeenCalledWith(
|
||||
expect.objectContaining({
|
||||
action: 'DEPLOY_NOTIFICATION_SKIPPED',
|
||||
actorName: queuedRun.operator,
|
||||
}),
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user