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,59 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
import { credentials } from '../../../credentials';
describe('Test MicrosoftTeamsV2, channelMessage => create', () => {
nock('https://graph.microsoft.com')
.post('/beta/teams/1111-2222-3333/channels/42:aaabbbccc.tacv2/messages', {
body: { content: 'new sale', contentType: 'html' },
})
.reply(200, {
'@odata.context':
"https://graph.microsoft.com/beta/$metadata#teams('1111-2222-3333')/channels('threadId')/messages/$entity",
id: '1698324478896',
replyToId: null,
etag: '1698324478896',
messageType: 'message',
createdDateTime: '2023-10-26T12:47:58.896Z',
lastModifiedDateTime: '2023-10-26T12:47:58.896Z',
lastEditedDateTime: null,
deletedDateTime: null,
subject: null,
summary: null,
chatId: null,
importance: 'normal',
locale: 'en-us',
webUrl:
'https://teams.microsoft.com/l/message/threadId/1698324478896?groupId=1111-2222-3333&tenantId=tenantId-111-222-333&createdTime=1698324478896&parentMessageId=1698324478896',
onBehalfOf: null,
policyViolation: null,
eventDetail: null,
from: {
application: null,
device: null,
user: {
'@odata.type': '#microsoft.graph.teamworkUserIdentity',
id: '11111-2222-3333',
displayName: 'My Name',
userIdentityType: 'aadUser',
},
},
body: {
contentType: 'html',
content: 'new sale',
},
channelIdentity: {
teamId: '1111-2222-3333',
channelId: '42:aaabbbccc.tacv2',
},
attachments: [],
mentions: [],
reactions: [],
});
new NodeTestHarness().setupTests({
credentials,
workflowFiles: ['create.workflow.json'],
});
});
@@ -0,0 +1,145 @@
{
"name": "My workflow 35",
"nodes": [
{
"parameters": {},
"id": "6666-9999-77777",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
880,
380
]
},
{
"parameters": {
"resource": "channelMessage",
"teamId": {
"__rl": true,
"value": "1111-2222-3333",
"mode": "list",
"cachedResultName": "U.S. Sales"
},
"channelId": {
"__rl": true,
"value": "42:aaabbbccc.tacv2",
"mode": "list",
"cachedResultName": "Sales West",
"cachedResultUrl": "https://teams.microsoft.com/l/channel/threadId/Sales%20West?groupId=1111-2222-3333&tenantId=tenantId-111-222-333&allowXTenantAccess=False"
},
"contentType": "html",
"message": "new sale",
"options": {
"includeLinkToWorkflow": false
}
},
"id": "6666-5555-77777",
"name": "Microsoft Teams",
"type": "n8n-nodes-base.microsoftTeams",
"typeVersion": 2,
"position": [
1100,
380
],
"credentials": {
"microsoftTeamsOAuth2Api": {
"id": "6isd5ytvA0qV78eK",
"name": "Microsoft Teams account"
}
}
},
{
"parameters": {},
"id": "9d1a2e59-c71c-486c-b3ac-dec6adbc26b3",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1400,
380
]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"@odata.context": "https://graph.microsoft.com/beta/$metadata#teams('1111-2222-3333')/channels('threadId')/messages/$entity",
"id": "1698324478896",
"replyToId": null,
"etag": "1698324478896",
"messageType": "message",
"createdDateTime": "2023-10-26T12:47:58.896Z",
"lastModifiedDateTime": "2023-10-26T12:47:58.896Z",
"lastEditedDateTime": null,
"deletedDateTime": null,
"subject": null,
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/threadId/1698324478896?groupId=1111-2222-3333&tenantId=tenantId-111-222-333&createdTime=1698324478896&parentMessageId=1698324478896",
"onBehalfOf": null,
"policyViolation": null,
"eventDetail": null,
"from": {
"application": null,
"device": null,
"user": {
"@odata.type": "#microsoft.graph.teamworkUserIdentity",
"id": "11111-2222-3333",
"displayName": "My Name",
"userIdentityType": "aadUser"
}
},
"body": {
"contentType": "html",
"content": "new sale"
},
"channelIdentity": {
"teamId": "1111-2222-3333",
"channelId": "42:aaabbbccc.tacv2"
},
"attachments": [],
"mentions": [],
"reactions": []
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Microsoft Teams",
"type": "main",
"index": 0
}
]
]
},
"Microsoft Teams": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "30cec397-a737-41b8-8da2-dff4d293ce70",
"id": "i3NYGF0LXV4qDFV9",
"meta": {
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
},
"tags": []
}
@@ -0,0 +1,71 @@
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
import nock from 'nock';
import { credentials } from '../../../credentials';
describe('Test MicrosoftTeamsV2, channelMessage => getAll', () => {
nock('https://graph.microsoft.com')
.get('/beta/teams/1111-2222-3333/channels/42:aaabbbccc.tacv2/messages')
.reply(200, {
value: [
{
id: '1698130964682',
replyToId: null,
etag: '1698130964682',
messageType: 'message',
createdDateTime: '2023-10-24T07:02:44.682Z',
lastModifiedDateTime: '2023-10-24T07:02:44.682Z',
lastEditedDateTime: null,
deletedDateTime: null,
subject: '',
summary: null,
chatId: null,
importance: 'normal',
locale: 'en-us',
webUrl:
'https://teams.microsoft.com/l/message/threadId/1698130964682?groupId=1111-2222-3333&tenantId=tenantId-111-222-333&createdTime=1698130964682&parentMessageId=1698130964682',
onBehalfOf: null,
policyViolation: null,
eventDetail: null,
from: {
application: null,
device: null,
user: {
'@odata.type': '#microsoft.graph.teamworkUserIdentity',
id: '11111-2222-3333',
displayName: 'My Name',
userIdentityType: 'aadUser',
tenantId: 'tenantId-111-222-333',
},
},
body: {
contentType: 'html',
content:
'<div>I added a tab at the top of this channel. Check it out!</div><attachment id="tab::f22a0494-6f7c-4512-85c5-e4ce72ce142a"></attachment>',
},
channelIdentity: {
teamId: '1111-2222-3333',
channelId: '42:aaabbbccc.tacv2',
},
attachments: [
{
id: 'tab::f22a0494-6f7c-4512-85c5-e4ce72ce142a',
contentType: 'tabReference',
contentUrl: null,
content: null,
name: 'Tasks',
thumbnailUrl: null,
teamsAppId: null,
},
],
mentions: [],
reactions: [],
},
],
});
new NodeTestHarness().setupTests({
credentials,
workflowFiles: ['getAll.workflow.json'],
});
});
@@ -0,0 +1,152 @@
{
"name": "My workflow 35",
"nodes": [
{
"parameters": {},
"id": "6666-9999-77777",
"name": "When clicking \"Execute Workflow\"",
"type": "n8n-nodes-base.manualTrigger",
"typeVersion": 1,
"position": [
880,
380
]
},
{
"parameters": {
"resource": "channelMessage",
"operation": "getAll",
"teamId": {
"__rl": true,
"value": "1111-2222-3333",
"mode": "list",
"cachedResultName": "U.S. Sales"
},
"channelId": {
"__rl": true,
"value": "42:aaabbbccc.tacv2",
"mode": "list",
"cachedResultName": "Sales West",
"cachedResultUrl": "https://teams.microsoft.com/l/channel/threadId/Sales%20West?groupId=1111-2222-3333&tenantId=tenantId-111-222-333&allowXTenantAccess=False"
},
"returnAll": true
},
"id": "6666-5555-77777",
"name": "Microsoft Teams",
"type": "n8n-nodes-base.microsoftTeams",
"typeVersion": 2,
"position": [
1100,
380
],
"credentials": {
"microsoftTeamsOAuth2Api": {
"id": "6isd5ytvA0qV78eK",
"name": "Microsoft Teams account"
}
}
},
{
"parameters": {},
"id": "9d1a2e59-c71c-486c-b3ac-dec6adbc26b3",
"name": "No Operation, do nothing",
"type": "n8n-nodes-base.noOp",
"typeVersion": 1,
"position": [
1400,
380
]
}
],
"pinData": {
"No Operation, do nothing": [
{
"json": {
"id": "1698130964682",
"replyToId": null,
"etag": "1698130964682",
"messageType": "message",
"createdDateTime": "2023-10-24T07:02:44.682Z",
"lastModifiedDateTime": "2023-10-24T07:02:44.682Z",
"lastEditedDateTime": null,
"deletedDateTime": null,
"subject": "",
"summary": null,
"chatId": null,
"importance": "normal",
"locale": "en-us",
"webUrl": "https://teams.microsoft.com/l/message/threadId/1698130964682?groupId=1111-2222-3333&tenantId=tenantId-111-222-333&createdTime=1698130964682&parentMessageId=1698130964682",
"onBehalfOf": null,
"policyViolation": null,
"eventDetail": null,
"from": {
"application": null,
"device": null,
"user": {
"@odata.type": "#microsoft.graph.teamworkUserIdentity",
"id": "11111-2222-3333",
"displayName": "My Name",
"userIdentityType": "aadUser",
"tenantId": "tenantId-111-222-333"
}
},
"body": {
"contentType": "html",
"content": "<div>I added a tab at the top of this channel. Check it out!</div><attachment id=\"tab::f22a0494-6f7c-4512-85c5-e4ce72ce142a\"></attachment>"
},
"channelIdentity": {
"teamId": "1111-2222-3333",
"channelId": "42:aaabbbccc.tacv2"
},
"attachments": [
{
"id": "tab::f22a0494-6f7c-4512-85c5-e4ce72ce142a",
"contentType": "tabReference",
"contentUrl": null,
"content": null,
"name": "Tasks",
"thumbnailUrl": null,
"teamsAppId": null
}
],
"mentions": [],
"reactions": []
}
}
]
},
"connections": {
"When clicking \"Execute Workflow\"": {
"main": [
[
{
"node": "Microsoft Teams",
"type": "main",
"index": 0
}
]
]
},
"Microsoft Teams": {
"main": [
[
{
"node": "No Operation, do nothing",
"type": "main",
"index": 0
}
]
]
}
},
"active": false,
"settings": {
"executionOrder": "v1"
},
"versionId": "d89de79a-1819-4d29-b781-a1f3f00b4a2e",
"id": "i3NYGF0LXV4qDFV9",
"meta": {
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
},
"tags": []
}