Skip to content

Commit

Permalink
added new primary field to json to fix test ExportSingleEntityFirstRun (
Browse files Browse the repository at this point in the history
  • Loading branch information
Bertverbeek4PS authored Nov 25, 2024
2 parents 7addae1 + f0465ca commit e07a1e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions businessCentral/test/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,31 @@
"publisher": "Microsoft",
"name": "Library Assert",
"id": "dd0be2ea-f733-4d65-bb34-a28f4624fb14",
"version": "24.0.0.0"
"version": "25.0.0.0"
},
{
"publisher": "Microsoft",
"name": "Any",
"id": "e7320ebb-08b3-4406-b1ec-b4927d3e280b",
"version": "24.0.0.0"
"version": "25.0.0.0"
},
{
"publisher": "Microsoft",
"name": "Library Variable Storage",
"id": "5095f467-0a01-4b99-99d1-9ff1237d286f",
"version": "24.0.0.0"
"version": "25.0.0.0"
},
{
"publisher": "Microsoft",
"name": "Tests-TestLibraries",
"id": "5d86850b-0d76-4eca-bd7b-951ad998e997",
"version": "24.0.0.0"
"version": "25.0.0.0"
},
{
"publisher": "Microsoft",
"name": "Test Runner",
"id": "23de40a6-dfe8-4f80-80db-d70f83ce8caf",
"version": "24.0.0.0"
"version": "25.0.0.0"
},
{
"publisher": "The bc2adls team",
Expand All @@ -50,8 +50,8 @@
}
],
"screenshots": [],
"platform": "24.0.0.0",
"application": "24.0.0.0",
"platform": "25.0.0.0",
"application": "25.0.0.0",
"idRanges": [
{
"from": 85560,
Expand All @@ -63,7 +63,7 @@
"allowDownloadingSource": true,
"includeSourceInSymbolFile": true
},
"runtime": "13.0",
"runtime": "14.0",
"features": [
"NoImplicitWith"
]
Expand Down
2 changes: 1 addition & 1 deletion businessCentral/test/src/ExportTests.Codeunit.al
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ codeunit 85566 "ADLSE Export Tests"
ADLSESessionManager: Codeunit "ADLSE Session Manager";
i: Integer;
ExpectedEntityBlobPathTok: Label 'https://bc2adls.blob.core.windows.net/bc2adls/ReasonCode-231.cdm.json', Locked = true;
ExpectedEntityJsonTok: Label '{"jsonSchemaSemanticVersion":"1.0.0","imports":[{"corpusPath":"cdm:/foundations.cdm.json"}],"definitions":[{"entityName":"ReasonCode-231","exhibitsTraits":[],"displayName":"Reason Code","description":"Represents the table Reason Code","hasAttributes":[{"name":"timestamp-0","dataFormat":"Int64","appliedTraits":[],"displayName":"timestamp"},{"name":"systemId-2000000000","dataFormat":"Guid","appliedTraits":[],"displayName":"$systemId"},{"name":"SystemCreatedAt-2000000001","dataFormat":"DateTime","appliedTraits":[],"displayName":"SystemCreatedAt"},{"name":"SystemCreatedBy-2000000002","dataFormat":"Guid","appliedTraits":[],"displayName":"SystemCreatedBy"},{"name":"SystemModifiedAt-2000000003","dataFormat":"DateTime","appliedTraits":[],"displayName":"SystemModifiedAt"},{"name":"SystemModifiedBy-2000000004","dataFormat":"Guid","appliedTraits":[],"displayName":"SystemModifiedBy"},{"name":"$Company","dataFormat":"String","appliedTraits":[],"displayName":"$Company"}]}]}', Locked = true;
ExpectedEntityJsonTok: Label '{"jsonSchemaSemanticVersion":"1.0.0","imports":[{"corpusPath":"cdm:/foundations.cdm.json"}],"definitions":[{"entityName":"ReasonCode-231","exhibitsTraits":[],"displayName":"Reason Code","description":"Represents the table Reason Code","hasAttributes":[{"name":"Code-1","dataFormat":"String","appliedTraits":[],"displayName":"Code","maximumLength":10,"isPrimaryKey":true},{"name":"timestamp-0","dataFormat":"Int64","appliedTraits":[],"displayName":"timestamp","maximumLength":8},{"name":"systemId-2000000000","dataFormat":"Guid","appliedTraits":[],"displayName":"$systemId","maximumLength":16},{"name":"SystemCreatedAt-2000000001","dataFormat":"DateTime","appliedTraits":[],"displayName":"SystemCreatedAt","maximumLength":8},{"name":"SystemCreatedBy-2000000002","dataFormat":"Guid","appliedTraits":[],"displayName":"SystemCreatedBy","maximumLength":16},{"name":"SystemModifiedAt-2000000003","dataFormat":"DateTime","appliedTraits":[],"displayName":"SystemModifiedAt","maximumLength":8},{"name":"SystemModifiedBy-2000000004","dataFormat":"Guid","appliedTraits":[],"displayName":"SystemModifiedBy","maximumLength":16},{"name":"$Company","dataFormat":"String","appliedTraits":[],"displayName":"$Company","maximumLength":30}]}]}', Locked = true;
ExpectedManifestBlobPathTok: Label 'https://bc2adls.blob.core.windows.net/bc2adls/data.manifest.cdm.json', Locked = true;
ExpectedManifestJsonTok: Label '{"jsonSchemaSemanticVersion":"1.0.0","imports":[],"manifestName":"data-manifest","explanation":"Data exported from the Business Central to the Azure Data Lake Storage","entities":[{"type":"LocalEntity","entityName":"ReasonCode-231","entityPath":"ReasonCode-231.cdm.json/ReasonCode-231","dataPartitionPatterns":[{"name":"ReasonCode-231","rootLocation":"data/ReasonCode-231/","globPattern":"*.parquet","exhibitsTraits":[{"traitReference":"is.partition.format.parquet"}]}]}],"relationships":[]}', Locked = true;
begin
Expand Down

0 comments on commit e07a1e0

Please sign in to comment.