File tree 5 files changed +49
-1
lines changed
5 files changed +49
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ class Configs:
7
7
'custom_data' : 'customData' ,
8
8
'public' : 'public' ,
9
9
'tunnel_identifier' : 'tunnelIdentifier' ,
10
+ 'tunnel_name' : 'tunnelName' ,
11
+ 'tunnel_owner' : 'tunnelOwner' ,
10
12
'parent_tunnel' : 'parentTunnel'
11
13
}
12
14
Original file line number Diff line number Diff line change 31
31
'iedriver_version' : 'iedriverVersion' ,
32
32
'max_duration' : 'maxDuration' ,
33
33
'name' : 'name' ,
34
+ # parent_tunnel is deprecated and being replaced with tunnel_owner.
34
35
'parent_tunnel' : 'parentTunnel' ,
35
36
'prerun' : 'prerun' ,
36
37
'priority' : 'priority' ,
42
43
'selenium_version' : 'seleniumVersion' ,
43
44
'tags' : 'tags' ,
44
45
'time_zone' : 'timeZone' ,
46
+ # tunnel_identifier is deprecated and being replaced with tunnel_name.
45
47
'tunnel_identifier' : 'tunnelIdentifier' ,
48
+ 'tunnel_name' : 'tunnelName' ,
49
+ 'tunnel_owner' : 'tunnelOwner' ,
46
50
'video_upload_on_pass' : 'videoUploadOnPass' ,
47
51
'capture_performance' : 'capturePerformance'
48
52
}
Original file line number Diff line number Diff line change @@ -117,6 +117,20 @@ def test_accepts_sauce_values_with_dict(self):
117
117
assert sauce .tunnel_identifier == 'foobar'
118
118
assert sauce .video_upload_on_pass is False
119
119
120
+ def test_accepts_tunnel (self ):
121
+ options = {'build' : 'bar' ,
122
+ 'idleTimeout' : 3 ,
123
+ 'name' : 'foo' ,
124
+ 'tunnelOwner' : 'bar' ,
125
+ 'tunnelName' : 'foobar' }
126
+
127
+ sauce = SauceOptions .chrome (** options )
128
+
129
+ assert sauce .build == 'bar'
130
+ assert sauce .name == 'foo'
131
+ assert sauce .tunnel_owner == 'bar'
132
+ assert sauce .tunnel_name == 'foobar'
133
+
120
134
def test_accepts_sauce_values_as_params (self ):
121
135
custom_data = {'foo' : 'foo' ,
122
136
'bar' : 'bar' }
Original file line number Diff line number Diff line change @@ -293,6 +293,20 @@ def test_sauce_options(self):
293
293
assert options .tunnel_identifier == 'tunnelname'
294
294
assert options .video_upload_on_pass is False
295
295
296
+ def test_accepts_tunnel (self ):
297
+ options = {'build' : 'bar' ,
298
+ 'idleTimeout' : 3 ,
299
+ 'name' : 'foo' ,
300
+ 'tunnelOwner' : 'bar' ,
301
+ 'tunnelName' : 'foobar' }
302
+
303
+ sauce = SauceOptions .edge (** options )
304
+
305
+ assert sauce .build == 'bar'
306
+ assert sauce .name == 'foo'
307
+ assert sauce .tunnel_owner == 'bar'
308
+ assert sauce .tunnel_name == 'foobar'
309
+
296
310
def test_setting_browser_name (self ):
297
311
options = SauceOptions .edge ()
298
312
Original file line number Diff line number Diff line change @@ -352,7 +352,7 @@ def test_setting_capabilities(self):
352
352
assert options .build == 'Sample Build Name'
353
353
assert options .command_timeout == 2
354
354
assert options .custom_data == custom_data
355
- assert options .extended_debugging == True
355
+ assert options .extended_debugging is True
356
356
assert options .idle_timeout == 3
357
357
assert options .geckodriver_version == '0.23'
358
358
assert options .max_duration == 300
@@ -487,3 +487,17 @@ def test_capabilities_for_selenium(self):
487
487
}
488
488
489
489
assert options .to_capabilities () == expected_capabilities
490
+
491
+ def test_accepts_tunnel (self ):
492
+ options = {'build' : 'bar' ,
493
+ 'idleTimeout' : 3 ,
494
+ 'name' : 'foo' ,
495
+ 'tunnelOwner' : 'bar' ,
496
+ 'tunnelName' : 'foobar' }
497
+
498
+ sauce = SauceOptions .firefox (** options )
499
+
500
+ assert sauce .build == 'bar'
501
+ assert sauce .name == 'foo'
502
+ assert sauce .tunnel_owner == 'bar'
503
+ assert sauce .tunnel_name == 'foobar'
You can’t perform that action at this time.
0 commit comments