Skip to content

Commit bb3f19c

Browse files
wip
1 parent 0f8e4ea commit bb3f19c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_influxdb_client_3_integration.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,14 @@ def test_auth_error_token(self):
6464
test_id = time.time_ns()
6565
with self.assertRaises(InfluxDBError) as err:
6666
self.client.write(f"integration_test_python,type=used value=123.0,test_id={test_id}i")
67-
self.assertEqual('unauthorized access', err.exception.message) # Cloud
67+
self.assertEqual('Authorization header was malformed, the request was not in the form of \'Authorization: <auth-scheme> <token>\', supported auth-schemes are Bearer, Token and Basic', err.exception.message) # Cloud
6868

6969
def test_auth_error_auth_scheme(self):
7070
self.client = InfluxDBClient3(host=self.host, database=self.database, token=self.token, auth_scheme='Any')
7171
test_id = time.time_ns()
7272
with self.assertRaises(InfluxDBError) as err:
7373
self.client.write(f"integration_test_python,type=used value=123.0,test_id={test_id}i")
74-
self.assertEqual('unauthorized access', err.exception.message) # Cloud
74+
self.assertEqual('Authorization header was malformed, the request was not in the form of \'Authorization: <auth-scheme> <token>\', supported auth-schemes are Bearer, Token and Basic', err.exception.message) # Cloud
7575

7676
def test_error_headers(self):
7777
self.client = InfluxDBClient3(host=self.host, database=self.database, token=self.token)

0 commit comments

Comments
 (0)