fix(backend): use plain string for host in test_input to fix JSON schema validation

The test_input host value should be a plain string (Pydantic coerces it
to SecretStr), not a SecretStr object which serializes as '**********'
and fails JSON schema validation in the block test framework.
This commit is contained in:
Zamil Majdy
2026-03-26 16:46:31 +07:00
parent 34101c4389
commit dade634b4a

View File

@@ -350,7 +350,7 @@ class SQLQueryBlock(Block):
test_input={
"query": "SELECT 1 AS test_col",
"database_type": DatabaseType.POSTGRES,
"host": SecretStr("localhost"),
"host": "localhost",
"port": 5432,
"database": "test_db",
"timeout": 30,