@itwin/rpcinterface-full-stack-tests 3.2.0-dev.71 → 3.2.0-dev.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/dist/0.bundled-tests.js +135 -135
- package/lib/dist/0.bundled-tests.js.map +1 -1
- package/lib/dist/1.bundled-tests.js.map +1 -1
- package/lib/dist/2.bundled-tests.js +3 -3
- package/lib/dist/2.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +5336 -13021
- package/lib/dist/bundled-tests.js.map +1 -1
- package/package.json +18 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/rpcinterface-full-stack-tests",
|
|
3
|
-
"version": "3.2.0-dev.
|
|
3
|
+
"version": "3.2.0-dev.75",
|
|
4
4
|
"description": "Test the full iTwin.js Core stack (frontend and backend) using standard RPC interfaces",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
"@itwin/imodels-access-frontend": "^1.0.1",
|
|
23
23
|
"@itwin/imodels-client-authoring": "^1.0.1",
|
|
24
24
|
"@itwin/imodels-client-management": "^1.0.1",
|
|
25
|
-
"@itwin/build-tools": "3.2.0-dev.
|
|
26
|
-
"@itwin/core-bentley": "3.2.0-dev.
|
|
27
|
-
"@itwin/core-common": "3.2.0-dev.
|
|
28
|
-
"@itwin/core-frontend": "3.2.0-dev.
|
|
29
|
-
"@itwin/core-geometry": "3.2.0-dev.
|
|
30
|
-
"@itwin/core-quantity": "3.2.0-dev.
|
|
31
|
-
"@itwin/certa": "3.2.0-dev.
|
|
32
|
-
"@itwin/eslint-plugin": "3.2.0-dev.
|
|
25
|
+
"@itwin/build-tools": "3.2.0-dev.75",
|
|
26
|
+
"@itwin/core-bentley": "3.2.0-dev.75",
|
|
27
|
+
"@itwin/core-common": "3.2.0-dev.75",
|
|
28
|
+
"@itwin/core-frontend": "3.2.0-dev.75",
|
|
29
|
+
"@itwin/core-geometry": "3.2.0-dev.75",
|
|
30
|
+
"@itwin/core-quantity": "3.2.0-dev.75",
|
|
31
|
+
"@itwin/certa": "3.2.0-dev.75",
|
|
32
|
+
"@itwin/eslint-plugin": "3.2.0-dev.75",
|
|
33
33
|
"@itwin/oidc-signin-tool": "^3.2.2",
|
|
34
|
-
"@itwin/presentation-common": "3.2.0-dev.
|
|
35
|
-
"@itwin/presentation-frontend": "3.2.0-dev.
|
|
34
|
+
"@itwin/presentation-common": "3.2.0-dev.75",
|
|
35
|
+
"@itwin/presentation-frontend": "3.2.0-dev.75",
|
|
36
36
|
"@itwin/service-authorization": "^0.6.1",
|
|
37
37
|
"chai": "^4.1.2",
|
|
38
38
|
"chai-as-promised": "^7",
|
|
@@ -43,15 +43,15 @@
|
|
|
43
43
|
"puppeteer": "chrome-86"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@itwin/core-backend": "3.2.0-dev.
|
|
47
|
-
"@itwin/express-server": "3.2.0-dev.
|
|
46
|
+
"@itwin/core-backend": "3.2.0-dev.75",
|
|
47
|
+
"@itwin/express-server": "3.2.0-dev.75",
|
|
48
48
|
"@itwin/imodels-access-backend": "^1.0.1",
|
|
49
|
-
"@itwin/presentation-backend": "3.2.0-dev.
|
|
49
|
+
"@itwin/presentation-backend": "3.2.0-dev.75",
|
|
50
50
|
"@itwin/projects-client": "^0.6.0",
|
|
51
51
|
"@types/chai": "^4.1.4",
|
|
52
52
|
"@types/chai-as-promised": "^7",
|
|
53
53
|
"@types/mocha": "^8.2.2",
|
|
54
|
-
"@types/node": "
|
|
54
|
+
"@types/node": "16.11.7",
|
|
55
55
|
"@types/puppeteer": "2.0.1",
|
|
56
56
|
"cpx2": "^3.0.0",
|
|
57
57
|
"eslint": "^7.11.0",
|
|
@@ -71,8 +71,8 @@
|
|
|
71
71
|
"extends": "plugin:@itwin/itwinjs-recommended"
|
|
72
72
|
},
|
|
73
73
|
"scripts": {
|
|
74
|
-
"build": "tsc 1>&2
|
|
75
|
-
"build:ci": "npm run -s build",
|
|
74
|
+
"build": "tsc 1>&2",
|
|
75
|
+
"build:ci": "npm run -s build && npm run -s webpack:test",
|
|
76
76
|
"clean": "rimraf lib .rush/temp/package-deps*.json integration_test_results",
|
|
77
77
|
"copy:config": "internal-tools copy-config",
|
|
78
78
|
"cover": "",
|
|
@@ -83,7 +83,7 @@
|
|
|
83
83
|
"test": "",
|
|
84
84
|
"test:integration": "npm-run-all -r -p start:backend test:integration:chrome",
|
|
85
85
|
"test:integration:chrome": "certa -r chrome",
|
|
86
|
-
"webpack:
|
|
86
|
+
"webpack:test": "webpack --config webpack.config.js 1>&2"
|
|
87
87
|
},
|
|
88
88
|
"readme": "# iTwin.js RPC Interface Integration Tests\r\n\r\nCopyright © Bentley Systems, Incorporated. All rights reserved. See LICENSE.md for license terms and full copyright notice.\r\n\r\nThis package contains the iTwin.js RPC Interface integration tests and configuration setup to run them against a deployed backend.\r\n\r\n## Prerequisites\r\n\r\nRefer to the iTwin.js [prerequisites](https://github.com/iTwin/itwinjs-core#prerequisites)\r\n\r\n## Running the tests\r\n\r\nBefore running the tests, the environment needs to be setup. The easiest way is to configure a [.env] file in the working directory, the [template.env](./template.env) file has information about how to set one up and all the variables that need to be configured.\r\n\r\nAll test related settings are contained in the `process.env` variable and parsed by [Settings.ts](./setup/Settings.ts). If something required is missing or not configured properly, the tests will fail to setup.\r\n\r\n### Setting up the required context\r\n\r\nThe tests require an Project and iModel to be setup in order to run properly.\r\n\r\nThe iModel doesn't require anything special and can be a seed iModel.\r\n\r\n### Specifying users to be used for testing\r\n\r\nThe tests require a single user to be specified. The user's access rules required are:\r\n\r\n1. User1 - full access to the Project and an iModel (requires iModelHub Read iModel Project Role)\r\n - i.e., \"user_with_access_username\" in the `.env` file.\r\n\r\n### Specifying the backend\r\n\r\nIf the specified address for the backend is \"localhost\", you must have built a backend and start it.\r\n\r\nIf you do not specify the address to be \"localhost\" for the backend, you must specify a valid URL to a hosted backend.\r\n\r\n### Configuring OIDC\r\n\r\nBy default the tests will retrieve valid OIDC tokens on behalf of each user specified in `environment` in order to make API calls. However,\r\nif you wish to use JWTs instead, you may set the `oidc_client_id` environment variable which will use OIDC authentication instead of SAML.\r\n\r\nIn order to run the integration tests they need to have a valid OIDC client id which can be obtains by performing the following steps:\r\n\r\n1. Go to the \"[Register your application](https://developer.bentley.com/register/)\" page and sign in\r\n1. Click 'New App'\r\n1. Select \"SPA\" application\r\n1. Specify a client name (can be anything you want)\r\n1. Add `http://localhost:5000` as a redirect url\r\n1. Hit 'Next' to finish\r\n\r\n### Actually running the tests\r\n\r\nOnce all the required environment variables are setup, to run the integration tests:\r\n\r\n1. Install dependencies: `npm install`\r\n2. Clean output: `npm run clean`\r\n3. Build source: `npm run build`\r\n4. Run tests: `npm test:integration`\r\n\r\n## Development instructions\r\n\r\nThe base 'after all' and 'before all' hooks are implemented in TestSetup.test.ts. Any cleanup and setup steps should be added here.\r\n\r\nThe `TestContext` class follows the singleton pattern and will automatically be setup when its static instance is invoked via its `TestContext.instance()`.\r\nThe setup uses a [.env file](./.env) and `process.env` to populate the `TestContext`.\r\n"
|
|
89
89
|
}
|