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,35 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
ok: true,
usergroup: {
id: 'S0615G0KT',
team_id: 'T060RNRCH',
is_usergroup: true,
name: 'Marketing Team',
description: 'Marketing gurus, PR experts and product advocates.',
handle: 'marketing-team',
is_external: false,
date_create: 1446746793,
date_update: 1446746793,
date_delete: 0,
auto_type: null,
created_by: 'U060RNRCZ',
updated_by: 'U060RNRCZ',
deleted_by: null,
prefs: {
channels: [],
groups: [],
},
user_count: '0',
},
};
describe('Test SlackV2, userGroup => create', () => {
nock('https://slack.com').post('/api/usergroups.create').reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['create.workflow.json'],
});
});
@@ -0,0 +1,108 @@
{
"name": "slack tests",
"nodes": [
{
"parameters": {},
"id": "e679c883-1839-47dc-9511-8f7dc370e6b0",
"name": "When clicking 'Execute workflow'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"resource": "userGroup",
"operation": "create",
"name": "Marketing Team",
"Options": {
"channelIds": ["C08514ZPKB8"],
"description": "Marketing department user group",
"handle": "marketing",
"include_count": true
}
},
"id": "2e1937a6-4c8f-4cd1-ae42-11b2bd12cc4c",
"name": "Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.3,
"position": [1040, 360],
"webhookId": "04c5e584-45f4-48d0-bcd2-0ecacecb0f53",
"credentials": {
"slackApi": {
"id": "Bg0bWXf8apAimCqJ",
"name": "Slack account 2"
}
}
},
{
"parameters": {},
"id": "06652908-6b8e-443a-9508-ab229b011b73",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"auto_type": null,
"created_by": "U060RNRCZ",
"date_create": 1446746793,
"date_delete": 0,
"date_update": 1446746793,
"deleted_by": null,
"description": "Marketing gurus, PR experts and product advocates.",
"handle": "marketing-team",
"id": "S0615G0KT",
"is_external": false,
"is_usergroup": true,
"name": "Marketing Team",
"prefs": {
"channels": [],
"groups": []
},
"team_id": "T060RNRCH",
"updated_by": "U060RNRCZ",
"user_count": "0"
}
}
]
},
"connections": {
"When clicking 'Execute workflow'": {
"main": [
[
{
"node": "Slack",
"type": "main",
"index": 0
}
]
]
},
"Slack": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cf10cd01-6650-48ca-b4a2-ec07be9d026c",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "qJdEfiBgYLdfYOTs",
"tags": []
}
@@ -0,0 +1,39 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
ok: true,
usergroup: {
id: 'S07XXXXXX',
team_id: 'T1234567890',
is_usergroup: true,
is_subteam: true,
name: 'Marketing Team',
description: 'Marketing department user group',
handle: 'marketing',
is_external: false,
date_create: 1734322671,
date_update: 1734322671,
date_delete: 1734322800,
auto_type: null,
auto_provision: false,
enterprise_subteam_id: '',
created_by: 'U1234567890',
updated_by: 'U1234567890',
deleted_by: 'U1234567890',
prefs: {
channels: [],
groups: [],
},
users: [],
user_count: 0,
},
};
describe('Test SlackV2, userGroup => disable', () => {
nock('https://slack.com').post('/api/usergroups.disable').reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['disable.workflow.json'],
});
});
@@ -0,0 +1,109 @@
{
"name": "slack tests",
"nodes": [
{
"parameters": {},
"id": "e679c883-1839-47dc-9511-8f7dc370e6b0",
"name": "When clicking 'Execute workflow'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"resource": "userGroup",
"operation": "disable",
"userGroupId": "S07XXXXXX",
"options": {
"include_count": true
}
},
"id": "2e1937a6-4c8f-4cd1-ae42-11b2bd12cc4c",
"name": "Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.3,
"position": [1040, 360],
"webhookId": "04c5e584-45f4-48d0-bcd2-0ecacecb0f53",
"credentials": {
"slackApi": {
"id": "Bg0bWXf8apAimCqJ",
"name": "Slack account 2"
}
}
},
{
"parameters": {},
"id": "06652908-6b8e-443a-9508-ab229b011b73",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"auto_provision": false,
"auto_type": null,
"created_by": "U1234567890",
"date_create": 1734322671,
"date_delete": 1734322800,
"date_update": 1734322671,
"deleted_by": "U1234567890",
"description": "Marketing department user group",
"enterprise_subteam_id": "",
"handle": "marketing",
"id": "S07XXXXXX",
"is_external": false,
"is_subteam": true,
"is_usergroup": true,
"name": "Marketing Team",
"prefs": {
"channels": [],
"groups": []
},
"team_id": "T1234567890",
"updated_by": "U1234567890",
"user_count": 0,
"users": []
}
}
]
},
"connections": {
"When clicking 'Execute workflow'": {
"main": [
[
{
"node": "Slack",
"type": "main",
"index": 0
}
]
]
},
"Slack": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cf10cd01-6650-48ca-b4a2-ec07be9d026c",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "qJdEfiBgYLdfYOTs",
"tags": []
}
@@ -0,0 +1,39 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
ok: true,
usergroup: {
id: 'S07XXXXXX',
team_id: 'T1234567890',
is_usergroup: true,
is_subteam: true,
name: 'Marketing Team',
description: 'Marketing department user group',
handle: 'marketing',
is_external: false,
date_create: 1734322671,
date_update: 1734322671,
date_delete: 0,
auto_type: null,
auto_provision: false,
enterprise_subteam_id: '',
created_by: 'U1234567890',
updated_by: 'U1234567890',
deleted_by: null,
prefs: {
channels: [],
groups: [],
},
users: [],
user_count: 0,
},
};
describe('Test SlackV2, userGroup => enable', () => {
nock('https://slack.com').post('/api/usergroups.enable').reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['enable.workflow.json'],
});
});
@@ -0,0 +1,109 @@
{
"name": "slack tests",
"nodes": [
{
"parameters": {},
"id": "e679c883-1839-47dc-9511-8f7dc370e6b0",
"name": "When clicking 'Execute workflow'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"resource": "userGroup",
"operation": "enable",
"userGroupId": "S07XXXXXX",
"option": {
"include_count": true
}
},
"id": "2e1937a6-4c8f-4cd1-ae42-11b2bd12cc4c",
"name": "Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.3,
"position": [1040, 360],
"webhookId": "04c5e584-45f4-48d0-bcd2-0ecacecb0f53",
"credentials": {
"slackApi": {
"id": "Bg0bWXf8apAimCqJ",
"name": "Slack account 2"
}
}
},
{
"parameters": {},
"id": "06652908-6b8e-443a-9508-ab229b011b73",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"auto_provision": false,
"auto_type": null,
"created_by": "U1234567890",
"date_create": 1734322671,
"date_delete": 0,
"date_update": 1734322671,
"deleted_by": null,
"description": "Marketing department user group",
"enterprise_subteam_id": "",
"handle": "marketing",
"id": "S07XXXXXX",
"is_external": false,
"is_subteam": true,
"is_usergroup": true,
"name": "Marketing Team",
"prefs": {
"channels": [],
"groups": []
},
"team_id": "T1234567890",
"updated_by": "U1234567890",
"user_count": 0,
"users": []
}
}
]
},
"connections": {
"When clicking 'Execute workflow'": {
"main": [
[
{
"node": "Slack",
"type": "main",
"index": 0
}
]
]
},
"Slack": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cf10cd01-6650-48ca-b4a2-ec07be9d026c",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "qJdEfiBgYLdfYOTs",
"tags": []
}
@@ -0,0 +1,69 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
ok: true,
usergroups: [
{
id: 'S07XXXXXX',
team_id: 'T1234567890',
is_usergroup: true,
is_subteam: true,
name: 'Marketing Team',
description: 'Marketing department user group',
handle: 'marketing',
is_external: false,
date_create: 1734322671,
date_update: 1734322671,
date_delete: 0,
auto_type: null,
auto_provision: false,
enterprise_subteam_id: '',
created_by: 'U1234567890',
updated_by: 'U1234567890',
deleted_by: null,
prefs: {
channels: [],
groups: [],
},
users: ['U1234567890', 'U0987654321'],
user_count: 2,
},
{
id: 'S08YYYYYY',
team_id: 'T1234567890',
is_usergroup: true,
is_subteam: true,
name: 'Engineering Team',
description: 'Engineering department user group',
handle: 'engineering',
is_external: false,
date_create: 1734322600,
date_update: 1734322600,
date_delete: 0,
auto_type: null,
auto_provision: false,
enterprise_subteam_id: '',
created_by: 'U1234567890',
updated_by: 'U1234567890',
deleted_by: null,
prefs: {
channels: [],
groups: [],
},
users: ['U1111111111', 'U2222222222', 'U3333333333'],
user_count: 3,
},
],
};
describe('Test SlackV2, userGroup => getAll', () => {
nock('https://slack.com')
.get('/api/usergroups.list')
.query({ include_count: 'true', include_disabled: 'true', include_users: 'true' })
.reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['getAll.workflow.json'],
});
});
@@ -0,0 +1,139 @@
{
"name": "slack tests",
"nodes": [
{
"parameters": {},
"id": "e679c883-1839-47dc-9511-8f7dc370e6b0",
"name": "When clicking 'Execute workflow'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"resource": "userGroup",
"operation": "getAll",
"returnAll": false,
"limit": 100,
"options": {
"include_count": true,
"include_disabled": true,
"include_users": true
}
},
"id": "2e1937a6-4c8f-4cd1-ae42-11b2bd12cc4c",
"name": "Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.3,
"position": [1040, 360],
"webhookId": "04c5e584-45f4-48d0-bcd2-0ecacecb0f53",
"credentials": {
"slackApi": {
"id": "Bg0bWXf8apAimCqJ",
"name": "Slack account 2"
}
}
},
{
"parameters": {},
"id": "06652908-6b8e-443a-9508-ab229b011b73",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"id": "S07XXXXXX",
"team_id": "T1234567890",
"is_usergroup": true,
"is_subteam": true,
"name": "Marketing Team",
"description": "Marketing department user group",
"handle": "marketing",
"is_external": false,
"date_create": 1734322671,
"date_update": 1734322671,
"date_delete": 0,
"auto_type": null,
"auto_provision": false,
"enterprise_subteam_id": "",
"created_by": "U1234567890",
"updated_by": "U1234567890",
"deleted_by": null,
"prefs": {
"channels": [],
"groups": []
},
"users": ["U1234567890", "U0987654321"],
"user_count": 2
}
},
{
"json": {
"id": "S08YYYYYY",
"team_id": "T1234567890",
"is_usergroup": true,
"is_subteam": true,
"name": "Engineering Team",
"description": "Engineering department user group",
"handle": "engineering",
"is_external": false,
"date_create": 1734322600,
"date_update": 1734322600,
"date_delete": 0,
"auto_type": null,
"auto_provision": false,
"enterprise_subteam_id": "",
"created_by": "U1234567890",
"updated_by": "U1234567890",
"deleted_by": null,
"prefs": {
"channels": [],
"groups": []
},
"users": ["U1111111111", "U2222222222", "U3333333333"],
"user_count": 3
}
}
]
},
"connections": {
"When clicking 'Execute workflow'": {
"main": [
[
{
"node": "Slack",
"type": "main",
"index": 0
}
]
]
},
"Slack": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cf10cd01-6650-48ca-b4a2-ec07be9d026c",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "qJdEfiBgYLdfYOTs",
"tags": []
}
@@ -0,0 +1,39 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
ok: true,
usergroup: {
id: 'S07XXXXXX',
team_id: 'T1234567890',
is_usergroup: true,
is_subteam: true,
name: 'Marketing Team Updated',
description: 'Updated marketing department user group',
handle: 'marketing-team',
is_external: false,
date_create: 1734322671,
date_update: 1734322900,
date_delete: 0,
auto_type: null,
auto_provision: false,
enterprise_subteam_id: '',
created_by: 'U1234567890',
updated_by: 'U1234567890',
deleted_by: null,
prefs: {
channels: ['C08514ZPKB8', 'C08514ZPKB9'],
groups: [],
},
users: [],
user_count: 0,
},
};
describe('Test SlackV2, userGroup => update', () => {
nock('https://slack.com').post('/api/usergroups.update').reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['update.workflow.json'],
});
});
@@ -0,0 +1,113 @@
{
"name": "slack tests",
"nodes": [
{
"parameters": {},
"id": "e679c883-1839-47dc-9511-8f7dc370e6b0",
"name": "When clicking 'Execute workflow'",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"resource": "userGroup",
"operation": "update",
"userGroupId": "S07XXXXXX",
"updateFields": {
"name": "Marketing Team Updated",
"description": "Updated marketing department user group",
"handle": "marketing-team",
"channels": ["C08514ZPKB8", "C08514ZPKB9"],
"include_count": true
}
},
"id": "2e1937a6-4c8f-4cd1-ae42-11b2bd12cc4c",
"name": "Slack",
"type": "n8n-nodes-base.slack",
"typeVersion": 2.3,
"position": [1040, 360],
"webhookId": "04c5e584-45f4-48d0-bcd2-0ecacecb0f53",
"credentials": {
"slackApi": {
"id": "Bg0bWXf8apAimCqJ",
"name": "Slack account 2"
}
}
},
{
"parameters": {},
"id": "06652908-6b8e-443a-9508-ab229b011b73",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"auto_provision": false,
"auto_type": null,
"created_by": "U1234567890",
"date_create": 1734322671,
"date_delete": 0,
"date_update": 1734322900,
"deleted_by": null,
"description": "Updated marketing department user group",
"enterprise_subteam_id": "",
"handle": "marketing-team",
"id": "S07XXXXXX",
"is_external": false,
"is_subteam": true,
"is_usergroup": true,
"name": "Marketing Team Updated",
"prefs": {
"channels": ["C08514ZPKB8", "C08514ZPKB9"],
"groups": []
},
"team_id": "T1234567890",
"updated_by": "U1234567890",
"user_count": 0,
"users": []
}
}
]
},
"connections": {
"When clicking 'Execute workflow'": {
"main": [
[
{
"node": "Slack",
"type": "main",
"index": 0
}
]
]
},
"Slack": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "cf10cd01-6650-48ca-b4a2-ec07be9d026c",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "qJdEfiBgYLdfYOTs",
"tags": []
}