Skip to content

Commit a8f327a

Browse files
committed
extra ILP/TCP for last remaining open issue
1 parent 112483e commit a8f327a

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

system_test/test.py

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
sys.dont_write_bytecode = True
2929
import os
3030

31-
import shutil
3231
import pathlib
3332
import math
3433
import datetime
@@ -90,6 +89,14 @@ def ns_to_qdb_date(at_ts_ns):
9089
token_y="9iYksF4L6mfmArupv0CMoyVAWjQ4gNIou5noG8")
9190

9291

92+
# All the keys are valid, but the user is wrong.
93+
AUTH_MALFORMED3 = dict(
94+
user="wrongUser",
95+
token=AUTH['token'],
96+
token_x=AUTH['token_x'],
97+
token_y=AUTH['token_y'])
98+
99+
93100
class TestSender(unittest.TestCase):
94101
def _mk_linesender(self, transactional=False):
95102
auth = AUTH if QDB_FIXTURE.auth else {}
@@ -617,6 +624,19 @@ def test_malformed_auth2(self):
617624
r'.*invalid Base64.*'):
618625
sender.connect()
619626

627+
def test_malformed_auth3(self):
628+
if not QDB_FIXTURE.auth:
629+
self.skipTest('No auth')
630+
631+
sender = qls.Sender(
632+
BUILD_MODE,
633+
QDB_FIXTURE.host,
634+
QDB_FIXTURE.line_tcp_port,
635+
**AUTH_MALFORMED3)
636+
637+
with sender:
638+
self._expect_eventual_disconnect(sender)
639+
620640
def test_tls_insecure_skip_verify(self):
621641
auth = AUTH if QDB_FIXTURE.auth else {}
622642
sender = qls.Sender(

0 commit comments

Comments
 (0)