Skip to content

Commit 7775f03

Browse files
Not needed in OSS
1 parent 883e38b commit 7775f03

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

selenium/README.md

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -236,44 +236,3 @@ following command:
236236
MOCHA_DOCKER_FILE=\location\of\my\Dockerfile ./run-suites.sh
237237
```
238238

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.
244-
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.
246-
2. `cd selenium`
247-
3. `npm config set registry https://usw1.packages.broadcom.com/artifactory/api/npm/tds-rabbitmq-npm-virtual/ -L project`
248-
4. `npm login --auth-type=web`
249-
5. After you run the last command you should see the folowing sentence
250-
`Login at:
251-
https://usw1.packages.broadcom.com/ui/auth-provider/npm?uuid=JEGSj5dC8X4S8TGKPL2CbSPR3CSnVgvz5r3hMZAbioQy9o98Y7hKvQ7NjA7pxZ21upVkiP1pWkRjpb4CDUDRur4UFwdGhndcas5JexreDXpykBtGsy6
252-
Press ENTER to open in the browser...
253-
`
254-
6. Press enter so that it opens on a browser
255-
7. JFrog loads and it prompts you if you are loging in. You accept you are logging.
256-
8. You should get the message `Login performed successfully. Redirecting to home page.`
257-
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.
271-
```
272-
registry=https://usw1.packages.broadcom.com/artifactory/api/npm/tds-rabbitmq-npm-virtual/
273-
//usw1.packages.broadcom.com/artifactory/api/npm/tds-rabbitmq-npm-virtual/:_authToken=<paste_here_the_token>
274-
```
275-
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

Comments
 (0)