зеркало из https://github.com/github/vitess-gh.git
Merge pull request #1930 from youtube/unsecure-username
Replacing space with underscore in unsecure username
This commit is contained in:
Коммит
4ddff73b91
|
@ -28,7 +28,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
unsecureClient = "unsecure grpc client"
|
||||
unsecureClient = "unsecure_grpc_client"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -347,7 +347,7 @@ class TestSecure(unittest.TestCase):
|
|||
shards=['0'])
|
||||
|
||||
# not passing any immediate caller id should fail as using
|
||||
# the unsecure user "unsecure grpc client"
|
||||
# the unsecure user "unsecure_grpc_client"
|
||||
cursor.set_effective_caller_id(None)
|
||||
try:
|
||||
cursor.execute('select * from vt_insert_test', {})
|
||||
|
@ -356,7 +356,7 @@ class TestSecure(unittest.TestCase):
|
|||
s = str(e)
|
||||
self.assertIn('table acl error', s)
|
||||
self.assertIn('cannot run PASS_SELECT on table', s)
|
||||
self.assertIn('unsecure grpc client', s)
|
||||
self.assertIn('unsecure_grpc_client', s)
|
||||
|
||||
# 'vtgate client 1' is authorized to access vt_insert_test
|
||||
cursor.set_effective_caller_id(vtgate_client.CallerID(
|
||||
|
|
Загрузка…
Ссылка в новой задаче