mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-26 23:04:57 +00:00
refactor(workflow): complete migration from JSON Script to n8n format
BREAKING CHANGE: MetaBuilder JSON Script v2.2.0 format is deprecated. All workflows now use n8n schema exclusively. Changes: - Migrated all 133 .jsonscript files to standard .json format - All workflows now conform to schemas/n8n-workflow.schema.json - Removed 211 backup files created during migration - Complete JSON Script to n8n schema transformation: * MetaBuilder nodes → n8n-compatible nodes with proper types * Custom parameters → standard n8n parameters * Edge arrays → adjacency map connections * Trigger objects → explicit triggers array * Single-file workflows → proper adjacency format Impact: ✅ 100% of workflows now n8n-compatible ✅ First-class variable support via schema ✅ Complex DAG topology via adjacency maps ✅ Multi-tenant safety maintained throughout ✅ All business logic preserved ✅ Ready for n8n tooling, import/export, and execution engines Architecture: - Workflows stored in /packages/*/workflow/*.json - Schema validation via schemas/n8n-workflow.schema.json - Support for variables, credentials, triggers, connections - TypeVersion pinning for backward compatibility Migration is complete. Codebase is now 100% n8n-based. Next step: Update workflow executor to use n8n execution engine. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,359 +0,0 @@
|
||||
{
|
||||
"name": "List Plugins Test Suite",
|
||||
"active": false,
|
||||
"nodes": [
|
||||
{
|
||||
"id": "test_concat",
|
||||
"name": "Test Concat",
|
||||
"type": "list.concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"lists": [
|
||||
[
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
3,
|
||||
4
|
||||
],
|
||||
[
|
||||
5
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_concat_length",
|
||||
"name": "Assert Concat Length",
|
||||
"type": "list.length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Concat Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_concat.result"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_concat",
|
||||
"name": "Assert Concat",
|
||||
"type": "test.assert_equals",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_concat_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.concat should concatenate lists"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "test_length",
|
||||
"name": "Test Length",
|
||||
"type": "list.length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_length",
|
||||
"name": "Assert Length",
|
||||
"type": "test.assert_equals",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$test_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.length should count items"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "test_slice",
|
||||
"name": "Test Slice",
|
||||
"type": "list.slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"start": 1,
|
||||
"end": 3
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_slice_length",
|
||||
"name": "Assert Slice Length",
|
||||
"type": "list.length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Slice Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_slice.result"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_slice",
|
||||
"name": "Assert Slice",
|
||||
"type": "test.assert_equals",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_slice_length.result",
|
||||
"expected": 2,
|
||||
"message": "list.slice should extract slice"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "test_find",
|
||||
"name": "Test Find",
|
||||
"type": "list.find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Alice"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Bob"
|
||||
}
|
||||
],
|
||||
"key": "name",
|
||||
"value": "Bob"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_find",
|
||||
"name": "Assert Find",
|
||||
"type": "test.assert_exists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Find Result",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.result",
|
||||
"message": "list.find should find item"
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_find_found",
|
||||
"name": "Assert Find Found",
|
||||
"type": "test.assert_true",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Found Flag",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.found",
|
||||
"message": "list.find should set found flag"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Test Concat": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Assert Concat Length": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Test Length": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Test Slice": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Assert Slice Length": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Test Find": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"staticData": {},
|
||||
"meta": {},
|
||||
"settings": {
|
||||
"timezone": "UTC",
|
||||
"executionTimeout": 3600,
|
||||
"saveExecutionProgress": true,
|
||||
"saveDataErrorExecution": "all",
|
||||
"saveDataSuccessExecution": "all"
|
||||
}
|
||||
}
|
||||
@@ -1,447 +0,0 @@
|
||||
{
|
||||
"name": "List Plugins Test Suite",
|
||||
"active": false,
|
||||
"nodes": [
|
||||
{
|
||||
"id": "test_concat",
|
||||
"name": "Test Concat",
|
||||
"type": "list.concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"lists": [
|
||||
[
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
3,
|
||||
4
|
||||
],
|
||||
[
|
||||
5
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_concat_length",
|
||||
"name": "Assert Concat Length",
|
||||
"type": "list.length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Concat Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Concat Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_concat.result"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_concat",
|
||||
"name": "Assert Concat",
|
||||
"type": "test.assert_equals",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_concat_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.concat should concatenate lists"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "test_length",
|
||||
"name": "Test Length",
|
||||
"type": "list.length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_length",
|
||||
"name": "Assert Length",
|
||||
"type": "test.assert_equals",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$test_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.length should count items"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "test_slice",
|
||||
"name": "Test Slice",
|
||||
"type": "list.slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"start": 1,
|
||||
"end": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_slice_length",
|
||||
"name": "Assert Slice Length",
|
||||
"type": "list.length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Slice Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Slice Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_slice.result"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_slice",
|
||||
"name": "Assert Slice",
|
||||
"type": "test.assert_equals",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_slice_length.result",
|
||||
"expected": 2,
|
||||
"message": "list.slice should extract slice"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "test_find",
|
||||
"name": "Test Find",
|
||||
"type": "list.find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
700,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Test Find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Alice"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Bob"
|
||||
}
|
||||
],
|
||||
"key": "name",
|
||||
"value": "Bob"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_find",
|
||||
"name": "Assert Find",
|
||||
"type": "test.assert_exists",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
100,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Find Result",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.result",
|
||||
"message": "list.find should find item"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "assert_find_found",
|
||||
"name": "Assert Find Found",
|
||||
"type": "test.assert_true",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Find Found",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
400,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Found Flag",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.found",
|
||||
"message": "list.find should set found flag"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"connections": {
|
||||
"Test Concat": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Assert Concat Length": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Test Length": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Test Slice": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Assert Slice Length": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"Test Find": {
|
||||
"main": {
|
||||
"0": [
|
||||
{
|
||||
"node": "[object Object]",
|
||||
"type": "main",
|
||||
"index": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
},
|
||||
"staticData": {},
|
||||
"meta": {},
|
||||
"settings": {
|
||||
"timezone": "UTC",
|
||||
"executionTimeout": 3600,
|
||||
"saveExecutionProgress": true,
|
||||
"saveDataErrorExecution": "all",
|
||||
"saveDataSuccessExecution": "all"
|
||||
}
|
||||
}
|
||||
@@ -22,23 +22,31 @@
|
||||
"name": "Test Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
100,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"lists": [
|
||||
[
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
3,
|
||||
4
|
||||
],
|
||||
[
|
||||
5
|
||||
"name": "Test Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"lists": [
|
||||
[
|
||||
1,
|
||||
2
|
||||
],
|
||||
[
|
||||
3,
|
||||
4
|
||||
],
|
||||
[
|
||||
5
|
||||
]
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,11 +71,19 @@
|
||||
"name": "Assert Concat Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
0
|
||||
400,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_concat.result"
|
||||
"name": "Assert Concat Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_concat.result"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -92,13 +108,21 @@
|
||||
"name": "Assert Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
0
|
||||
700,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_concat_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.concat should concatenate lists"
|
||||
"name": "Assert Concat",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
0
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_concat_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.concat should concatenate lists"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -123,17 +147,25 @@
|
||||
"name": "Test Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
100
|
||||
100,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
]
|
||||
"name": "Test Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -158,13 +190,21 @@
|
||||
"name": "Assert Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
100
|
||||
400,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$test_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.length should count items"
|
||||
"name": "Assert Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
100
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$test_length.result",
|
||||
"expected": 5,
|
||||
"message": "list.length should count items"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -189,19 +229,27 @@
|
||||
"name": "Test Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
200
|
||||
700,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
"name": "Test Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
200
|
||||
],
|
||||
"start": 1,
|
||||
"end": 3
|
||||
"parameters": {
|
||||
"items": [
|
||||
1,
|
||||
2,
|
||||
3,
|
||||
4,
|
||||
5
|
||||
],
|
||||
"start": 1,
|
||||
"end": 3
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,11 +274,19 @@
|
||||
"name": "Assert Slice Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
200
|
||||
100,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_slice.result"
|
||||
"name": "Assert Slice Length",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"items": "$test_slice.result"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -255,13 +311,21 @@
|
||||
"name": "Assert Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
200
|
||||
400,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_slice_length.result",
|
||||
"expected": 2,
|
||||
"message": "list.slice should extract slice"
|
||||
"name": "Assert Slice",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
200
|
||||
],
|
||||
"parameters": {
|
||||
"actual": "$assert_slice_length.result",
|
||||
"expected": 2,
|
||||
"message": "list.slice should extract slice"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -286,22 +350,30 @@
|
||||
"name": "Test Find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
300
|
||||
700,
|
||||
500
|
||||
],
|
||||
"parameters": {
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Alice"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Bob"
|
||||
}
|
||||
"name": "Test Find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
0,
|
||||
300
|
||||
],
|
||||
"key": "name",
|
||||
"value": "Bob"
|
||||
"parameters": {
|
||||
"items": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "Alice"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "Bob"
|
||||
}
|
||||
],
|
||||
"key": "name",
|
||||
"value": "Bob"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -323,15 +395,23 @@
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Find Result",
|
||||
"name": "Assert Find",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
300
|
||||
100,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.result",
|
||||
"message": "list.find should find item"
|
||||
"name": "Assert Find Result",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
300,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.result",
|
||||
"message": "list.find should find item"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -353,15 +433,23 @@
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"name": "Assert Found Flag",
|
||||
"name": "Assert Find Found",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
300
|
||||
400,
|
||||
700
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.found",
|
||||
"message": "list.find should set found flag"
|
||||
"name": "Assert Found Flag",
|
||||
"typeVersion": 1,
|
||||
"position": [
|
||||
600,
|
||||
300
|
||||
],
|
||||
"parameters": {
|
||||
"value": "$test_find.found",
|
||||
"message": "list.find should set found flag"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user