Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create integration tests (full stack tests) for RealityDataSource and RealityDataAccess client. #2952

Merged
merged 7 commits into from
Jan 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-backend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-backend"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"changes": [
{
"packageName": "@itwin/core-frontend",
"comment": "",
"type": "none"
}
],
"packageName": "@itwin/core-frontend"
}
76 changes: 42 additions & 34 deletions common/config/rush/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion core/frontend/src/RealityDataSource.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,10 @@ class RealityDataSourceImpl implements RealityDataSource {
this._tilesetUrl = this.key.id;
} else if (this.key.provider === RealityDataProvider.CesiumIonAsset ) {
this._tilesetUrl = this.key.id;
if (this.key.id === CesiumIonAssetProvider.osmBuildingId)
if (this.key.id === CesiumIonAssetProvider.osmBuildingId) {
this._tilesetUrl = getCesiumOSMBuildingsUrl();
this._isUrlResolved = true;
}
}
return this._tilesetUrl;
}
Expand Down
3 changes: 2 additions & 1 deletion full-stack-tests/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@itwin/imodels-access-frontend": "~0.3.0",
"@itwin/imodels-client-authoring": "~0.3.0",
"@itwin/imodels-client-management": "~0.3.0",
"@itwin/reality-data-client": "^0.5.0",
"chai": "^4.1.2",
"chai-as-promised": "^7",
"fs-extra": "^8.1.0",
Expand Down Expand Up @@ -84,4 +85,4 @@
],
"extends": "plugin:@itwin/itwinjs-recommended"
}
}
}
1 change: 1 addition & 0 deletions full-stack-tests/core/src/frontend/TestUtility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ export class TestUtility {
// A version of the above that uses BisCore 1.0.13 and includes a second display style with schedule script stored
// separately on a RenderTimeline element.
synchroNew: "SYNCHRO.UTK.1.0.13",
realityDataAccess: "Tuxford_qa",
};

public static testSnapshotIModels = {
Expand Down
Loading