Test #1372
Annotations
10 errors and 1 warning
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "dataElement", "data": {"_type": "relationalCSVData", "tables": [{"schema": "default", "table": "PersonTable", "values": "id,firm_id,firstName,lastName,employeeType
1,1,John,Doe,FTO
2,1,Nicole,Smith,FTC
3,2,Time,Smith,FTE
"}, {"schema": "default", "table": "FirmTable", "values": "id,legal_name
1,Finos
2,Apple
"}]}, "name": "RelationalData", "package": "data", "stereotypes": [], "taggedValues": []}, {"_type": "relational", "filters": [], "includedStores": [], "joins": [{"name": "FirmPerson", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}], "name": "TestDB", "package": "store", "schemas": [{"name": "default", "tables": [[Object], [Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "Enumeration", "name": "EmployeeType", "package": "model", "stereotypes": [], "taggedValues": [], "values": [{"stereotypes": [], "taggedValues": [], "value": "CONTRACT"}, {"stereotypes": [], "taggedValues": [], "value": "FULL_TIME"}]}, {"_type": "class", "constraints": [], "name": "Person", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "firstName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "lastName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "employeeType", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Firm", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "legalName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 0}, "name": "employees", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "function", "body": [{"_type": "func", "function": "from", "parameters": [[Object], [Object], [Object]]}], "name": "PersonQuery__TabularDataSet_1_", "package": "model", "parameters": [], "postConstraints": [], "preConstraints": [], "returnGenericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "meta::pure::tds::TabularDataSet"}, "typeArguments": [], "typeVariableValues": []}, "returnMultiplicity": {"lowerBound": 1, "upperBound": 1}, "stereotypes": [], "taggedValues": [], "tests": []}, {"_type": "function", "body": [{"_type": "func", "function": "from", "parameters": [[Object], [Object], [Object]]}], "name": "PersonWithParams_String_1__TabularDataSet_1_", "package": "model", "parameters": [{"_type": "var", "genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "firstName"}], "postConstraints": [], "preConstraints": [], "returnGenericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "meta::pure::tds::TabularDataSet"}, "typeArguments": [], "typeVariableValues": []}, "returnMultiplicity": {"lowerBound": 1, "upperBound": 1}, "stereotypes": [], "taggedValues": [], "tests": [{"_type": "functionTestSuite", "id": "testSuite_1", "testDat
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "relational", "filters": [], "includedStores": [], "joins": [{"name": "BondDetailJoin", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "BondDetailPartyJoin", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}], "name": "eDB", "package": "store", "schemas": [{"name": "default", "tables": [[Object], [Object], [Object], [Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "Enumeration", "name": "PartyType", "package": "model", "stereotypes": [], "taggedValues": [], "values": [{"stereotypes": [], "taggedValues": [], "value": "Company"}, {"stereotypes": [], "taggedValues": [], "value": "Bearer"}, {"stereotypes": [], "taggedValues": [], "value": "Goverment"}]}, {"_type": "Enumeration", "name": "Status", "package": "model", "stereotypes": [], "taggedValues": [], "values": [{"stereotypes": [], "taggedValues": [], "value": "Pending"}, {"stereotypes": [], "taggedValues": [], "value": "Open"}, {"stereotypes": [], "taggedValues": [], "value": "Closed"}]}, {"_type": "class", "constraints": [], "name": "Location", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "place", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 0, "upperBound": 1}, "name": "censusdate", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [{"path": "model::GeographicEntity", "type": "CLASS"}], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Product", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "name", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "market", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "bondDetails", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "subProduct", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Party", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "name", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "type", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "address", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "GeographicEnt
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "relational", "filters": [], "includedStores": [], "joins": [], "name": "TestDatabase", "package": "model", "schemas": [{"name": "TestSchema", "tables": [{"columns": [{"name": "testDate", "nullable": false, "type": {"_type": "Date"}}], "milestoning": [], "name": "TestTable", "primaryKey": ["testDate"]}], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "class", "constraints": [], "name": "Processing", "originalMilestonedProperties": [], "package": "model", "properties": [], "qualifiedProperties": [], "stereotypes": [{"profile": "meta::pure::profiles::temporal", "value": "processingtemporal"}], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Business", "originalMilestonedProperties": [], "package": "model", "properties": [], "qualifiedProperties": [], "stereotypes": [{"profile": "meta::pure::profiles::temporal", "value": "businesstemporal"}], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "BiTemporal", "originalMilestonedProperties": [], "package": "model", "properties": [], "qualifiedProperties": [], "stereotypes": [{"profile": "meta::pure::profiles::temporal", "value": "bitemporal"}], "superTypes": [], "taggedValues": []}, {"_type": "mapping", "associationMappings": [], "classMappings": [{"_type": "relational", "class": "model::Business", "distinct": false, "groupBy": [], "mainTable": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "primaryKey": [{"_type": "column", "column": "testDate", "table": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "tableAlias": "TestTable"}], "propertyMappings": [{"_type": "relationalPropertyMapping", "property": {"class": "model::Business", "property": "businessDate"}, "relationalOperation": {"_type": "column", "column": "testDate", "table": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "tableAlias": "TestTable"}}], "root": true}, {"_type": "relational", "class": "model::Processing", "distinct": false, "groupBy": [], "mainTable": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "primaryKey": [{"_type": "column", "column": "testDate", "table": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "tableAlias": "TestTable"}], "propertyMappings": [{"_type": "relationalPropertyMapping", "property": {"class": "model::Processing", "property": "processingDate"}, "relationalOperation": {"_type": "column", "column": "testDate", "table": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "tableAlias": "TestTable"}}], "root": true}, {"_type": "relational", "class": "model::BiTemporal", "distinct": false, "groupBy": [], "mainTable": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "primaryKey": [{"_type": "column", "column": "testDate", "table": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "tableAlias": "TestTable"}], "propertyMappings": [{"_type": "relationalPropertyMapping", "property": {"class": "model::BiTemporal", "property": "businessDate"}, "relationalOperation": {"_type": "column", "column": "testDate", "table": {"_type": "Table", "database": "model::TestDatabase", "mainTableDb": "model::TestDatabase", "schema": "TestSchema", "table": "TestTable"}, "tableAlias": "TestTable"}}, {"_type": "relationalPropertyMapping", "property": {"class": "model::BiTemporal", "property": "proc
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "service", "autoActivateUpdates": true, "documentation": "", "execution": {"_type": "pureSingleExecution", "func": {"_type": "lambda", "body": [[Object]], "parameters": []}, "mapping": "test::testMapping", "runtime": {"_type": "runtimePointer", "runtime": "test::testRuntime"}}, "name": "testservice", "owners": ["siaka"], "package": "test", "pattern": "/64325176-20cd-4051-b594-84061fceacc6", "postValidations": [], "stereotypes": [], "taggedValues": [], "testSuites": []}, {"_type": "relational", "filters": [{"_type": "filter", "name": "street_filter", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"_type": "filter", "name": "address_filter", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"_type": "filter", "name": "city_filter", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}], "includedStores": [], "joins": [{"name": "st_l", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "st_co", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "c_l", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "ad_l", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "ad_st", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "ad_city", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "ad_co", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}], "name": "db", "package": "test", "schemas": [{"name": "default", "tables": [[Object], [Object], [Object], [Object], [Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "class", "constraints": [], "name": "City", "originalMilestonedProperties": [], "package": "test", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "name", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [{"path": "test::Address", "type": "CLASS"}], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Address", "originalMilestonedProperties": [], "package": "test", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "Id", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "landmark", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Coordinate", "originalMilestonedProperties": [], "package": "test", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "streetId", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "latitude", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "longitude", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Street"
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "class", "constraints": [{"functionDefinition": {"_type": "lambda", "body": [{"_type": "func", "function": "isNotEmpty", "parameters": [{"_type": "property", "parameters": [[Object]], "property": "property_1"}]}], "parameters": []}, "name": "propertyNotEmpty"}], "name": "Class_1", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "property_1", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "relational", "filters": [], "includedStores": [], "joins": [], "name": "db", "package": "mapping", "schemas": [{"name": "default", "tables": [{"columns": [{"name": "property_1", "nullable": true, "type": {"_type": "Varchar", "size": 200}}], "milestoning": [], "name": "table1", "primaryKey": []}], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "mapping", "associationMappings": [], "classMappings": [{"_type": "relational", "class": "model::Class_1", "distinct": false, "groupBy": [], "mainTable": {"_type": "Table", "database": "mapping::db", "mainTableDb": "mapping::db", "schema": "default", "table": "table1"}, "primaryKey": [], "propertyMappings": [{"_type": "relationalPropertyMapping", "property": {"class": "model::Class_1", "property": "property_1"}, "relationalOperation": {"_type": "column", "column": "property_1", "table": {"_type": "Table", "database": "mapping::db", "mainTableDb": "mapping::db", "schema": "default", "table": "table1"}, "tableAlias": "table1"}}], "root": true}], "enumerationMappings": [], "includedMappings": [], "name": "DummyMapping", "package": "model", "tests": []}, {"_type": "runtime", "name": "DummyRuntime", "package": "model", "runtimeValue": {"_type": "engineRuntime", "connectionStores": [], "connections": [], "mappings": [{"path": "model::DummyMapping", "type": "MAPPING"}]}}, {"_type": "dataSpace", "defaultExecutionContext": "Context 1", "description": "some description", "diagrams": [], "executables": [], "executionContexts": [{"defaultRuntime": {"path": "model::DummyRuntime", "type": "RUNTIME"}, "description": "some information about the context", "mapping": {"path": "model::DummyMapping", "type": "MAPPING"}, "name": "Context 1"}], "name": "dataSpace", "package": "model", "stereotypes": [], "supportInfo": {"_type": "email", "address": "[email protected]"}, "taggedValues": [], "title": "Untitled"}, {"_type": "dataQualityValidation", "context": {"_type": "dataSpaceDataQualityExecutionContext", "context": "Context 1", "dataSpace": {"path": "model::dataSpace", "type": "DATASPACE"}}, "dataQualityRootGraphFetchTree": {"_type": "dataQualityRootGraphFetchTree", "class": "model::Class_1", "constraints": ["propertyNotEmpty"], "subTrees": [{"_type": "dataQualityPropertyGraphFetchTree", "constraints": [], "parameters": [], "property": "property_1", "subTrees": [], "subTypeTrees": []}], "subTypeTrees": []}, "name": "classValidation", "package": "model", "stereotypes": [], "taggedValues": []}, {"_type": "dataQualityValidation", "context": {"_type": "mappingAndRuntimeDataQualityExecutionContext", "mapping": {"path": "model::DummyMapping", "type": "MAPPING"}, "runtime": {"path": "model::DummyRuntime", "type": "RUNTIME"}}, "dataQualityRootGraphFetchTree": {"_type": "dataQualityRootGraphFetchTree", "class": "model::Class_1", "constraints": ["propertyNotEmpty"], "subTrees": [{"_type": "dataQualityPropertyGraphFetchTree", "constraints": [], "parameters": [], "property": "property_1", "subTrees": [], "subTypeTrees": []}], "subTypeTrees": []}, "name": "classValidation1", "package": "model", "stereotypes": [], "taggedValues": []}]
Received:
[{"_type": "class", "constraints": [{"functionDefinition": {"_type": "lambda", "body": [{"_type": "func", "function": "isNotEmp
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "dataSpace", "defaultExecutionContext": "default", "executionContexts": [{"defaultRuntime": {"path": "entity::runtime::LegalEntityRuntime", "type": "RUNTIME"}, "mapping": {"path": "entity::mapping::LegalEntityMapping", "type": "MAPPING"}, "name": "default"}], "name": "LegalEntityDataSpace", "package": "entity::dataspace", "stereotypes": [], "taggedValues": []}, {"_type": "service", "autoActivateUpdates": true, "documentation": "", "execution": {"_type": "pureSingleExecution", "func": {"_type": "lambda", "body": [[Object]], "parameters": []}, "mapping": "trade::mapping::TradeMapping", "runtime": {"_type": "runtimePointer", "runtime": "trade::runtime::TradeRuntime"}}, "name": "TradeService", "owners": ["anonymous"], "package": "trade::service", "pattern": "/aeadc3bd-27ac-46ae-8989-073ea134aceb", "postValidations": [], "stereotypes": [], "taggedValues": [], "testSuites": [{"_type": "serviceTestSuite", "id": "testSuite_1", "testData": {"connectionsTestData": [Array]}, "tests": [[Object]]}]}, {"_type": "relational", "filters": [], "includedStores": [], "joins": [], "name": "LegalEntityDatabase", "package": "entity::store", "schemas": [{"name": "LEGAL_ENTITY_SCHEMA", "tables": [[Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "relational", "filters": [], "includedStores": [], "joins": [], "name": "TradeDatabase", "package": "trade::store", "schemas": [{"name": "TRADE_SCHEMA", "tables": [[Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "class", "constraints": [], "name": "LegalEntity", "originalMilestonedProperties": [], "package": "entity::model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "identifier", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "legalName", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Trade", "originalMilestonedProperties": [], "package": "trade::model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "ticker", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "quantity", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "association", "name": "Trade_LegalEntity", "originalMilestonedProperties": [], "package": "trade::model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "client", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 0}, "name": "trades", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "taggedValues": []}, {"_type": "mapping", "associationMappings": [], "classMappings": [{"_type": "relational", "class": "entity::model::LegalEntity", "distinct": false, "groupBy": [], "id": "legal_entity", "mainTable": {"_type": "Table", "database": "entity::store::LegalEntityDatabase", "mainTableDb": "entity::store::LegalEntityDatabase", "schema": "LEGAL_ENTITY_SCHEMA", "table": "LEGAL_ENTITY_TABLE"}, "primaryKe
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "hostedService", "actions": [], "autoActivateUpdates": true, "documentation": "", "function": {"path": "model::Firm_QueryFunction():TabularDataSet[1]", "type": "FUNCTION"}, "generateLineage": false, "name": "NewActivatorWithTag", "ownership": {"_type": "DeploymentOwner", "id": ""}, "package": "model", "pattern": "/pattern", "stereotypes": [{"profile": "equality", "value": "Key"}], "storeModel": false, "taggedValues": []}, {"_type": "hostedService", "actions": [], "autoActivateUpdates": true, "documentation": "", "function": {"path": "model::Firm_QueryFunction():TabularDataSet[1]", "type": "FUNCTION"}, "generateLineage": false, "name": "NewActivator", "ownership": {"_type": "DeploymentOwner", "id": ""}, "package": "model", "pattern": "/pattern", "stereotypes": [], "storeModel": false, "taggedValues": []}, {"_type": "relational", "filters": [], "includedStores": [], "joins": [{"name": "FirmPerson", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "FirmAddress", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "HobbyPerson", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}], "name": "TestDB", "package": "store", "schemas": [{"name": "default", "tables": [[Object], [Object], [Object], [Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "class", "constraints": [], "name": "Firm", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "legalName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 0}, "name": "employees", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 0}, "name": "contractors", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1}, "name": "address", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "id", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Hobby", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "name", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "id", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "Person", "originalMilestonedProperties": [], "package": "model", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "firstName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upper
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "relational", "filters": [{"_type": "filter", "name": "AFilter", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"_type": "filter", "name": "CFilter", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}], "includedStores": [], "joins": [{"name": "AE", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "BH", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "CK", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "A2E2", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "B2H2", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}, {"name": "C2K2", "operation": {"_type": "dynaFunc", "funcName": "equal", "parameters": [Array]}}], "name": "testDatabase", "package": "store::test", "schemas": [{"name": "default", "tables": [[Object], [Object], [Object], [Object], [Object], [Object], [Object], [Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "relational", "filters": [], "includedStores": [], "joins": [], "name": "db", "package": "my", "schemas": [{"name": "default", "tables": [[Object], [Object]], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "class", "constraints": [], "name": "A", "originalMilestonedProperties": [], "package": "model::test", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "id", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "aName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "m1", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "m2", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "B", "originalMilestonedProperties": [], "package": "model::test", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "bName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "n1", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "n2", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [{"path": "model::test::A", "type": "CLASS"}], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "C", "originalMilestonedProperties": [], "package": "model::test", "properties": [{"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "cName", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [Array], "rawType": [Object], "typeArguments": [Array], "typeVariableValues": [Array]}, "multipl
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "relational", "filters": [], "includedStores": [], "joins": [], "name": "eDB", "package": "store::test", "schemas": [{"name": "default", "tables": [{"columns": [{"name": "PRODUCT_ID", "nullable": false, "type": {"_type": "Integer"}}, {"name": "PRODUCT_NAME", "nullable": true, "type": {"_type": "Varchar", "size": 200}}, {"name": "MARKET_NAME", "nullable": true, "type": {"_type": "Varchar", "size": 200}}, {"name": "BOND_DETAILS", "nullable": true, "type": {"_type": "Varchar", "size": 200}}, {"name": "BOND_TYPE", "nullable": true, "type": {"_type": "Varchar", "size": 10}}, {"name": "BOND_STATUS", "nullable": true, "type": {"_type": "Varchar", "size": 10}}, {"name": "ISSUER_TYPE", "nullable": true, "type": {"_type": "Varchar", "size": 10}}, {"name": "ISSUER", "nullable": true, "type": {"_type": "Varchar", "size": 10}}, {"name": "ISSUER_ADDRESS_NAME", "nullable": true, "type": {"_type": "Varchar", "size": 200}}, {"name": "ISSUER_ADDRESS_STREET", "nullable": true, "type": {"_type": "Varchar", "size": 200}}, …], "milestoning": [], "name": "PRODUCT_DENORM", "primaryKey": ["PRODUCT_ID"]}, {"columns": [{"name": "BOND_ID", "nullable": false, "type": {"_type": "Integer"}}, {"name": "NOT_SO_GOOD_DETAIL", "nullable": true, "type": {"_type": "Varchar", "size": 200}}, {"name": "TYPE", "nullable": true, "type": {"_type": "Varchar", "size": 10}}, {"name": "STATUS", "nullable": true, "type": {"_type": "Varchar", "size": 10}}, {"name": "HOLDERID", "nullable": true, "type": {"_type": "Integer"}}], "milestoning": [], "name": "BOND_DETAIL", "primaryKey": ["BOND_ID"]}, {"columns": [{"name": "id", "nullable": false, "type": {"_type": "Integer"}}, {"name": "name", "nullable": true, "type": {"_type": "Varchar", "size": 200}}], "milestoning": [], "name": "Party", "primaryKey": ["id"]}, {"columns": [{"name": "PRODUCT_ID", "nullable": false, "type": {"_type": "Integer"}}, {"name": "type", "nullable": false, "type": {"_type": "Varchar", "size": 200}}], "milestoning": [], "name": "BondClassificationTable", "primaryKey": ["PRODUCT_ID", "type"]}], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "class", "constraints": [], "name": "Product", "originalMilestonedProperties": [], "package": "model::test", "properties": [{"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "name", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "market", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "model::test::BondDetail"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "bondDetails", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "model::test::Product"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "subProduct", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "BondDetail", "originalMilestonedProperties": [], "package": "model::test", "properties": [{"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "description", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "ty
|
Test:
packages/legend-manual-tests/src/__tests__/roundtrip-grammar/RoundtripGrammar.engine-roundtrip-test.ts#L218
expect(received).toIncludeSameMembers(expected)
Expected list to have the following members and no more:
[{"_type": "class", "constraints": [], "name": "Person", "originalMilestonedProperties": [], "package": "test", "properties": [{"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "name", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "class", "constraints": [], "name": "ServiceResult", "originalMilestonedProperties": [], "package": "test", "properties": [{"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "ID", "stereotypes": [], "taggedValues": []}, {"genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "String"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "NAME", "stereotypes": [], "taggedValues": []}], "qualifiedProperties": [], "stereotypes": [], "superTypes": [], "taggedValues": []}, {"_type": "mapping", "associationMappings": [], "classMappings": [], "enumerationMappings": [], "includedMappings": [], "name": "Mapping", "package": "test", "tests": []}, {"_type": "relational", "filters": [], "includedStores": [], "joins": [], "name": "TestDatabase", "package": "test", "schemas": [{"name": "default", "tables": [{"columns": [{"name": "ID", "nullable": false, "type": {"_type": "Integer"}}, {"name": "NAME", "nullable": true, "type": {"_type": "Varchar", "size": 100}}, {"name": "BATCH_IN", "nullable": false, "type": {"_type": "Integer"}}, {"name": "BATCH_OUT", "nullable": true, "type": {"_type": "Integer"}}, {"name": "IN_Z", "nullable": false, "type": {"_type": "Timestamp"}}, {"name": "OUT_Z", "nullable": true, "type": {"_type": "Timestamp"}}], "milestoning": [], "name": "personTable", "primaryKey": ["ID", "BATCH_IN", "IN_Z"]}], "tabularFunctions": [], "views": []}], "stereotypes": []}, {"_type": "service", "autoActivateUpdates": true, "documentation": "test", "execution": {"_type": "pureSingleExecution", "func": {"_type": "lambda", "body": [{"_type": "property", "parameters": [{"_type": "var", "name": "src"}], "property": "name"}], "parameters": [{"_type": "var", "genericType": {"multiplicityArguments": [], "rawType": {"_type": "packageableType", "fullPath": "test::Person"}, "typeArguments": [], "typeVariableValues": []}, "multiplicity": {"lowerBound": 1, "upperBound": 1}, "name": "src"}]}, "mapping": "test::Mapping", "runtime": {"_type": "engineRuntime", "connectionStores": [], "connections": [], "mappings": [{"path": "test::Mapping", "type": "MAPPING"}]}}, "name": "Service", "owners": [], "package": "test", "pattern": "test", "postValidations": [], "stereotypes": [], "taggedValues": [], "testSuites": []}, {"_type": "persistence", "documentation": "This is test documentation.", "name": "TestPersistence", "notifier": {"notifyees": [{"_type": "pagerDutyNotifyee", "url": "http://xyz.com"}, {"_type": "emailNotifyee", "address": "http://xyz.com"}]}, "package": "test", "service": {"path": "test::Service", "type": "SERVICE"}, "serviceOutputTargets": [{"persistenceTarget": {"_type": "relationalPersistenceTarget", "database": {"path": "test::TestDatabase", "type": "STORE"}, "table": "personTable", "temporality": {"_type": "unitemporalTemporality", "processingDimension": {"_type": "batchIdAndProcessingTime", "batchIdIn": "BATCH_IN", "batchIdOut": "BATCH_OUT", "timeIn": "IN_Z", "timeOut": "OUT_Z"}}}, "serviceOutput": {"_type": "tdsServiceOutput", "datasetType": {"_type": "snapshot", "partitioning": {"_type": "noPartitioning", "emptyDatasetHandling": {"_type": "noOp"}}}, "deduplication": {"_type": "noDeduplication"}, "keys": ["ID"]}}], "tests": [{"_type": "test", "id": "test1", "isTestDataFromServiceOutput":
|
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Loading