Skip to content

Commit bc456b3

Browse files
committed
Usernames with spaces no longer cause problems
Apparently a username with spaces in name does no longer cause problems.
1 parent f7a5158 commit bc456b3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

influxdb/tests/server_tests/client_test_with_server.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,6 @@ def test_create_user_blank_username(self):
199199
rsp = list(self.cli.query("SHOW USERS")['results'])
200200
self.assertEqual(rsp, [])
201201

202-
def test_create_user_invalid_username(self):
203-
with self.assertRaises(InfluxDBClientError) as ctx:
204-
self.cli.create_user('very invalid', 'secret_password')
205-
self.assertEqual(400, ctx.exception.code)
206-
self.assertIn('{"error":"error parsing query: '
207-
'found invalid, expected WITH',
208-
ctx.exception.content)
209-
rsp = list(self.cli.query("SHOW USERS")['results'])
210-
self.assertEqual(rsp, [])
211-
212202
def test_drop_user(self):
213203
self.cli.query("CREATE USER test WITH PASSWORD 'test'")
214204
self.cli.drop_user('test')

0 commit comments

Comments
 (0)