From 2bfd622fcdaae4466011a2cbe1c99ac3e96adaab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BAlio=20C=C3=A9sar=20Batista?= Date: Fri, 6 Jan 2023 19:25:34 -0300 Subject: [PATCH] remove e2etest --- e2etests/regression_test.go | 21 - .../wrong_table_column/dagre/board.exp.json | 394 ------------------ .../wrong_table_column/dagre/sketch.exp.svg | 70 ---- .../wrong_table_column/elk/board.exp.json | 385 ----------------- .../wrong_table_column/elk/sketch.exp.svg | 70 ---- 5 files changed, 940 deletions(-) delete mode 100644 e2etests/testdata/regression/wrong_table_column/dagre/board.exp.json delete mode 100644 e2etests/testdata/regression/wrong_table_column/dagre/sketch.exp.svg delete mode 100644 e2etests/testdata/regression/wrong_table_column/elk/board.exp.json delete mode 100644 e2etests/testdata/regression/wrong_table_column/elk/sketch.exp.svg diff --git a/e2etests/regression_test.go b/e2etests/regression_test.go index 09468d493..aa8ca3b37 100644 --- a/e2etests/regression_test.go +++ b/e2etests/regression_test.go @@ -284,27 +284,6 @@ table with short col: RefreshAuthorizationPolicyCache { class -> table -> table with short col `, }, - { - name: "wrong_table_column", - script: `Chinchillas: { - shape: sql_table - id: int {constraint: primary_key} - whisker_len: int - fur_color: string - age: int - server: int {constraint: foreign_key} - caretaker: int {constraint: foreign_key} -} - -Chinchillas_Collectibles: { - shape: sql_table - id: int - collectible: id {constraint: foreign_key} - chinchilla: id {constraint: foreign_key} -} - -Chinchillas_Collectibles.chinchilla -> Chinchillas.id`, - }, } runa(t, tcs) diff --git a/e2etests/testdata/regression/wrong_table_column/dagre/board.exp.json b/e2etests/testdata/regression/wrong_table_column/dagre/board.exp.json deleted file mode 100644 index 6f2224f03..000000000 --- a/e2etests/testdata/regression/wrong_table_column/dagre/board.exp.json +++ /dev/null @@ -1,394 +0,0 @@ -{ - "name": "", - "fontFamily": "SourceSansPro", - "shapes": [ - { - "id": "Chinchillas", - "type": "sql_table", - "pos": { - "x": 19, - "y": 244 - }, - "width": 259, - "height": 252, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#0A0F25", - "stroke": "#FFFFFF", - "shadow": false, - "3d": false, - "multiple": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": [ - { - "name": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "primary_key", - "reference": "" - }, - { - "name": { - "label": "whisker_len", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 101, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "fur_color", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 77, - "labelHeight": 26 - }, - "type": { - "label": "string", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 48, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "age", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 30, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "server", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 52, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "" - }, - { - "name": { - "label": "caretaker", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 80, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "" - } - ], - "label": "Chinchillas", - "fontSize": 20, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": true, - "underline": false, - "labelWidth": 120, - "labelHeight": 36, - "zIndex": 0, - "level": 1, - "primaryAccentColor": "#0D32B2", - "secondaryAccentColor": "#4A6FF3", - "neutralAccentColor": "#676C7E" - }, - { - "id": "Chinchillas_Collectibles", - "type": "sql_table", - "pos": { - "x": 0, - "y": 0 - }, - "width": 297, - "height": 144, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#0A0F25", - "stroke": "#FFFFFF", - "shadow": false, - "3d": false, - "multiple": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": [ - { - "name": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "collectible", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 88, - "labelHeight": 26 - }, - "type": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "" - }, - { - "name": { - "label": "chinchilla", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 80, - "labelHeight": 26 - }, - "type": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "Chinchillas.id" - } - ], - "label": "Chinchillas_Collectibles", - "fontSize": 20, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": true, - "underline": false, - "labelWidth": 257, - "labelHeight": 36, - "zIndex": 0, - "level": 1, - "primaryAccentColor": "#0D32B2", - "secondaryAccentColor": "#4A6FF3", - "neutralAccentColor": "#676C7E" - } - ], - "connections": [ - { - "id": "(Chinchillas_Collectibles -> Chinchillas)[0]", - "src": "Chinchillas_Collectibles", - "srcArrow": "none", - "srcLabel": "", - "dst": "Chinchillas", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 148.5, - "y": 144 - }, - { - "x": 148.5, - "y": 184 - }, - { - "x": 148.5, - "y": 204 - }, - { - "x": 148.5, - "y": 244 - } - ], - "isCurve": true, - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 0 - } - ] -} diff --git a/e2etests/testdata/regression/wrong_table_column/dagre/sketch.exp.svg b/e2etests/testdata/regression/wrong_table_column/dagre/sketch.exp.svg deleted file mode 100644 index a4eb9977b..000000000 --- a/e2etests/testdata/regression/wrong_table_column/dagre/sketch.exp.svg +++ /dev/null @@ -1,70 +0,0 @@ - -Chinchillasid -int -PKwhisker_len -int -fur_color -string -age -int -server -int -FKcaretaker -int -FKChinchillas_Collectiblesid -int -collectible -id -FKchinchilla -id -FK - - - \ No newline at end of file diff --git a/e2etests/testdata/regression/wrong_table_column/elk/board.exp.json b/e2etests/testdata/regression/wrong_table_column/elk/board.exp.json deleted file mode 100644 index 2164a914a..000000000 --- a/e2etests/testdata/regression/wrong_table_column/elk/board.exp.json +++ /dev/null @@ -1,385 +0,0 @@ -{ - "name": "", - "fontFamily": "SourceSansPro", - "shapes": [ - { - "id": "Chinchillas", - "type": "sql_table", - "pos": { - "x": 31, - "y": 256 - }, - "width": 259, - "height": 252, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#0A0F25", - "stroke": "#FFFFFF", - "shadow": false, - "3d": false, - "multiple": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": [ - { - "name": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "primary_key", - "reference": "" - }, - { - "name": { - "label": "whisker_len", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 101, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "fur_color", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 77, - "labelHeight": 26 - }, - "type": { - "label": "string", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 48, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "age", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 30, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "server", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 52, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "" - }, - { - "name": { - "label": "caretaker", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 80, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "" - } - ], - "label": "Chinchillas", - "fontSize": 20, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": true, - "underline": false, - "labelWidth": 120, - "labelHeight": 36, - "zIndex": 0, - "level": 1, - "primaryAccentColor": "#0D32B2", - "secondaryAccentColor": "#4A6FF3", - "neutralAccentColor": "#676C7E" - }, - { - "id": "Chinchillas_Collectibles", - "type": "sql_table", - "pos": { - "x": 12, - "y": 12 - }, - "width": 297, - "height": 144, - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "borderRadius": 0, - "fill": "#0A0F25", - "stroke": "#FFFFFF", - "shadow": false, - "3d": false, - "multiple": false, - "tooltip": "", - "link": "", - "icon": null, - "iconPosition": "", - "blend": false, - "fields": null, - "methods": null, - "columns": [ - { - "name": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "type": { - "label": "int", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 23, - "labelHeight": 26 - }, - "constraint": "", - "reference": "" - }, - { - "name": { - "label": "collectible", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 88, - "labelHeight": 26 - }, - "type": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "" - }, - { - "name": { - "label": "chinchilla", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 80, - "labelHeight": 26 - }, - "type": { - "label": "id", - "fontSize": 0, - "fontFamily": "", - "language": "", - "color": "", - "italic": false, - "bold": false, - "underline": false, - "labelWidth": 15, - "labelHeight": 26 - }, - "constraint": "foreign_key", - "reference": "Chinchillas.id" - } - ], - "label": "Chinchillas_Collectibles", - "fontSize": 20, - "fontFamily": "DEFAULT", - "language": "", - "color": "#0A0F25", - "italic": false, - "bold": true, - "underline": false, - "labelWidth": 257, - "labelHeight": 36, - "zIndex": 0, - "level": 1, - "primaryAccentColor": "#0D32B2", - "secondaryAccentColor": "#4A6FF3", - "neutralAccentColor": "#676C7E" - } - ], - "connections": [ - { - "id": "(Chinchillas_Collectibles -> Chinchillas)[0]", - "src": "Chinchillas_Collectibles", - "srcArrow": "none", - "srcLabel": "", - "dst": "Chinchillas", - "dstArrow": "triangle", - "dstLabel": "", - "opacity": 1, - "strokeDash": 0, - "strokeWidth": 2, - "stroke": "#0D32B2", - "label": "", - "fontSize": 16, - "fontFamily": "DEFAULT", - "language": "", - "color": "#676C7E", - "italic": true, - "bold": false, - "underline": false, - "labelWidth": 0, - "labelHeight": 0, - "labelPosition": "", - "labelPercentage": 0, - "route": [ - { - "x": 160.5, - "y": 156 - }, - { - "x": 160.5, - "y": 256 - } - ], - "animated": false, - "tooltip": "", - "icon": null, - "zIndex": 0 - } - ] -} diff --git a/e2etests/testdata/regression/wrong_table_column/elk/sketch.exp.svg b/e2etests/testdata/regression/wrong_table_column/elk/sketch.exp.svg deleted file mode 100644 index a25d5616c..000000000 --- a/e2etests/testdata/regression/wrong_table_column/elk/sketch.exp.svg +++ /dev/null @@ -1,70 +0,0 @@ - -Chinchillasid -int -PKwhisker_len -int -fur_color -string -age -int -server -int -FKcaretaker -int -FKChinchillas_Collectiblesid -int -collectible -id -FKchinchilla -id -FK - - - \ No newline at end of file