Skip to content

Commit 6a1f9f3

Browse files
committed
test: Fix e2e by not using an external service which may can be down
1 parent 49a1daa commit 6a1f9f3

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed
Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,28 @@
11
{
2-
"name": "Multiple trigger node rerun",
2+
"name": "Multiple_trigger_node_rerun",
33
"nodes": [
44
{
55
"parameters": {},
6-
"id": "5ae8991f-08a2-4b27-b61c-85e3b8a83693",
6+
"id": "c232c1d4-3861-49ad-b246-d03b3d5c76fc",
77
"name": "When clicking \"Test workflow\"",
88
"type": "n8n-nodes-base.manualTrigger",
99
"typeVersion": 1,
1010
"position": [
11-
460,
12-
460
11+
1060,
12+
320
1313
]
1414
},
1515
{
1616
"parameters": {
17-
"url": "https://random-data-api.com/api/v2/users?size=5",
18-
"options": {}
17+
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.first_name_reversed = item.json = {\n name: item.json.name,\n firstnNameReversed: item.json.name_BUG.split(\"\").reverse().join(\"\")\n };\n}\n\nreturn $input.all();"
1918
},
20-
"id": "22511d75-ab54-49e1-b8af-08b8b3372373",
21-
"name": "fetch 5 random users",
22-
"type": "n8n-nodes-base.httpRequest",
23-
"typeVersion": 4.1,
24-
"position": [
25-
680,
26-
460
27-
]
28-
},
29-
{
30-
"parameters": {
31-
"jsCode": "// Loop over input items and add a new field called 'myNewField' to the JSON of each one\nfor (const item of $input.all()) {\n item.json.first_name_reversed = item.json = {\n firstName: item.json.first_name,\n firstnNameReversed: item.json.first_name_BUG.split(\"\").reverse().join(\"\")\n };\n}\n\nreturn $input.all();"
32-
},
33-
"id": "4b66b15a-1685-46c1-a5e3-ebf8cdb11d21",
19+
"id": "23b22a8c-fec9-4a4a-bc6a-c7085e6201ed",
3420
"name": "do something with them",
3521
"type": "n8n-nodes-base.code",
3622
"typeVersion": 2,
3723
"position": [
38-
900,
39-
460
24+
1500,
25+
320
4026
]
4127
},
4228
{
@@ -50,17 +36,36 @@
5036
]
5137
}
5238
},
53-
"id": "d763fc3b-6c4a-4d39-8857-ff84f7b6dc83",
39+
"id": "8e83006a-efdc-4f82-b5ee-2d7e69dc279a",
5440
"name": "Schedule Trigger",
5541
"type": "n8n-nodes-base.scheduleTrigger",
5642
"typeVersion": 1.1,
5743
"position": [
58-
460,
59-
660
44+
1060,
45+
520
46+
]
47+
},
48+
{
49+
"parameters": {
50+
"operation": "getAllPeople",
51+
"returnAll": true
52+
},
53+
"id": "2187b7e4-44d4-4a88-a5e9-ae6e71177f09",
54+
"name": "fetch 5 random users",
55+
"type": "n8n-nodes-base.n8nTrainingCustomerDatastore",
56+
"typeVersion": 1,
57+
"position": [
58+
1300,
59+
320
6060
]
6161
}
6262
],
6363
"pinData": {
64+
"When clicking \"Test workflow\"": [
65+
{
66+
"json": {}
67+
}
68+
],
6469
"Schedule Trigger": [
6570
{
6671
"json": {
@@ -77,11 +82,6 @@
7782
"Timezone": "CET +01:00"
7883
}
7984
}
80-
],
81-
"When clicking \"Test workflow\"": [
82-
{
83-
"json": {}
84-
}
8585
]
8686
},
8787
"connections": {
@@ -96,22 +96,22 @@
9696
]
9797
]
9898
},
99-
"fetch 5 random users": {
99+
"Schedule Trigger": {
100100
"main": [
101101
[
102102
{
103-
"node": "do something with them",
103+
"node": "fetch 5 random users",
104104
"type": "main",
105105
"index": 0
106106
}
107107
]
108108
]
109109
},
110-
"Schedule Trigger": {
110+
"fetch 5 random users": {
111111
"main": [
112112
[
113113
{
114-
"node": "fetch 5 random users",
114+
"node": "do something with them",
115115
"type": "main",
116116
"index": 0
117117
}
@@ -123,11 +123,11 @@
123123
"settings": {
124124
"executionOrder": "v1"
125125
},
126-
"versionId": "b9a6c3b0-15cd-4359-a92e-12a691a36b7b",
126+
"versionId": "3dbd3967-2546-4333-bc04-e966e80152a5",
127127
"meta": {
128128
"templateCredsSetupCompleted": true,
129129
"instanceId": "8a47b83b4479b11330fdf21ccc96d4a8117035a968612e452b4c87bfd09c16c7"
130130
},
131-
"id": "PymcwIrbqgNh3O0K",
131+
"id": "FicoGxPYIgIqGKxe",
132132
"tags": []
133-
}
133+
}

0 commit comments

Comments
 (0)