From 5872280d539648ae3baac05471ebb426fd26c4bf Mon Sep 17 00:00:00 2001 From: MedAliMarz Date: Mon, 19 Jul 2021 11:00:25 +0200 Subject: [PATCH] Add test workflow for Baserow node --- snapshots/232-snapshot.json | 131 +++++++++++++++++++++++++ workflows/232.json | 187 ++++++++++++++++++++++++++++++++++++ 2 files changed, 318 insertions(+) create mode 100644 snapshots/232-snapshot.json create mode 100644 workflows/232.json diff --git a/snapshots/232-snapshot.json b/snapshots/232-snapshot.json new file mode 100644 index 0000000..ca5e3a6 --- /dev/null +++ b/snapshots/232-snapshot.json @@ -0,0 +1,131 @@ +{ + "data": { + "startData": {}, + "resultData": { + "runData": { + "Start": [ + { + "startTime": 1626685138946, + "executionTime": 1, + "data": { + "main": [ + [ + { + "json": {} + } + ] + ] + } + } + ], + "Baserow": [ + { + "startTime": 1626685138948, + "executionTime": 1288, + "data": { + "main": [ + [ + { + "json": { + "id": 34, + "order": "4.00000000000000000000", + "Name": "Test1626685139800", + "Active": false + } + } + ] + ] + } + } + ], + "Baserow1": [ + { + "startTime": 1626685140237, + "executionTime": 1225, + "data": { + "main": [ + [ + { + "json": { + "id": 34, + "order": "4.00000000000000000000", + "Name": "Test1626685139800", + "Active": false + } + } + ] + ] + } + } + ], + "Baserow2": [ + { + "startTime": 1626685141463, + "executionTime": 1226, + "data": { + "main": [ + [ + { + "json": { + "id": 25, + "order": "1.00000000000000000000", + "Name": "testing", + "Active": true + } + } + ] + ] + } + } + ], + "Baserow3": [ + { + "startTime": 1626685142689, + "executionTime": 1230, + "data": { + "main": [ + [ + { + "json": { + "id": 34, + "order": "4.00000000000000000000", + "Name": "UpdatedTest1626685139800", + "Active": true + } + } + ] + ] + } + } + ], + "Baserow4": [ + { + "startTime": 1626685143919, + "executionTime": 1238, + "data": { + "main": [ + [ + { + "json": { + "success": true + } + } + ] + ] + } + } + ] + }, + "lastNodeExecuted": "Baserow4" + }, + "executionData": { + "contextData": {}, + "nodeExecutionStack": [], + "waitingExecution": {} + } + }, + "mode": "cli", + "startedAt": "2021-07-19T08:58:58.944Z", + "stoppedAt": "2021-07-19T08:59:05.157Z", + "finished": true +} \ No newline at end of file diff --git a/workflows/232.json b/workflows/232.json new file mode 100644 index 0000000..b0a5cc5 --- /dev/null +++ b/workflows/232.json @@ -0,0 +1,187 @@ +{ + "id": 232, + "name": "Baserow:Row:create get getAll update delete", + "active": false, + "nodes": [ + { + "parameters": {}, + "name": "Start", + "type": "n8n-nodes-base.start", + "typeVersion": 1, + "position": [ + 250, + 300 + ] + }, + { + "parameters": { + "operation": "create", + "databaseId": 12699, + "tableId": 24794, + "fieldsUi": { + "fieldValues": [ + { + "fieldId": 130595, + "fieldValue": "=Test{{Date.now()}}" + } + ] + } + }, + "name": "Baserow", + "type": "n8n-nodes-base.baserow", + "typeVersion": 1, + "position": [ + 600, + 300 + ], + "credentials": { + "baserowApi": "Baserow API creds" + } + }, + { + "parameters": { + "operation": "get", + "databaseId": 12699, + "tableId": 24794, + "rowId": "={{$node[\"Baserow\"].json[\"id\"]}}" + }, + "name": "Baserow1", + "type": "n8n-nodes-base.baserow", + "typeVersion": 1, + "position": [ + 800, + 300 + ], + "credentials": { + "baserowApi": "Baserow API creds" + } + }, + { + "parameters": { + "databaseId": 12699, + "tableId": 24794, + "limit": 1, + "additionalOptions": {} + }, + "name": "Baserow2", + "type": "n8n-nodes-base.baserow", + "typeVersion": 1, + "position": [ + 1000, + 300 + ], + "credentials": { + "baserowApi": "Baserow API creds" + } + }, + { + "parameters": { + "operation": "update", + "databaseId": 12699, + "tableId": 24794, + "rowId": "={{$node[\"Baserow\"].json[\"id\"]}}", + "fieldsUi": { + "fieldValues": [ + { + "fieldId": 130595, + "fieldValue": "=Updated{{$node[\"Baserow\"].json[\"Name\"]}}" + }, + { + "fieldId": 130597, + "fieldValue": "true" + } + ] + } + }, + "name": "Baserow3", + "type": "n8n-nodes-base.baserow", + "typeVersion": 1, + "position": [ + 1200, + 300 + ], + "credentials": { + "baserowApi": "Baserow API creds" + } + }, + { + "parameters": { + "operation": "delete", + "databaseId": 12699, + "tableId": 24794, + "rowId": "={{$node[\"Baserow\"].json[\"id\"]}}" + }, + "name": "Baserow4", + "type": "n8n-nodes-base.baserow", + "typeVersion": 1, + "position": [ + 1400, + 300 + ], + "credentials": { + "baserowApi": "Baserow API creds" + } + } + ], + "connections": { + "Baserow": { + "main": [ + [ + { + "node": "Baserow1", + "type": "main", + "index": 0 + } + ] + ] + }, + "Start": { + "main": [ + [ + { + "node": "Baserow", + "type": "main", + "index": 0 + } + ] + ] + }, + "Baserow1": { + "main": [ + [ + { + "node": "Baserow2", + "type": "main", + "index": 0 + } + ] + ] + }, + "Baserow2": { + "main": [ + [ + { + "node": "Baserow3", + "type": "main", + "index": 0 + } + ] + ] + }, + "Baserow3": { + "main": [ + [ + { + "node": "Baserow4", + "type": "main", + "index": 0 + } + ] + ] + } + }, + "createdAt": "2021-07-19T08:27:14.668Z", + "updatedAt": "2021-07-19T08:57:46.860Z", + "settings": {}, + "staticData": null +} \ No newline at end of file