From 2cbb1a549640b7fc8ee1e28e04938f302281262c Mon Sep 17 00:00:00 2001 From: mptyl Date: Tue, 11 Aug 2026 19:35:33 +0200 Subject: [PATCH] test: align SQL ingress envelope assertions with name/sql --- tools/thothctl/internal/workspaceops/operations_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/thothctl/internal/workspaceops/operations_test.go b/tools/thothctl/internal/workspaceops/operations_test.go index 9bd7496a..843f1cbe 100644 --- a/tools/thothctl/internal/workspaceops/operations_test.go +++ b/tools/thothctl/internal/workspaceops/operations_test.go @@ -58,7 +58,7 @@ func TestExecuteSuggestFksStreamsSQLFileContentsOnStdin(t *testing.T) { t.Fatalf("sqlFiles = %#v", envelope["fromSql"]) } file, ok := sqlFiles[0].(map[string]any) - if !ok || file["contents"] != "select 1;\n" { + if !ok || file["sql"] != "select 1;\n" || file["name"] != "query.sql" { t.Fatalf("sql file envelope = %#v", sqlFiles[0]) } return compose.Result{Stdout: successResult("schema-suggest-fks")}, nil