Skip to content

Commit 1bd84e6

Browse files
authored
Merge pull request influxdata#337 from babilen/fix-empty-username-test
Fix test_create_user_blank_username
2 parents dbc2007 + 60e4054 commit 1bd84e6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

influxdb/tests/server_tests/client_test_with_server.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,7 @@ def test_get_list_users(self):
183183
def test_create_user_blank_username(self):
184184
with self.assertRaises(InfluxDBClientError) as ctx:
185185
self.cli.create_user('', 'secret_password')
186-
self.assertEqual(400, ctx.exception.code)
187-
self.assertIn('{"error":"error parsing query: '
188-
'found WITH, expected identifier',
186+
self.assertIn('username required',
189187
ctx.exception.content)
190188
rsp = list(self.cli.query("SHOW USERS")['results'])
191189
self.assertEqual(rsp, [])

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy