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,22 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
object: 'user',
id: '34a945c6-de97-4efc-90d6-6d7cc14a6583',
name: 'second',
avatar_url: null,
type: 'bot',
bot: {},
request_id: 'ad2a00c0-fa6a-4a14-bf9a-68e1715b51a1',
};
describe('Test NotionV2, user => get', () => {
nock('https://api.notion.com')
.get('/v1/users/34a945c6-de97-4efc-90d6-6d7cc14a6583')
.reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['get.workflow.json'],
});
});
@@ -0,0 +1,88 @@
{
"name": "tests notion",
"nodes": [
{
"parameters": {},
"id": "4260fdbd-e92f-4712-8114-38b85f8289ea",
"name": "When clicking Execute workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"resource": "user",
"userId": "34a945c6-de97-4efc-90d6-6d7cc14a6583"
},
"id": "5ab80e6a-c9c4-4cc5-9332-2fc7a3f8ae24",
"name": "Notion",
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [1040, 360],
"credentials": {
"notionApi": {
"id": "CiZXWkDmjiZzpcL1",
"name": "Notion account"
}
}
},
{
"parameters": {},
"id": "a664f506-72a5-4e50-80b4-97ed2e6eb334",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"object": "user",
"id": "34a945c6-de97-4efc-90d6-6d7cc14a6583",
"name": "second",
"avatar_url": null,
"type": "bot",
"bot": {},
"request_id": "ad2a00c0-fa6a-4a14-bf9a-68e1715b51a1"
}
}
]
},
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Notion",
"type": "main",
"index": 0
}
]
]
},
"Notion": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "d654cac7-21b8-4d6e-99ce-c5c980d9f49d",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "Ucav6QC99JNMCkd3",
"tags": []
}
@@ -0,0 +1,47 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
const API_RESPONSE = {
results: [
{
object: 'user',
id: 'f215e49c-4677-40c0-9adc-87440d341324',
name: 'n8n-test',
avatar_url: null,
type: 'bot',
bot: {
owner: {
type: 'workspace',
workspace: true,
},
workspace_name: "Michael Kret's Notion",
},
},
{
object: 'user',
id: '34a945c6-de97-4efc-90d6-6d7cc14a6583',
name: 'second',
avatar_url: null,
type: 'bot',
bot: {},
},
{
object: 'user',
id: '2598a5de-49b3-4acd-adad-20f6b18c9fbe',
name: 'DryMerge',
avatar_url:
'https://s3-us-west-2.amazonaws.com/public.notion-static.com/e67863a3-a867-4355-a602-c9830dbb1828/Primary_(recommended).jpg',
type: 'bot',
bot: {},
},
],
has_more: false,
};
describe('Test NotionV2, user => getAll', () => {
nock('https://api.notion.com').get('/v1/users').reply(200, API_RESPONSE);
new NodeTestHarness().setupTests({
workflowFiles: ['getAll.workflow.json'],
});
});
@@ -0,0 +1,104 @@
{
"name": "tests notion",
"nodes": [
{
"parameters": {},
"id": "4260fdbd-e92f-4712-8114-38b85f8289ea",
"name": "When clicking Execute workflow",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [820, 360]
},
{
"parameters": {
"resource": "user",
"operation": "getAll",
"limit": 2
},
"id": "5ab80e6a-c9c4-4cc5-9332-2fc7a3f8ae24",
"name": "Notion",
"type": "n8n-nodes-base.notion",
"typeVersion": 2.2,
"position": [1040, 360],
"credentials": {
"notionApi": {
"id": "CiZXWkDmjiZzpcL1",
"name": "Notion account"
}
}
},
{
"parameters": {},
"id": "a664f506-72a5-4e50-80b4-97ed2e6eb334",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [1260, 360]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"object": "user",
"id": "f215e49c-4677-40c0-9adc-87440d341324",
"name": "n8n-test",
"avatar_url": null,
"type": "bot",
"bot": {
"owner": {
"type": "workspace",
"workspace": true
},
"workspace_name": "Michael Kret's Notion"
}
}
},
{
"json": {
"object": "user",
"id": "34a945c6-de97-4efc-90d6-6d7cc14a6583",
"name": "second",
"avatar_url": null,
"type": "bot",
"bot": {}
}
}
]
},
"connections": {
"When clicking Execute workflow": {
"main": [
[
{
"node": "Notion",
"type": "main",
"index": 0
}
]
]
},
"Notion": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "702bd2aa-53d0-4c82-bbc2-a95a153953b0",
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "be251a83c052a9862eeac953816fbb1464f89dfbf79d7ac490a8e336a8cc8bfd"
},
"id": "Ucav6QC99JNMCkd3",
"tags": []
}