File tree 1 file changed +3
-0
lines changed
go/test/endtoend/vtgate/grpc_server_auth_static
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -139,6 +139,7 @@ func TestMain(m *testing.M) {
139
139
os .Exit (exitcode )
140
140
}
141
141
142
+ // TestAuthenticatedUserWithAccess verifies that an authenticated gRPC static user with ACL access can execute queries
142
143
func TestAuthenticatedUserWithAccess (t * testing.T ) {
143
144
ctx , cancel := context .WithCancel (context .Background ())
144
145
defer cancel ()
@@ -155,6 +156,7 @@ func TestAuthenticatedUserWithAccess(t *testing.T) {
155
156
assert .NoError (t , err )
156
157
}
157
158
159
+ // TestAuthenticatedUserNoAccess verifies that an authenticated gRPC static user with no ACL access cannot execute queries
158
160
func TestAuthenticatedUserNoAccess (t * testing.T ) {
159
161
ctx , cancel := context .WithCancel (context .Background ())
160
162
defer cancel ()
@@ -173,6 +175,7 @@ func TestAuthenticatedUserNoAccess(t *testing.T) {
173
175
assert .Contains (t , err .Error (), "for table 'test_table' (ACL check error)" )
174
176
}
175
177
178
+ // TestUnauthenticatedUser verifies that an unauthenticated gRPC user cannot execute queries
176
179
func TestUnauthenticatedUser (t * testing.T ) {
177
180
ctx , cancel := context .WithCancel (context .Background ())
178
181
defer cancel ()
You can’t perform that action at this time.
0 commit comments