Skip to content

Commit 3ecf9a7

Browse files
authored
Merge pull request #98 from rachit-lambdatest/IN-9571
Adding lambdatest tunnel options parameters
2 parents 90c0bdb + 92e9b9c commit 3ecf9a7

File tree

3 files changed

+281
-4
lines changed

3 files changed

+281
-4
lines changed

README.md

Lines changed: 278 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,288 @@ Type: `Boolean`<br>
7474
Default: `false`
7575

7676
### lambdatestOpts
77-
Specified optional will be passed down to LambdaTest Tunnel. See [this list](https://www.lambdatest.com/support/docs/lambda-tunnel-modifiers/) for details.
77+
Specified optional will be passed down to LambdaTest Tunnel.
7878

7979
Type: `Object`<br>
8080
Default: `{}`
8181

82+
Given below is an comprehensive list of all options available:
83+
84+
#### tunnelName
85+
Specifies the custom LambdaTest Tunnel name to be used.
86+
87+
**Example:**
88+
```json
89+
{"tunnelName": "my_custom_tunnel"}
90+
```
91+
92+
#### port
93+
Port for LambdaTest Tunnel to activate.
94+
95+
**Example:**
96+
```json
97+
{"port": 33000}
98+
```
99+
#### user
100+
LambdaTest username.
101+
102+
**Example:**
103+
```json
104+
{"user": "your_username"}
105+
```
106+
107+
#### key
108+
LambdaTest accessKey.
109+
110+
**Example:**
111+
```json
112+
{"key": "your_access_key"}
113+
```
114+
115+
#### verbose
116+
Should every proxy request be logged to stdout.
117+
118+
**Example:**
119+
```json
120+
{"verbose": true}
121+
```
122+
123+
#### logFile
124+
Location of the LambdaTest Tunnel log file.
125+
126+
**Example:**
127+
```json
128+
{"logFile": "/path/to/log/file"}
129+
```
130+
131+
#### config
132+
133+
Path of the config file to use.
134+
**Example:**
135+
```json
136+
{"config": "/path/to/config/file"}
137+
```
138+
139+
#### dir
140+
Specify the local directory that will be served by a file server on Tunnel port.
141+
142+
**Example:**
143+
```json
144+
{"dir": "/path/to/local/directory"}
145+
```
146+
147+
148+
#### proxyHost
149+
Specifies the Tunnel proxy port hostname.
150+
151+
**Example:**
152+
```json
153+
{"proxyHost": "proxy.example.com"}
154+
```
155+
#### proxyUser
156+
Specifies the Tunnel proxy port username.
157+
158+
**Example:**
159+
```json
160+
{"proxyUser": "your_proxy_username"}
161+
```
162+
163+
#### proxyPass
164+
Specifies the Tunnel proxy port password.
165+
166+
**Example:**
167+
```json
168+
{"proxyPass": "your_proxy_password"}
169+
```
170+
171+
#### proxyPort
172+
Specifies the port number where Tunnel proxy will activate.
173+
174+
**Example:**
175+
```json
176+
{"proxyPort": 8080}
177+
```
178+
179+
#### egressOnly
180+
Uses proxy settings only for outbound requests.
181+
182+
**Example:**
183+
```json
184+
{"egressOnly": true}
185+
```
186+
187+
188+
#### ingressOnly
189+
Routes only incoming traffic via the proxy specified.
190+
191+
**Example:**
192+
```json
193+
{"ingressOnly": true}
194+
```
195+
196+
197+
#### pacfile
198+
To use PAC (Proxy Auto-Configuration) in local testing, provide
199+
path of a PAC file.
200+
201+
**Example:**
202+
```json
203+
{"pacfile": "/path/to/pacfile"}
204+
```
205+
206+
#### loadBalanced
207+
Activates [Load Balancing](https://www.lambdatest.com/support/docs/load-balancing-in-lambda-tunnel/) for LambdaTest Tunnel.
208+
209+
**Example:**
210+
```json
211+
{"loadBalanced": true}
212+
```
213+
214+
#### mode
215+
Specifies in which mode tunnel should run "ssh" or "ws". (default "ssh").
216+
217+
**Example:**
218+
```json
219+
{"mode": "ssh"}
220+
```
221+
222+
#### sshConnType
223+
Specify type of ssh connection (over_22, over_443, over_ws). To use –sshConnType, specify ––mode ssh flag first.
224+
225+
**Example:**
226+
```json
227+
{"sshConnType": "over_22"}
228+
```
229+
230+
#### maxSSHConnections
231+
Increase the SSH connection from Tunnel Client to Tunnel Server. Maximum allowed value is 30.
232+
233+
**Example:**
234+
```json
235+
{"maxSSHConnections": 2}
236+
```
237+
238+
#### sharedTunnel
239+
Sharing Tunnel among team members.
240+
241+
**Example:**
242+
```json
243+
{"sharedTunnel": true}
244+
```
245+
246+
#### env
247+
The environment on which the LambdaTest Tunnel will run.
248+
249+
**Example:**
250+
```json
251+
{"env": "production"}
252+
```
253+
254+
255+
#### infoAPIPort
256+
Exposes [Tunnel Info API](https://www.lambdatest.com/support/docs/advanced-tunnel-features/#tunnelinfoapis) at the specified port.
257+
258+
**Example:**
259+
```json
260+
{"infoAPIPort": 8080}
261+
```
262+
263+
#### callbackURL
264+
Callback URL for tunnel status.
265+
266+
**Example:**
267+
```json
268+
{"callbackURL": "https://example.com/callback"}
269+
```
270+
271+
272+
#### allowHosts
273+
Comma separated list of hosts to route via tunnel. Everything else will be routed via Internet.
274+
275+
**Example:**
276+
```json
277+
{"allowHosts": "example.com,anotherexample.com"}
278+
```
279+
280+
#### bypassHosts
281+
Comma separated list of hosts to bypass from tunnel. These will be routed via internet.
282+
283+
**Example:**
284+
```json
285+
{"bypassHosts": "example.com,anotherexample.com"}
286+
```
287+
288+
289+
290+
#### clientCert
291+
mTLS Client Certificate filepath.
292+
293+
**Example:**
294+
```json
295+
{"clientCert": "/path/to/client_certificate"}
296+
```
297+
298+
#### clientKey
299+
mTLS Client Key filepath.
300+
301+
**Example:**
302+
```json
303+
{"clientKey": "/path/to/client_key"}
304+
```
305+
306+
#### mTLSHosts
307+
Comma separated list of mTLS hosts.
308+
309+
**Example:**
310+
```json
311+
{"mTLSHosts": "example.com,anotherexample.com"}
312+
```
313+
314+
315+
#### dns
316+
Comma separated list of DNS Servers.
317+
318+
**Example:**
319+
```json
320+
{"dns": "8.8.8.8,8.8.4.4"}
321+
```
322+
323+
324+
#### mitm
325+
Enable the [MITM (Man-in-the-middle)](https://www.lambdatest.com/support/docs/advanced-tunnel-features/#mitmlocaltesting) mode for LambdaTest Tunnel.
326+
327+
**Example:**
328+
```json
329+
{"mitm": true}
330+
```
331+
332+
#### ntlm
333+
To use Microsoft NTLM (Windows NT LAN Manager) authentication for communication or transport purposes.
334+
335+
**Example:**
336+
```json
337+
{"ntlm": true}
338+
```
339+
340+
#### pidfile
341+
Path of pidfile, where process Id will be written.
342+
343+
**Example:**
344+
```json
345+
{"pidfile": "/path/to/pidfile"}
346+
```
347+
348+
349+
#### usePrivateIp
350+
Sets remote address to an internal IP of client machine.
351+
352+
**Example:**
353+
```json
354+
{"usePrivateIp": true}
355+
```
356+
357+
You can find more about these options [here](https://www.lambdatest.com/support/docs/lambda-tunnel-modifiers/).
358+
82359
### preferScenarioName
83360
Cucumber only. Set the session name to the Scenario name if only a single Scenario ran.
84361
Useful when running in parallel with [wdio-cucumber-parallel-execution](https://github.com/SimitTomar/wdio-cucumber-parallel-execution).

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wdio-lambdatest-service",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "A WebdriverIO service that manages tunnel and job metadata for LambdaTest.",
55
"author": "LambdaTest <[email protected]>",
66
"contributors": [

0 commit comments

Comments
 (0)