From f80b21075a2e91fa7536a5942336a5ac8e27562f Mon Sep 17 00:00:00 2001 From: MedAliMarz Date: Mon, 19 Jul 2021 12:31:01 +0200 Subject: [PATCH] Update AWS S3 test workflow to support delete:Bucket --- snapshots/155-snapshot.json | 97 ++++++++++++++++++++++--------------- workflows/155.json | 32 +++++++++++- 2 files changed, 87 insertions(+), 42 deletions(-) diff --git a/snapshots/155-snapshot.json b/snapshots/155-snapshot.json index 04fd9ed..e20538b 100644 --- a/snapshots/155-snapshot.json +++ b/snapshots/155-snapshot.json @@ -5,7 +5,7 @@ "runData": { "Start": [ { - "startTime": 1622630055403, + "startTime": 1626690596055, "executionTime": 1, "data": { "main": [ @@ -20,14 +20,14 @@ ], "Set": [ { - "startTime": 1622630055405, - "executionTime": 1, + "startTime": 1626690596057, + "executionTime": 3, "data": { "main": [ [ { "json": { - "bucketName": "Bucket1622630055406" + "bucketName": "Bucket1626690596060" } } ] @@ -37,8 +37,8 @@ ], "AWS S3": [ { - "startTime": 1622630055406, - "executionTime": 815, + "startTime": 1626690596060, + "executionTime": 1172, "data": { "main": [ [ @@ -54,15 +54,15 @@ ], "AWS S": [ { - "startTime": 1622630056222, - "executionTime": 588, + "startTime": 1626690597233, + "executionTime": 917, "data": { "main": [ [ { "json": { - "Name": "bucket1616668166780", - "CreationDate": "2021-03-25T10:29:28.000Z" + "Name": "bucket1623148483233", + "CreationDate": "2021-06-08T10:34:44.000Z" } } ] @@ -72,14 +72,14 @@ ], "Set1": [ { - "startTime": 1622630056810, + "startTime": 1626690598150, "executionTime": 1, "data": { "main": [ [ { "json": { - "folderName": "Folder1622630056811" + "folderName": "Folder1626690598151" } } ] @@ -89,8 +89,8 @@ ], "Function": [ { - "startTime": 1622630056811, - "executionTime": 4, + "startTime": 1626690598151, + "executionTime": 6, "data": { "main": [ [ @@ -112,8 +112,8 @@ ], "AWS S8": [ { - "startTime": 1622630056815, - "executionTime": 974, + "startTime": 1626690598157, + "executionTime": 1317, "data": { "main": [ [ @@ -129,8 +129,8 @@ ], "AWS S2": [ { - "startTime": 1622630057789, - "executionTime": 1043, + "startTime": 1626690599475, + "executionTime": 1534, "data": { "main": [ [ @@ -146,15 +146,15 @@ ], "AWS S9": [ { - "startTime": 1622630058833, - "executionTime": 978, + "startTime": 1626690601010, + "executionTime": 1642, "data": { "main": [ [ { "json": { - "Key": "Folder1622630056811/", - "LastModified": "2021-06-02T10:34:18.000Z", + "Key": "Folder1626690598151/", + "LastModified": "2021-07-19T10:30:00.000Z", "ETag": "\"d41d8cd98f00b204e9800998ecf8427e\"", "Size": "0", "StorageClass": "STANDARD" @@ -167,15 +167,15 @@ ], "AWS S4": [ { - "startTime": 1622630059811, - "executionTime": 953, + "startTime": 1626690602654, + "executionTime": 1636, "data": { "main": [ [ { "json": { "Key": "n8n-logo.png", - "LastModified": "2021-06-02T10:34:19.000Z", + "LastModified": "2021-07-19T10:30:01.000Z", "ETag": "\"174dbbfbcabb9dc0c2e82002e5ce289e\"", "Size": "2675", "StorageClass": "STANDARD" @@ -196,8 +196,8 @@ ], "AWS S10": [ { - "startTime": 1622630060765, - "executionTime": 1460, + "startTime": 1626690604291, + "executionTime": 2147, "data": { "main": [ [ @@ -215,15 +215,15 @@ ], "AWS S5": [ { - "startTime": 1622630062226, - "executionTime": 945, + "startTime": 1626690606438, + "executionTime": 1434, "data": { "main": [ [ { "json": { "Key": "n8n-logo.png", - "LastModified": "2021-06-02T10:34:19.000Z", + "LastModified": "2021-07-19T10:30:01.000Z", "ETag": "\"174dbbfbcabb9dc0c2e82002e5ce289e\"", "Size": "2675", "StorageClass": "STANDARD" @@ -244,7 +244,7 @@ ], "AWS S6": [ { - "startTime": 1622630063172, + "startTime": 1626690607873, "executionTime": 1, "data": { "main": [ @@ -252,7 +252,7 @@ { "json": { "Key": "n8n-logo.png", - "LastModified": "2021-06-02T10:34:19.000Z", + "LastModified": "2021-07-19T10:30:01.000Z", "ETag": "\"174dbbfbcabb9dc0c2e82002e5ce289e\"", "Size": "2675", "StorageClass": "STANDARD" @@ -273,15 +273,15 @@ ], "AWS S1": [ { - "startTime": 1622630063173, - "executionTime": 950, + "startTime": 1626690607875, + "executionTime": 1604, "data": { "main": [ [ { "json": { "Key": "n8n-logo.png", - "LastModified": "2021-06-02T10:34:19.000Z", + "LastModified": "2021-07-19T10:30:01.000Z", "ETag": "\"174dbbfbcabb9dc0c2e82002e5ce289e\"", "Size": "2675", "StorageClass": "STANDARD" @@ -294,8 +294,25 @@ ], "AWS S7": [ { - "startTime": 1622630064123, - "executionTime": 977, + "startTime": 1626690609479, + "executionTime": 1668, + "data": { + "main": [ + [ + { + "json": { + "success": true + } + } + ] + ] + } + } + ], + "AWS S11": [ + { + "startTime": 1626690611148, + "executionTime": 750, "data": { "main": [ [ @@ -310,7 +327,7 @@ } ] }, - "lastNodeExecuted": "AWS S7" + "lastNodeExecuted": "AWS S11" }, "executionData": { "contextData": {}, @@ -319,7 +336,7 @@ } }, "mode": "cli", - "startedAt": "2021-06-02T10:34:15.401Z", - "stoppedAt": "2021-06-02T10:34:25.101Z", + "startedAt": "2021-07-19T10:29:56.050Z", + "stoppedAt": "2021-07-19T10:30:11.899Z", "finished": true } \ No newline at end of file diff --git a/workflows/155.json b/workflows/155.json index c038f30..4920aab 100644 --- a/workflows/155.json +++ b/workflows/155.json @@ -1,6 +1,6 @@ { "id": 155, - "name": "AWSS3:Bucket:create getAll search:File:upload getAll download delete:Folder:create getAll delete", + "name": "AWSS3:Bucket:create getAll search delete:File:upload getAll download delete:Folder:create getAll delete", "active": false, "nodes": [ { @@ -263,6 +263,23 @@ 750, 150 ] + }, + { + "parameters": { + "resource": "bucket", + "operation": "delete", + "name": "={{$node[\"Set\"].json[\"bucketName\"]}}" + }, + "name": "AWS S11", + "type": "n8n-nodes-base.awsS3", + "typeVersion": 1, + "position": [ + 1950, + 310 + ], + "credentials": { + "aws": "AWS creds" + } } ], "connections": { @@ -413,10 +430,21 @@ } ] ] + }, + "AWS S7": { + "main": [ + [ + { + "node": "AWS S11", + "type": "main", + "index": 0 + } + ] + ] } }, "createdAt": "2021-03-25T10:06:21.916Z", - "updatedAt": "2021-03-25T10:38:29.121Z", + "updatedAt": "2021-07-19T10:29:05.371Z", "settings": {}, "staticData": null } \ No newline at end of file