You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## How to solve : NPM packages are blocked by network firewalls
239
+
## How to solve : NPM packages are blocked by network firewalls
240
+
241
+
This network issue manifests in two stages. One stage is when you run the tests
242
+
interactively, i.e. using `npm` directly in the host machine. The steps below configures
243
+
npm, in the host machine, so that it is not blocked by network firewalls.
240
244
241
245
1. Make sure you are connected to the VPN in Full Tunnel mode. Artifactory returns an HTTP 403 forbidden error from anywhere outside the full corporate network.
242
246
2.`cd selenium`
@@ -252,3 +256,24 @@ Press ENTER to open in the browser...
252
256
8. You should get the message `Login performed successfully. Redirecting to home page.`
253
257
254
258
For further information, checkout https://github.gwd.broadcom.net/TNZ/rabbitmq-private-docs/wiki/Artifactory-NPM.
259
+
260
+
If you need to build a `mocha-test` image because you want to run the tests in
261
+
silent mode, i.e. in the background, you need to configure NPM in docker.
262
+
Follow these steps:
263
+
264
+
1. Navigate to https://usw1.packages.broadcom.com/
265
+
2. Log in with your Broadcom credentials
266
+
3. Click on your username in the top-right corner
267
+
4. Select "Edit Profile"
268
+
5. In the left sidebar, click "Generate an Identity Token"
269
+
6. Copy the generated token
270
+
7. Edit file selenium/.npmrc and make sure it has this format.
Note: The `Dockerfile` copies the .npmrc into the image.
276
+
277
+
For further information, check out https://github.gwd.broadcom.net/TNZ/rabbitmq-private-docs/wiki/Artifactory-Docker#step-1-generate-artifactory-token.
278
+
279
+
Note: You will notice that building the mocha-image takes far longer now.
0 commit comments