Fix an integration test with authentication tokens
It was injecting `Bearer` schema even if the token is absent, and `aiohttp`
didn't like it in combination with Basic Auth (username + password). When
the token is absent, the `Authorization:` header should be absent too.
@@ -55,7 +55,6 @@ async def login_fn(**kwargs):
insecure=config.cluster.get('insecure-skip-tls-verify'),
username=config.user.get('username'),
password=config.user.get('password'),
- scheme='Bearer',
token=config.user.get('token'),
certificate_path=cert.filename() if cert else None, # can be a temporary file
private_key_path=pkey.filename() if pkey else None, # can be a temporary file
