first commit
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled

This commit is contained in:
2026-03-17 16:22:57 +03:30
commit 3d5eaf9445
15349 changed files with 2847338 additions and 0 deletions
@@ -0,0 +1,25 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node - Add User to Group', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.get('/directory/v1/users/114393134535981252528')
.reply(200, { primaryEmail: 'newone@example.com' });
nock('https://www.googleapis.com/admin')
.post('/directory/v1/groups/01302m922pmp3e4/members', {
email: 'newone@example.com',
role: 'MEMBER',
})
.reply(200, {
kind: 'admin#directory#member',
status: 'ACTIVE',
});
});
new NodeTestHarness().setupTests({
workflowFiles: ['addToGroup.workflow.json'],
});
});
@@ -0,0 +1,60 @@
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [120, 700],
"id": "0e76b314-4994-4141-975f-9614c6094c80",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"operation": "addToGroup",
"userId": {
"__rl": true,
"value": "114393134535981252528",
"mode": "list",
"cachedResultName": "NewOne User"
},
"groupId": {
"__rl": true,
"value": "01302m922pmp3e4",
"mode": "list",
"cachedResultName": "new"
}
},
"type": "n8n-nodes-base.gSuiteAdmin",
"typeVersion": 1,
"position": [80, 1100],
"id": "b0c8042f-4ce1-41f1-9d14-876d5cac3ccf",
"name": "Add To Group",
"credentials": {
"gSuiteAdminOAuth2Api": {
"id": "OXfPMaggXFJ0RLkw",
"name": "Google Workspace Admin account"
}
}
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Add To Group",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Add To Group": [
{
"json": { "added": true }
}
]
}
}
@@ -0,0 +1,44 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node - Create User', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.post('/directory/v1/users')
.reply(200, {
kind: 'admin#directory#user',
id: '112507770188715525288',
etag: '"example"',
primaryEmail: 'new@example.com',
name: {
givenName: 'NewOne',
familyName: 'User',
},
emails: [
{
address: 'test@mail.com',
type: 'work',
},
],
phones: [
{
primary: false,
type: 'work',
value: '+1-202-555-0123',
},
],
isAdmin: false,
isDelegatedAdmin: false,
creationTime: '2024-12-20T20:48:53.000Z',
customerId: 'C4444hnz2',
orgUnitPath: '/',
isMailboxSetup: false,
});
});
new NodeTestHarness().setupTests({
workflowFiles: ['create.workflow.json'],
});
});
@@ -0,0 +1,107 @@
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [120, 700],
"id": "0e76b314-4994-4141-975f-9614c6094c80",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"firstName": "NewOne",
"lastName": "User",
"password": "12345678",
"username": "new",
"domain": "example.com",
"additionalFields": {
"changePasswordAtNextLogin": true,
"phoneUi": {
"phoneValues": [
{
"value": "+1-202-555-0123"
}
]
},
"emailUi": {
"emailValues": [
{
"address": "test@mail.com"
}
]
},
"roles": ["groupsAdmin"],
"customFields": {
"fieldValues": [
{
"schemaName": "NewTest",
"fieldName": "test",
"value": "test"
}
]
}
}
},
"type": "n8n-nodes-base.gSuiteAdmin",
"typeVersion": 1,
"position": [100, 1100],
"id": "54227da8-70ad-456a-8d75-f7e28d514e90",
"name": "Create User",
"credentials": {
"gSuiteAdminOAuth2Api": {
"id": "OXfPMaggXFJ0RLkw",
"name": "Google Workspace Admin account"
}
}
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Create User",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Create User": [
{
"json": {
"kind": "admin#directory#user",
"id": "112507770188715525288",
"etag": "\"example\"",
"primaryEmail": "new@example.com",
"name": {
"givenName": "NewOne",
"familyName": "User"
},
"isAdmin": false,
"isDelegatedAdmin": false,
"creationTime": "2024-12-20T20:48:53.000Z",
"emails": [
{
"address": "test@mail.com",
"type": "work"
}
],
"phones": [
{
"value": "+1-202-555-0123",
"primary": false,
"type": "work"
}
],
"customerId": "C4444hnz2",
"orgUnitPath": "/",
"isMailboxSetup": false
}
}
]
}
}
@@ -0,0 +1,16 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node - Delete User', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.delete('/directory/v1/users/114393134535981252212')
.reply(200, {});
});
new NodeTestHarness().setupTests({
workflowFiles: ['delete.workflow.json'],
});
});
@@ -0,0 +1,56 @@
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [120, 700],
"id": "0e76b314-4994-4141-975f-9614c6094c80",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"operation": "delete",
"userId": {
"__rl": true,
"value": "114393134535981252212",
"mode": "list",
"cachedResultName": "NewOne22 User22"
}
},
"type": "n8n-nodes-base.gSuiteAdmin",
"typeVersion": 1,
"position": [120, 1100],
"id": "39f9a9c0-2ea5-45b2-a346-55017dfa4e43",
"name": "Delete User",
"credentials": {
"gSuiteAdminOAuth2Api": {
"id": "OXfPMaggXFJ0RLkw",
"name": "Google Workspace Admin account"
}
}
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Delete User",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Delete User": [
{
"json": {
"deleted": true
}
}
]
}
}
@@ -0,0 +1,36 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node - Get User', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.get('/directory/v1/users/112507770188715252026')
.query({ projection: 'basic' })
.reply(200, {
kind: 'admin#directory#user',
id: '112507770188715252026',
primaryEmail: 'new@example.com',
name: {
givenName: 'New One',
familyName: 'User',
fullName: 'New One User',
},
isAdmin: false,
lastLoginTime: '1970-01-01T00:00:00.000Z',
creationTime: '2024-12-20T20:48:53.000Z',
suspended: true,
emails: [
{
address: 'new@example.com',
primary: true,
},
],
});
});
new NodeTestHarness().setupTests({
workflowFiles: ['get.workflow.json'],
});
});
@@ -0,0 +1,67 @@
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [120, 700],
"id": "0e76b314-4994-4141-975f-9614c6094c80",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"operation": "get",
"userId": {
"__rl": true,
"value": "112507770188715252026",
"mode": "list",
"cachedResultName": "NewOne22 User22"
}
},
"type": "n8n-nodes-base.gSuiteAdmin",
"typeVersion": 1,
"position": [120, 1100],
"id": "b39d3a72-6e81-4219-82eb-f39d99eace16",
"name": "Get User",
"credentials": {
"gSuiteAdminOAuth2Api": {
"id": "OXfPMaggXFJ0RLkw",
"name": "Google Workspace Admin account"
}
}
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Get User",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Get User": [
{
"json": {
"kind": "admin#directory#user",
"id": "112507770188715252026",
"primaryEmail": "new@example.com",
"name": {
"givenName": "New One",
"familyName": "User",
"fullName": "New One User"
},
"isAdmin": false,
"lastLoginTime": "1970-01-01T00:00:00.000Z",
"creationTime": "2024-12-20T20:48:53.000Z",
"suspended": true
}
}
]
}
}
@@ -0,0 +1,65 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node - Get All Users', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.get('/directory/v1/users')
.query({
projection: 'basic',
customer: 'my_customer',
maxResults: '100',
})
.reply(200, {
kind: 'admin#directory#users',
users: [
{
kind: 'admin#directory#user',
id: '112507770188715252055',
primaryEmail: 'new@example.com',
name: {
givenName: 'New',
familyName: 'User',
fullName: 'New User',
},
isAdmin: false,
lastLoginTime: '1970-01-01T00:00:00.000Z',
creationTime: '2024-12-20T20:48:53.000Z',
suspended: true,
emails: [
{
address: 'new@example.com',
primary: true,
},
],
},
{
kind: 'admin#directory#user',
id: '222459372679230452528',
primaryEmail: 'test33@example.com',
name: {
givenName: 'New',
familyName: 'Test',
fullName: 'New Test',
},
isAdmin: true,
lastLoginTime: '2024-12-19T08:39:56.000Z',
creationTime: '2024-09-06T11:48:38.000Z',
suspended: false,
emails: [
{
address: 'test33@example.com',
primary: true,
},
],
},
],
});
});
new NodeTestHarness().setupTests({
workflowFiles: ['getAll.workflow.json'],
});
});
@@ -0,0 +1,78 @@
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [120, 700],
"id": "0e76b314-4994-4141-975f-9614c6094c80",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"operation": "getAll",
"filter": {}
},
"type": "n8n-nodes-base.gSuiteAdmin",
"typeVersion": 1,
"position": [140, 1100],
"id": "4107ee9d-37e1-4d85-9099-25ec13211ee1",
"name": "Get Many",
"credentials": {
"gSuiteAdminOAuth2Api": {
"id": "OXfPMaggXFJ0RLkw",
"name": "Google Workspace Admin account"
}
}
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Get Many",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Get Many": [
{
"json": {
"kind": "admin#directory#user",
"id": "112507770188715252055",
"primaryEmail": "new@example.com",
"name": {
"givenName": "New",
"familyName": "User",
"fullName": "New User"
},
"isAdmin": false,
"lastLoginTime": "1970-01-01T00:00:00.000Z",
"creationTime": "2024-12-20T20:48:53.000Z",
"suspended": true
}
},
{
"json": {
"kind": "admin#directory#user",
"id": "222459372679230452528",
"primaryEmail": "test33@example.com",
"name": {
"givenName": "New",
"familyName": "Test",
"fullName": "New Test"
},
"isAdmin": true,
"lastLoginTime": "2024-12-19T08:39:56.000Z",
"creationTime": "2024-09-06T11:48:38.000Z",
"suspended": false
}
}
]
}
}
@@ -0,0 +1,16 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node - Remove User from Group', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.delete('/directory/v1/groups/01302m922pmp3e4/members/114393134535981252528')
.reply(200, {});
});
new NodeTestHarness().setupTests({
workflowFiles: ['removeFromGroup.workflow.json'],
});
});
@@ -0,0 +1,60 @@
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [120, 700],
"id": "0e76b314-4994-4141-975f-9614c6094c80",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"operation": "removeFromGroup",
"userId": {
"__rl": true,
"value": "114393134535981252528",
"mode": "list",
"cachedResultName": "New User"
},
"groupId": {
"__rl": true,
"value": "01302m922pmp3e4",
"mode": "list",
"cachedResultName": "new2"
}
},
"type": "n8n-nodes-base.gSuiteAdmin",
"typeVersion": 1,
"position": [140, 1100],
"id": "9a323b95-1495-487f-ba27-2df737bd5bdf",
"name": "Remove From Group",
"credentials": {
"gSuiteAdminOAuth2Api": {
"id": "OXfPMaggXFJ0RLkw",
"name": "Google Workspace Admin account"
}
}
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Remove From Group",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Remove From Group": [
{
"json": { "removed": true }
}
]
}
}
@@ -0,0 +1,75 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
describe('Google GSuiteAdmin Node - Update User', () => {
beforeEach(() => {
nock.disableNetConnect();
nock('https://www.googleapis.com/admin')
.put('/directory/v1/users/101071249467630629404', {
name: {
givenName: 'test',
familyName: 'new',
},
primaryEmail: 'one@example.com',
phones: [
{
type: 'assistant',
value: '123',
primary: true,
},
],
emails: [
{
address: 'newone@example.com',
type: 'home',
},
],
})
.reply(200, {
kind: 'admin#directory#user',
id: '101071249467630629404',
etag: '"example"',
primaryEmail: 'one@example.com',
name: {
givenName: 'test',
familyName: 'new',
},
isAdmin: false,
isDelegatedAdmin: false,
lastLoginTime: '1970-01-01T00:00:00.000Z',
creationTime: '2025-03-26T21:28:53.000Z',
agreedToTerms: false,
suspended: false,
archived: false,
changePasswordAtNextLogin: false,
ipWhitelisted: false,
emails: [
{
address: 'newone@example.com',
type: 'home',
},
],
phones: [
{
value: '123',
primary: true,
type: 'assistant',
},
],
aliases: ['new22@example.com'],
nonEditableAliases: ['new22@example.com.test-google-a.com'],
customerId: 'C0442hnz1',
orgUnitPath: '/',
isMailboxSetup: false,
includeInGlobalAddressList: true,
thumbnailPhotoUrl: '//example',
thumbnailPhotoEtag: '"example"',
recoveryEmail: '',
});
});
new NodeTestHarness().setupTests({
workflowFiles: ['update.workflow.json'],
});
});
@@ -0,0 +1,117 @@
{
"nodes": [
{
"parameters": {},
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [120, 700],
"id": "0e76b314-4994-4141-975f-9614c6094c80",
"name": "When clicking Execute workflow"
},
{
"parameters": {
"operation": "update",
"userId": {
"__rl": true,
"value": "101071249467630629404",
"mode": "list",
"cachedResultName": "NewOne22 User22"
},
"updateFields": {
"archived": true,
"firstName": "test",
"lastName": "new",
"phoneUi": {
"phoneValues": [
{
"type": "assistant",
"value": "123",
"primary": true
}
]
},
"primaryEmail": "one@example.com",
"emailUi": {
"emailValues": [
{
"type": "home",
"address": "newone@example.com"
}
]
}
}
},
"type": "n8n-nodes-base.gSuiteAdmin",
"typeVersion": 1,
"position": [140, 1100],
"id": "b4cd1391-cfdc-4f36-8c2f-f18a9ad4f795",
"name": "Update User",
"credentials": {
"gSuiteAdminOAuth2Api": {
"id": "OXfPMaggXFJ0RLkw",
"name": "Google Workspace Admin account"
}
}
}
],
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Update User",
"type": "main",
"index": 0
}
]
]
}
},
"pinData": {
"Update User": [
{
"json": {
"kind": "admin#directory#user",
"id": "101071249467630629404",
"etag": "\"example\"",
"primaryEmail": "one@example.com",
"name": {
"givenName": "test",
"familyName": "new"
},
"isAdmin": false,
"isDelegatedAdmin": false,
"lastLoginTime": "1970-01-01T00:00:00.000Z",
"creationTime": "2025-03-26T21:28:53.000Z",
"agreedToTerms": false,
"suspended": false,
"archived": false,
"changePasswordAtNextLogin": false,
"ipWhitelisted": false,
"emails": [
{
"address": "newone@example.com",
"type": "home"
}
],
"phones": [
{
"value": "123",
"primary": true,
"type": "assistant"
}
],
"aliases": ["new22@example.com"],
"nonEditableAliases": ["new22@example.com.test-google-a.com"],
"customerId": "C0442hnz1",
"orgUnitPath": "/",
"isMailboxSetup": false,
"includeInGlobalAddressList": true,
"thumbnailPhotoUrl": "//example",
"thumbnailPhotoEtag": "\"example\"",
"recoveryEmail": ""
}
}
]
}
}