Skip to content

Commit

Permalink
geosolutions-it#9368: resovle comment: provide more generic test data…
Browse files Browse the repository at this point in the history
… for testing 3d tiles in csw in test file
  • Loading branch information
mahmoudadel54 committed Sep 17, 2023
1 parent a735287 commit ce92a29
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions web/client/api/catalog/__tests__/CSW-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,16 +314,16 @@ describe('Test correctness of the CSW catalog APIs', () => {
URI: {
TYPE_NAME: "DC_1_1.URI",
description: "access point",
protocol: "https://registry.geodati.gov.it/metadata-codelist/ProtocolValue/www-download",
value: "https://3d-layers.s3.eu-central-1.amazonaws.com/3dtiles/centro_storico_di_firenze_-_brass_city_model/tileset.json"
}, format: '3D Tiles', identifier: "test:20230829_test_3dtile_01", title: "3D Tiles layer for test"
protocol: "https://hostname/ProtocolValue/www-download",
value: "https://hostname/3dtiles/layername/tileset.json"
}, format: '3D Tiles', identifier: "test:layername", title: "3D Tiles layer for test"
}
}];
const catalogRecords = getCatalogRecords({records});
expect(catalogRecords.length).toBe(1);
expect(catalogRecords[0].bbox).toEqual({ bounds: {minx: 43.718, miny: 11.348, maxx: 43.84, maxy: 11.145}, crs: 'EPSG:4326' });
expect(catalogRecords[0].url).toEqual("https://3d-layers.s3.eu-central-1.amazonaws.com/3dtiles/centro_storico_di_firenze_-_brass_city_model/tileset.json");
expect(catalogRecords[0].identifier).toEqual("test:20230829_test_3dtile_01");
expect(catalogRecords[0].url).toEqual("https://hostname/3dtiles/layername/tileset.json");
expect(catalogRecords[0].identifier).toEqual("test:layername");
expect(catalogRecords[0].title).toEqual("3D Tiles layer for test");
expect(catalogRecords[0].serviceType).toEqual("3dtiles");
expect(catalogRecords[0].isValid).toEqual(true);
Expand Down

0 comments on commit ce92a29

Please sign in to comment.