mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 19:32:15 +00:00
chore: Fix failing unit tests (no-changelog) (#15073)
This commit is contained in:
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node', () => {
|
describe('Google GSuiteAdmin Node', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('changeStatus.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -27,5 +18,7 @@ describe('Google GSuiteAdmin Node', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['changeStatus.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node', () => {
|
describe('Google GSuiteAdmin Node', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('get.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -39,5 +30,7 @@ describe('Google GSuiteAdmin Node', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['get.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node', () => {
|
describe('Google GSuiteAdmin Node', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('getAll.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -31,5 +22,7 @@ describe('Google GSuiteAdmin Node', () => {
|
|||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['getAll.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node', () => {
|
describe('Google GSuiteAdmin Node', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('update.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -623,5 +614,7 @@ describe('Google GSuiteAdmin Node', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['update.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Create Group', () => {
|
describe('Google GSuiteAdmin Node - Create Group', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('create.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -30,5 +21,7 @@ describe('Google GSuiteAdmin Node - Create Group', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['create.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Delete Group', () => {
|
describe('Google GSuiteAdmin Node - Delete Group', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('delete.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -18,5 +9,7 @@ describe('Google GSuiteAdmin Node - Delete Group', () => {
|
|||||||
.reply(204, '');
|
.reply(204, '');
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['delete.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Get Group', () => {
|
describe('Google GSuiteAdmin Node - Get Group', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('get.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -34,5 +25,7 @@ describe('Google GSuiteAdmin Node - Get Group', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['get.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Get All Groups', () => {
|
describe('Google GSuiteAdmin Node - Get All Groups', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('getAll.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -49,5 +40,7 @@ describe('Google GSuiteAdmin Node - Get All Groups', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['getAll.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Update Group', () => {
|
describe('Google GSuiteAdmin Node - Update Group', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('update.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -31,5 +22,7 @@ describe('Google GSuiteAdmin Node - Update Group', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['update.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Add User to Group', () => {
|
describe('Google GSuiteAdmin Node - Add User to Group', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('addToGroup.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
nock('https://www.googleapis.com/admin')
|
nock('https://www.googleapis.com/admin')
|
||||||
@@ -28,5 +19,7 @@ describe('Google GSuiteAdmin Node - Add User to Group', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['addToGroup.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Create User', () => {
|
describe('Google GSuiteAdmin Node - Create User', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('create.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
|
|
||||||
@@ -47,5 +38,7 @@ describe('Google GSuiteAdmin Node - Create User', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['create.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Delete User', () => {
|
describe('Google GSuiteAdmin Node - Delete User', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('delete.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
|
|
||||||
@@ -19,5 +10,7 @@ describe('Google GSuiteAdmin Node - Delete User', () => {
|
|||||||
.reply(200, {});
|
.reply(200, {});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['delete.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Get User', () => {
|
describe('Google GSuiteAdmin Node - Get User', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('get.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
|
|
||||||
@@ -39,5 +30,7 @@ describe('Google GSuiteAdmin Node - Get User', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['get.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Get All Users', () => {
|
describe('Google GSuiteAdmin Node - Get All Users', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('getAll.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
|
|
||||||
@@ -68,5 +59,7 @@ describe('Google GSuiteAdmin Node - Get All Users', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['getAll.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Remove User from Group', () => {
|
describe('Google GSuiteAdmin Node - Remove User from Group', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('removeFromGroup.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
|
|
||||||
@@ -19,5 +10,7 @@ describe('Google GSuiteAdmin Node - Remove User from Group', () => {
|
|||||||
.reply(200, {});
|
.reply(200, {});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['removeFromGroup.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,16 +1,7 @@
|
|||||||
|
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||||
import nock from 'nock';
|
import nock from 'nock';
|
||||||
|
|
||||||
import { initBinaryDataService, testWorkflows, getWorkflowFilenames } from '@test/nodes/Helpers';
|
|
||||||
|
|
||||||
describe('Google GSuiteAdmin Node - Update User', () => {
|
describe('Google GSuiteAdmin Node - Update User', () => {
|
||||||
const workflows = getWorkflowFilenames(__dirname).filter((filename) =>
|
|
||||||
filename.includes('update.workflow.json'),
|
|
||||||
);
|
|
||||||
|
|
||||||
beforeAll(async () => {
|
|
||||||
await initBinaryDataService();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
nock.disableNetConnect();
|
nock.disableNetConnect();
|
||||||
|
|
||||||
@@ -78,5 +69,7 @@ describe('Google GSuiteAdmin Node - Update User', () => {
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
testWorkflows(workflows);
|
new NodeTestHarness().setupTests({
|
||||||
|
workflowFiles: ['update.workflow.json'],
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user