Repository navigation
Commit eb0d72a
authored
comprehensive test coverage, token auth, and code quality improvements (#3306)
Test Coverage:
- Add GrpcAdminServiceIT with ping, server info, database listing, create/drop, and info tests
- Add GrpcServerIT with query, command, CRUD, transaction, streaming, and bulk insert tests
- Add unit tests for GrpcServerPlugin, GrpcAuthInterceptor, GrpcLoggingInterceptor,
GrpcMetricsInterceptor, GrpcCompressionInterceptor, and CompressionAwareService
- Add GrpcTypeConverter unit tests for complex types and round-trip conversions
Token Authentication:
- Implement Bearer token authentication via GrpcAuthInterceptor
- Integrate HttpAuthSessionManager for session validation
- Share authentication tokens between HTTP and gRPC APIs
Refactoring:
- Extract GrpcTypeConverter with timestamp helpers, value conversion, and parameter handling
- Replace reflection-based server info with direct API calls
- Return UNIMPLEMENTED for user management endpoints (not yet supported)
Code Quality Fixes:
- Fix grpcService field assignment (prevented NPE on shutdown)
- Add null check for database in getDatabaseInfo()
- Simplify vertex type detection using Stream.anyMatch()
Documentation:
- Add comprehensive gRPC API documentation (docs/gRPC-API.md)1 parent c7cd467 commit eb0d72a
16 files changed
Lines changed: 3000 additions & 264 deletions
File tree
- docs
- grpcw
- src
- main/java/com/arcadedb/server/grpc
- test/java/com/arcadedb/server/grpc
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
57 | 82 | | |
58 | 83 | | |
59 | 84 | | |
| |||
0 commit comments