@@ -537,6 +537,18 @@ def test_dump_configuration(tmp_path) -> None:
537537 user_data_collection = UserDataCollection (
538538 feedback_enabled = False , feedback_storage = None
539539 ),
540+ database = DatabaseConfiguration (
541+ sqlite = None ,
542+ postgres = PostgreSQLDatabaseConfiguration (
543+ db = "lightspeed_stack" ,
544+ user = "ls_user" ,
545+ password = "ls_password" ,
546+ port = 5432 ,
547+ ca_cert_path = None ,
548+ ssl_mode = "require" ,
549+ gss_encmode = "disable" ,
550+ ),
551+ ),
540552 mcp_servers = [],
541553 customization = None ,
542554 inference = InferenceConfiguration (
@@ -601,8 +613,8 @@ def test_dump_configuration(tmp_path) -> None:
601613 },
602614 "llama_stack" : {
603615 "url" : None ,
604- "api_key" : "whatever" ,
605616 "use_as_library_client" : True ,
617+ "api_key" : "**********" ,
606618 "library_client_config_path" : "tests/configuration/run.yaml" ,
607619 },
608620 "user_data_collection" : {
@@ -625,8 +637,18 @@ def test_dump_configuration(tmp_path) -> None:
625637 "default_model" : "default_model" ,
626638 },
627639 "database" : {
628- "sqlite" : {"db_path" : "/tmp/lightspeed-stack.db" },
629- "postgres" : None ,
640+ "sqlite" : None ,
641+ "postgres" : {
642+ "host" : "localhost" ,
643+ "port" : 5432 ,
644+ "db" : "lightspeed_stack" ,
645+ "user" : "ls_user" ,
646+ "password" : "**********" ,
647+ "ssl_mode" : "require" ,
648+ "gss_encmode" : "disable" ,
649+ "namespace" : "lightspeed-stack" ,
650+ "ca_cert_path" : None ,
651+ },
630652 },
631653 "authorization" : None ,
632654 }
@@ -980,7 +1002,7 @@ def test_postgresql_database_configuration() -> None:
9801002 assert c .port == 5432
9811003 assert c .db == "db"
9821004 assert c .user == "user"
983- assert c .password == "password"
1005+ assert c .password . get_secret_value () == "password"
9841006 assert c .ssl_mode == POSTGRES_DEFAULT_SSL_MODE
9851007 assert c .gss_encmode == POSTGRES_DEFAULT_GSS_ENCMODE
9861008 assert c .namespace == "lightspeed-stack"
0 commit comments