@@ -84,6 +84,7 @@ fn test_env_config_s3() -> anyhow::Result<()> {
8484 ( "STORAGE_WEBHDFS_ENDPOINT_URL" , Some ( "endpoint_url" ) ) ,
8585 ( "STORAGE_WEBHDFS_ROOT" , Some ( "/path/to/root" ) ) ,
8686 ( "QUERY_TABLE_ENGINE_MEMORY_ENABLED" , Some ( "true" ) ) ,
87+ ( "QUERY_PRODUCT_NAME" , Some ( "Cloud Query" ) ) ,
8788 ( "CONFIG_FILE" , None ) ,
8889 ] ,
8990 || {
@@ -94,6 +95,7 @@ fn test_env_config_s3() -> anyhow::Result<()> {
9495 assert_eq ! ( "DEBUG" , configured. log. level) ;
9596
9697 assert_eq ! ( "tenant-1" , configured. query. tenant_id) ;
98+ assert_eq ! ( "Cloud Query" , configured. query. product_name) ;
9799 assert_eq ! ( "cluster-1" , configured. query. cluster_id) ;
98100 assert_eq ! ( "127.0.0.1" , configured. query. mysql_handler_host) ;
99101 assert_eq ! ( 3306 , configured. query. mysql_handler_port) ;
@@ -677,6 +679,7 @@ fn test_override_config() -> anyhow::Result<()> {
677679
678680[query]
679681tenant_id = "tenant_id_from_file"
682+ product_name = "Cloud Query"
680683cluster_id = ""
681684num_cpus = 0
682685mysql_handler_host = "127.0.0.1"
@@ -811,6 +814,7 @@ path = "_cache"
811814 assert ! ( !cfg. log. query. log_query_on) ;
812815
813816 assert_eq ! ( "tenant_id_from_env" , cfg. query. tenant_id) ;
817+ assert_eq ! ( "Cloud Query" , cfg. query. product_name) ;
814818 assert_eq ! ( "access_key_id_from_env" , cfg. storage. s3. access_key_id) ;
815819 assert_eq ! ( "s3" , cfg. storage. typ) ;
816820
0 commit comments