File tree 2 files changed +11
-1
lines changed
2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1146,7 +1146,7 @@ def __init__(
1146
1146
if security is None and isinstance (address , str ):
1147
1147
security = _maybe_call_security_loader (address )
1148
1148
1149
- if security is None :
1149
+ if security is None or security is False :
1150
1150
security = Security ()
1151
1151
elif isinstance (security , dict ):
1152
1152
security = Security (** security )
Original file line number Diff line number Diff line change @@ -209,6 +209,16 @@ async def test_security_dict_input_no_security():
209
209
assert result == 2
210
210
211
211
212
+ @gen_test ()
213
+ async def test_security_bool_input_disabled_security ():
214
+ async with Scheduler (dashboard_address = ":0" , security = False ) as s :
215
+ async with Worker (s .address , security = False ):
216
+ async with Client (s .address , security = False , asynchronous = True ) as c :
217
+ result = await c .submit (inc , 1 )
218
+ assert c .security .require_encryption is False
219
+ assert result == 2
220
+
221
+
212
222
@gen_test ()
213
223
async def test_security_dict_input ():
214
224
conf = tls_config ()
You can’t perform that action at this time.
0 commit comments