Skip to content

Commit 62859af

Browse files
brendarWilliamLu99
authored andcommitted
Add doc comments to tests
Signed-off-by: Brendan Dougherty <[email protected]>
1 parent e8db47f commit 62859af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

go/test/endtoend/vtgate/grpc_server_auth_static/main_test.go

+3
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ func TestMain(m *testing.M) {
139139
os.Exit(exitcode)
140140
}
141141

142+
// TestAuthenticatedUserWithAccess verifies that an authenticated gRPC static user with ACL access can execute queries
142143
func TestAuthenticatedUserWithAccess(t *testing.T) {
143144
ctx, cancel := context.WithCancel(context.Background())
144145
defer cancel()
@@ -155,6 +156,7 @@ func TestAuthenticatedUserWithAccess(t *testing.T) {
155156
assert.NoError(t, err)
156157
}
157158

159+
// TestAuthenticatedUserNoAccess verifies that an authenticated gRPC static user with no ACL access cannot execute queries
158160
func TestAuthenticatedUserNoAccess(t *testing.T) {
159161
ctx, cancel := context.WithCancel(context.Background())
160162
defer cancel()
@@ -173,6 +175,7 @@ func TestAuthenticatedUserNoAccess(t *testing.T) {
173175
assert.Contains(t, err.Error(), "for table 'test_table' (ACL check error)")
174176
}
175177

178+
// TestUnauthenticatedUser verifies that an unauthenticated gRPC user cannot execute queries
176179
func TestUnauthenticatedUser(t *testing.T) {
177180
ctx, cancel := context.WithCancel(context.Background())
178181
defer cancel()

0 commit comments

Comments
 (0)