Yuan
5638ef520a
chore: fix typos in tests ( #672 )
2025-06-06 14:43:57 +00:00
Yuan
e615e355d5
chore: dedup execute sql integration tests ( #600 )
...
Dedup the execute sql integration tests across postgres, mysql, and sql
server.
2025-05-22 22:21:07 +00:00
prernakakkar-google
6083a224aa
Feat: Add Execute sql tool for SQL Server(MSSQL) ( #585 )
...
This tool can be used across mssql(SQL Server) sources.
`mssql-execute-sql` config is as below:
```
tools:
mssql_execute_sql_tool:
kind: "mssql-execute-sql"
source: my-mssql-source
description: Use this tool to execute sql.
```
The `mssql-execute-sql` tool takes one parameter. Example request as
follow:
```
curl -X POST -H "Content-Type: application/json" -d '{"sql": "SELECT 1"}' http://127.0.0.1:5000/api/tool/mssql_execute_sql_tool/invoke
```
Reference for bug: b/416163913
---------
Co-authored-by: Yuan <45984206+Yuan325@users.noreply.github.com >
Co-authored-by: Mend Renovate <bot@renovateapp.com >
Co-authored-by: Kurtis Van Gent <31518063+kurtisvg@users.noreply.github.com >
Co-authored-by: Anubhav Dhawan <anubhavdhawan@google.com >
Co-authored-by: Huan Chen <142538604+Genesis929@users.noreply.github.com >
2025-05-22 00:10:55 +05:30
Yuan
a6c17c96f3
test: cleanup integration test ( #498 )
...
Remove cleaning `\\` or `\` in `got` and `want` strings of test cases.
This is to prevent future the need to manually clean strings before
comparing. This also allows us to be aware of the amount of backspace to
prevent accidental escaping in src code.
Update integration test that is affected. This includes moving the
`want` of test cases for `my-param-tool` invocation to each sources
since spanner have a different format (return id as strings instead of
int).
2025-04-29 11:57:47 -07:00
Yuan
59f4452755
ci: optimize integration tests with shared compile step ( #477 )
...
Reduces test time >50%.
Added a step to compile all test files and run tests based on the name.
Also separated all tests to it's own package.
2025-04-23 15:18:59 -07:00