mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 01:56:46 +00:00
feat(API): Add user id information on push tracking when available (#14519)
This commit is contained in:
committed by
GitHub
parent
faecb47f15
commit
61957899e1
@@ -45,8 +45,9 @@ describe('SourceControlService', () => {
|
||||
|
||||
describe('pushWorkfolder', () => {
|
||||
it('should throw an error if a file is given that is not in the workfolder', async () => {
|
||||
const user = mock<User>();
|
||||
await expect(
|
||||
sourceControlService.pushWorkfolder({
|
||||
sourceControlService.pushWorkfolder(user, {
|
||||
fileNames: [
|
||||
{
|
||||
file: '/etc/passwd',
|
||||
@@ -115,8 +116,9 @@ describe('SourceControlService', () => {
|
||||
});
|
||||
|
||||
it('should throw an error if a file is given that is not in the workfolder', async () => {
|
||||
const user = mock<User>();
|
||||
await expect(
|
||||
sourceControlService.pushWorkfolder({
|
||||
sourceControlService.pushWorkfolder(user, {
|
||||
fileNames: [
|
||||
{
|
||||
file: '/etc/passwd',
|
||||
@@ -138,6 +140,7 @@ describe('SourceControlService', () => {
|
||||
describe('getStatus', () => {
|
||||
it('conflict depends on the value of `direction`', async () => {
|
||||
// ARRANGE
|
||||
const user = mock<User>();
|
||||
|
||||
// Define a credential that does only exist locally.
|
||||
// Pulling this would delete it so it should be marked as a conflict.
|
||||
@@ -200,13 +203,13 @@ describe('SourceControlService', () => {
|
||||
});
|
||||
|
||||
// ACT
|
||||
const pullResult = await sourceControlService.getStatus({
|
||||
const pullResult = await sourceControlService.getStatus(user, {
|
||||
direction: 'pull',
|
||||
verbose: false,
|
||||
preferLocalVersion: false,
|
||||
});
|
||||
|
||||
const pushResult = await sourceControlService.getStatus({
|
||||
const pushResult = await sourceControlService.getStatus(user, {
|
||||
direction: 'push',
|
||||
verbose: false,
|
||||
preferLocalVersion: false,
|
||||
|
||||
Reference in New Issue
Block a user