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
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:
@@ -0,0 +1,35 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
describe('Test MicrosoftOutlookV2, calendar => create', () => {
|
||||
nock('https://graph.microsoft.com/v1.0/me')
|
||||
.post(
|
||||
'/calendarGroups/AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRu_AAA=/calendars',
|
||||
{ color: 'lightOrange', name: 'New Calendar' },
|
||||
)
|
||||
.reply(200, {
|
||||
'@odata.context':
|
||||
"https://graph.microsoft.com/v1.0/$metadata#users('b834447b-6848-4af9-8390-d2259ce46b74')/calendarGroups('AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRu_AAA%3D')/calendars/$entity",
|
||||
id: 'AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAAFXBBZ_AAA=',
|
||||
name: 'New Calendar',
|
||||
color: 'lightOrange',
|
||||
hexColor: '#fcab73',
|
||||
isDefaultCalendar: false,
|
||||
changeKey: 'WX+A3vy5K0qqTyPHso1JgAABVtwWTA==',
|
||||
canShare: true,
|
||||
canViewPrivateItems: true,
|
||||
canEdit: true,
|
||||
allowedOnlineMeetingProviders: ['teamsForBusiness'],
|
||||
defaultOnlineMeetingProvider: 'teamsForBusiness',
|
||||
isTallyingResponses: false,
|
||||
isRemovable: true,
|
||||
owner: {
|
||||
name: 'User Name',
|
||||
address: 'test@mail.com',
|
||||
},
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
workflowFiles: ['create.workflow.json'],
|
||||
});
|
||||
});
|
||||
+92
@@ -0,0 +1,92 @@
|
||||
{
|
||||
"name": "My workflow 21",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "e524f588-b6a3-4849-8777-b32a8a755ae5",
|
||||
"name": "When clicking \"Execute Workflow\"",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
820,
|
||||
360
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "calendar",
|
||||
"operation": "create",
|
||||
"name": "New Calendar",
|
||||
"additionalFields": {
|
||||
"calendarGroup": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRu_AAA=",
|
||||
"color": "lightOrange"
|
||||
}
|
||||
},
|
||||
"id": "baff6798-0304-4255-bdb0-dd3f2659373b",
|
||||
"name": "Microsoft Outlook",
|
||||
"type": "n8n-nodes-base.microsoftOutlook",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1040,
|
||||
360
|
||||
],
|
||||
"credentials": {
|
||||
"microsoftOutlookOAuth2Api": {
|
||||
"id": "iXJCki7i5Vz0bdks",
|
||||
"name": "Microsoft Outlook account 2"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"Microsoft Outlook": [
|
||||
{
|
||||
"json": {
|
||||
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('b834447b-6848-4af9-8390-d2259ce46b74')/calendarGroups('AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRu_AAA%3D')/calendars/$entity",
|
||||
"id": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAAFXBBZ_AAA=",
|
||||
"name": "New Calendar",
|
||||
"color": "lightOrange",
|
||||
"hexColor": "#fcab73",
|
||||
"isDefaultCalendar": false,
|
||||
"changeKey": "WX+A3vy5K0qqTyPHso1JgAABVtwWTA==",
|
||||
"canShare": true,
|
||||
"canViewPrivateItems": true,
|
||||
"canEdit": true,
|
||||
"allowedOnlineMeetingProviders": [
|
||||
"teamsForBusiness"
|
||||
],
|
||||
"defaultOnlineMeetingProvider": "teamsForBusiness",
|
||||
"isTallyingResponses": false,
|
||||
"isRemovable": true,
|
||||
"owner": {
|
||||
"name": "User Name",
|
||||
"address": "test@mail.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking \"Execute Workflow\"": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft Outlook",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "074cdbef-4193-45b8-970a-9f55b8a0999b",
|
||||
"id": "1CYHzBXQw1nfPGtB",
|
||||
"meta": {
|
||||
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
describe('Test MicrosoftOutlookV2, calendar => delete', () => {
|
||||
nock('https://graph.microsoft.com/v1.0/me')
|
||||
.delete(
|
||||
'/calendars/AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvIAAA=',
|
||||
)
|
||||
.reply(200);
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
workflowFiles: ['delete.workflow.json'],
|
||||
});
|
||||
});
|
||||
+74
@@ -0,0 +1,74 @@
|
||||
{
|
||||
"name": "My workflow 21",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "e524f588-b6a3-4849-8777-b32a8a755ae5",
|
||||
"name": "When clicking \"Execute Workflow\"",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
820,
|
||||
360
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "calendar",
|
||||
"operation": "delete",
|
||||
"calendarId": {
|
||||
"__rl": true,
|
||||
"value": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvIAAA=",
|
||||
"mode": "list",
|
||||
"cachedResultName": "Foo"
|
||||
}
|
||||
},
|
||||
"id": "baff6798-0304-4255-bdb0-dd3f2659373b",
|
||||
"name": "Microsoft Outlook",
|
||||
"type": "n8n-nodes-base.microsoftOutlook",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1040,
|
||||
360
|
||||
],
|
||||
"credentials": {
|
||||
"microsoftOutlookOAuth2Api": {
|
||||
"id": "iXJCki7i5Vz0bdks",
|
||||
"name": "Microsoft Outlook account 2"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"Microsoft Outlook": [
|
||||
{
|
||||
"json": {
|
||||
"success": true
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking \"Execute Workflow\"": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft Outlook",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "888e5578-c726-4a84-9658-321ba04fd0c7",
|
||||
"id": "1CYHzBXQw1nfPGtB",
|
||||
"meta": {
|
||||
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
describe('Test MicrosoftOutlookV2, calendar => get', () => {
|
||||
nock('https://graph.microsoft.com/v1.0/me')
|
||||
.get(
|
||||
'/calendars/AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=',
|
||||
)
|
||||
.reply(200, {
|
||||
'@odata.context':
|
||||
"https://graph.microsoft.com/v1.0/$metadata#users('b834447b-6848-4af9-8390-d2259ce46b74')/calendars/$entity",
|
||||
id: 'AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=',
|
||||
name: 'Foo Calendar',
|
||||
color: 'lightGreen',
|
||||
hexColor: '#87d28e',
|
||||
isDefaultCalendar: false,
|
||||
changeKey: 'WX+A3vy5K0qqTyPHso1JgAAAi67hiw==',
|
||||
canShare: true,
|
||||
canViewPrivateItems: true,
|
||||
canEdit: true,
|
||||
allowedOnlineMeetingProviders: ['teamsForBusiness'],
|
||||
defaultOnlineMeetingProvider: 'teamsForBusiness',
|
||||
isTallyingResponses: false,
|
||||
isRemovable: true,
|
||||
owner: {
|
||||
name: 'User Name',
|
||||
address: 'test@mail.com',
|
||||
},
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
workflowFiles: ['get.workflow.json'],
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"name": "My workflow 21",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "e524f588-b6a3-4849-8777-b32a8a755ae5",
|
||||
"name": "When clicking \"Execute Workflow\"",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
820,
|
||||
360
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "calendar",
|
||||
"operation": "get",
|
||||
"calendarId": {
|
||||
"__rl": true,
|
||||
"value": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=",
|
||||
"mode": "list",
|
||||
"cachedResultName": "Foo Calendar"
|
||||
}
|
||||
},
|
||||
"id": "baff6798-0304-4255-bdb0-dd3f2659373b",
|
||||
"name": "Microsoft Outlook",
|
||||
"type": "n8n-nodes-base.microsoftOutlook",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1040,
|
||||
360
|
||||
],
|
||||
"credentials": {
|
||||
"microsoftOutlookOAuth2Api": {
|
||||
"id": "iXJCki7i5Vz0bdks",
|
||||
"name": "Microsoft Outlook account 2"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"Microsoft Outlook": [
|
||||
{
|
||||
"json": {
|
||||
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('b834447b-6848-4af9-8390-d2259ce46b74')/calendars/$entity",
|
||||
"id": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=",
|
||||
"name": "Foo Calendar",
|
||||
"color": "lightGreen",
|
||||
"hexColor": "#87d28e",
|
||||
"isDefaultCalendar": false,
|
||||
"changeKey": "WX+A3vy5K0qqTyPHso1JgAAAi67hiw==",
|
||||
"canShare": true,
|
||||
"canViewPrivateItems": true,
|
||||
"canEdit": true,
|
||||
"allowedOnlineMeetingProviders": [
|
||||
"teamsForBusiness"
|
||||
],
|
||||
"defaultOnlineMeetingProvider": "teamsForBusiness",
|
||||
"isTallyingResponses": false,
|
||||
"isRemovable": true,
|
||||
"owner": {
|
||||
"name": "User Name",
|
||||
"address": "test@mail.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking \"Execute Workflow\"": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft Outlook",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "33e1fc57-ac36-453b-b01e-d79784b4a4bb",
|
||||
"id": "1CYHzBXQw1nfPGtB",
|
||||
"meta": {
|
||||
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
describe('Test MicrosoftOutlookV2, calendar => getAll', () => {
|
||||
nock('https://graph.microsoft.com/v1.0/me')
|
||||
.get('/calendars?%24filter=canEdit%20eq%20true&%24top=2')
|
||||
.reply(200, {
|
||||
value: [
|
||||
{
|
||||
id: 'AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAAAJ9-JDAAA=',
|
||||
name: 'Calendar',
|
||||
color: 'auto',
|
||||
hexColor: '',
|
||||
isDefaultCalendar: true,
|
||||
changeKey: 'WX+A3vy5K0qqTyPHso1JgAAACfdHfw==',
|
||||
canShare: true,
|
||||
canViewPrivateItems: true,
|
||||
canEdit: true,
|
||||
allowedOnlineMeetingProviders: ['teamsForBusiness'],
|
||||
defaultOnlineMeetingProvider: 'teamsForBusiness',
|
||||
isTallyingResponses: true,
|
||||
isRemovable: false,
|
||||
owner: {
|
||||
name: 'User Name',
|
||||
address: 'test@mail.com',
|
||||
},
|
||||
},
|
||||
{
|
||||
id: 'AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvBAAA=',
|
||||
name: 'Third calendar',
|
||||
color: 'lightYellow',
|
||||
hexColor: '#fde300',
|
||||
isDefaultCalendar: false,
|
||||
changeKey: 'WX+A3vy5K0qqTyPHso1JgAAAi67hIw==',
|
||||
canShare: true,
|
||||
canViewPrivateItems: true,
|
||||
canEdit: true,
|
||||
allowedOnlineMeetingProviders: ['teamsForBusiness'],
|
||||
defaultOnlineMeetingProvider: 'teamsForBusiness',
|
||||
isTallyingResponses: false,
|
||||
isRemovable: true,
|
||||
owner: {
|
||||
name: 'User Name',
|
||||
address: 'test@mail.com',
|
||||
},
|
||||
},
|
||||
],
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
workflowFiles: ['getAll.workflow.json'],
|
||||
});
|
||||
});
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
{
|
||||
"name": "My workflow 21",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "e524f588-b6a3-4849-8777-b32a8a755ae5",
|
||||
"name": "When clicking \"Execute Workflow\"",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
820,
|
||||
360
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "calendar",
|
||||
"limit": 2,
|
||||
"filters": {
|
||||
"custom": "canEdit eq true"
|
||||
}
|
||||
},
|
||||
"id": "baff6798-0304-4255-bdb0-dd3f2659373b",
|
||||
"name": "Microsoft Outlook",
|
||||
"type": "n8n-nodes-base.microsoftOutlook",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1040,
|
||||
360
|
||||
],
|
||||
"credentials": {
|
||||
"microsoftOutlookOAuth2Api": {
|
||||
"id": "iXJCki7i5Vz0bdks",
|
||||
"name": "Microsoft Outlook account 2"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"Microsoft Outlook": [
|
||||
{
|
||||
"json": {
|
||||
"id": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAAAJ9-JDAAA=",
|
||||
"name": "Calendar",
|
||||
"color": "auto",
|
||||
"hexColor": "",
|
||||
"isDefaultCalendar": true,
|
||||
"changeKey": "WX+A3vy5K0qqTyPHso1JgAAACfdHfw==",
|
||||
"canShare": true,
|
||||
"canViewPrivateItems": true,
|
||||
"canEdit": true,
|
||||
"allowedOnlineMeetingProviders": [
|
||||
"teamsForBusiness"
|
||||
],
|
||||
"defaultOnlineMeetingProvider": "teamsForBusiness",
|
||||
"isTallyingResponses": true,
|
||||
"isRemovable": false,
|
||||
"owner": {
|
||||
"name": "User Name",
|
||||
"address": "test@mail.com"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"json": {
|
||||
"id": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvBAAA=",
|
||||
"name": "Third calendar",
|
||||
"color": "lightYellow",
|
||||
"hexColor": "#fde300",
|
||||
"isDefaultCalendar": false,
|
||||
"changeKey": "WX+A3vy5K0qqTyPHso1JgAAAi67hIw==",
|
||||
"canShare": true,
|
||||
"canViewPrivateItems": true,
|
||||
"canEdit": true,
|
||||
"allowedOnlineMeetingProviders": [
|
||||
"teamsForBusiness"
|
||||
],
|
||||
"defaultOnlineMeetingProvider": "teamsForBusiness",
|
||||
"isTallyingResponses": false,
|
||||
"isRemovable": true,
|
||||
"owner": {
|
||||
"name": "User Name",
|
||||
"address": "test@mail.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking \"Execute Workflow\"": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft Outlook",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "8f4e7775-0476-4506-a183-1365265b446a",
|
||||
"id": "1CYHzBXQw1nfPGtB",
|
||||
"meta": {
|
||||
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
import { NodeTestHarness } from '@nodes-testing/node-test-harness';
|
||||
import nock from 'nock';
|
||||
|
||||
describe('Test MicrosoftOutlookV2, calendar => update', () => {
|
||||
nock('https://graph.microsoft.com/v1.0/me')
|
||||
.patch(
|
||||
'/calendars/AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=',
|
||||
{ color: 'lightOrange', isDefaultCalendar: false, name: 'Foo' },
|
||||
)
|
||||
.reply(200, {
|
||||
'@odata.context':
|
||||
"https://graph.microsoft.com/v1.0/$metadata#users('b834447b-6848-4af9-8390-d2259ce46b74')/calendars/$entity",
|
||||
id: 'AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=',
|
||||
name: 'Foo',
|
||||
color: 'lightOrange',
|
||||
hexColor: '#fcab73',
|
||||
isDefaultCalendar: false,
|
||||
changeKey: 'WX+A3vy5K0qqTyPHso1JgAABVtwYKA==',
|
||||
canShare: true,
|
||||
canViewPrivateItems: true,
|
||||
canEdit: true,
|
||||
allowedOnlineMeetingProviders: ['teamsForBusiness'],
|
||||
defaultOnlineMeetingProvider: 'teamsForBusiness',
|
||||
isTallyingResponses: false,
|
||||
isRemovable: true,
|
||||
owner: {
|
||||
name: 'User Name',
|
||||
address: 'test@mail.com',
|
||||
},
|
||||
});
|
||||
|
||||
new NodeTestHarness().setupTests({
|
||||
workflowFiles: ['update.workflow.json'],
|
||||
});
|
||||
});
|
||||
+98
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"name": "My workflow 21",
|
||||
"nodes": [
|
||||
{
|
||||
"parameters": {},
|
||||
"id": "e524f588-b6a3-4849-8777-b32a8a755ae5",
|
||||
"name": "When clicking \"Execute Workflow\"",
|
||||
"type": "n8n-nodes-base.manualTrigger",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
820,
|
||||
360
|
||||
]
|
||||
},
|
||||
{
|
||||
"parameters": {
|
||||
"resource": "calendar",
|
||||
"operation": "update",
|
||||
"calendarId": {
|
||||
"__rl": true,
|
||||
"value": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=",
|
||||
"mode": "list",
|
||||
"cachedResultName": "Foo Calendar"
|
||||
},
|
||||
"updateFields": {
|
||||
"color": "lightOrange",
|
||||
"isDefaultCalendar": false,
|
||||
"name": "Foo"
|
||||
}
|
||||
},
|
||||
"id": "baff6798-0304-4255-bdb0-dd3f2659373b",
|
||||
"name": "Microsoft Outlook",
|
||||
"type": "n8n-nodes-base.microsoftOutlook",
|
||||
"typeVersion": 2,
|
||||
"position": [
|
||||
1040,
|
||||
360
|
||||
],
|
||||
"credentials": {
|
||||
"microsoftOutlookOAuth2Api": {
|
||||
"id": "iXJCki7i5Vz0bdks",
|
||||
"name": "Microsoft Outlook account 2"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"pinData": {
|
||||
"Microsoft Outlook": [
|
||||
{
|
||||
"json": {
|
||||
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#users('b834447b-6848-4af9-8390-d2259ce46b74')/calendars/$entity",
|
||||
"id": "AAAXXXYYYnnnT6b9RLP0CKzHiJrRBwBZf4De-LkrSqpPI8eyjUmAAAAAAAEGAABZf4De-LkrSqpPI8eyjUmAAACLtRvGAAA=",
|
||||
"name": "Foo",
|
||||
"color": "lightOrange",
|
||||
"hexColor": "#fcab73",
|
||||
"isDefaultCalendar": false,
|
||||
"changeKey": "WX+A3vy5K0qqTyPHso1JgAABVtwYKA==",
|
||||
"canShare": true,
|
||||
"canViewPrivateItems": true,
|
||||
"canEdit": true,
|
||||
"allowedOnlineMeetingProviders": [
|
||||
"teamsForBusiness"
|
||||
],
|
||||
"defaultOnlineMeetingProvider": "teamsForBusiness",
|
||||
"isTallyingResponses": false,
|
||||
"isRemovable": true,
|
||||
"owner": {
|
||||
"name": "User Name",
|
||||
"address": "test@mail.com"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"connections": {
|
||||
"When clicking \"Execute Workflow\"": {
|
||||
"main": [
|
||||
[
|
||||
{
|
||||
"node": "Microsoft Outlook",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
]
|
||||
}
|
||||
},
|
||||
"active": false,
|
||||
"settings": {
|
||||
"executionOrder": "v1"
|
||||
},
|
||||
"versionId": "f8e68e5f-8c26-4c1f-b11b-8b4e4aeaa61f",
|
||||
"id": "1CYHzBXQw1nfPGtB",
|
||||
"meta": {
|
||||
"instanceId": "b888bd11cd1ddbb95450babf3e199556799d999b896f650de768b8370ee50363"
|
||||
},
|
||||
"tags": []
|
||||
}
|
||||
Reference in New Issue
Block a user