mirror of
https://github.com/GreptimeTeam/greptimedb.git
synced 2025-12-22 22:20:02 +00:00
fix: TLS option validate and merge (#7401)
* chore: unify gRPC server tls behaviour Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix: test Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: add validate and merge tls Signed-off-by: shuiyisong <xixing.sys@gmail.com> * chore: remove mut in func sig and add back test Signed-off-by: shuiyisong <xixing.sys@gmail.com> * fix: test Signed-off-by: shuiyisong <xixing.sys@gmail.com> --------- Signed-off-by: shuiyisong <xixing.sys@gmail.com>
This commit is contained in:
@@ -1010,7 +1010,8 @@ pub async fn test_grpc_tls_config(store_type: StorageType) {
|
||||
let runtime = Runtime::builder().build().unwrap();
|
||||
let grpc_builder =
|
||||
GrpcServerBuilder::new(config.clone(), runtime).with_tls_config(config.tls);
|
||||
assert!(grpc_builder.is_err());
|
||||
// ok but print warning
|
||||
assert!(grpc_builder.is_ok());
|
||||
}
|
||||
|
||||
let _ = fe_grpc_server.shutdown().await;
|
||||
|
||||
Reference in New Issue
Block a user