Fix self-signed cert error in tests.

This commit is contained in:
Sam Rose 2025-02-26 16:09:14 +00:00
parent 82e32b3db8
commit a684c9f049
No known key found for this signature in database
2 changed files with 3 additions and 3 deletions

View File

@ -235,7 +235,6 @@ jobs:
- name: Test server
env:
DATASOURCE: ${{ matrix.datasource }}
DEBUG: testcontainers*
run: |
if ${{ env.ONLY_AFFECTED_TASKS }}; then
AFFECTED=$(yarn --silent nx show projects --affected -t test --base=${{ env.NX_BASE_BRANCH }} -p @budibase/server)

View File

@ -23,7 +23,7 @@ export async function getDatasource(): Promise<Datasource> {
})
.withWaitStrategy(
Wait.forSuccessfulCommand(
"/opt/mssql-tools18/bin/sqlcmd -S localhost -U sa -P Password_123 -q 'SELECT 1'"
"/opt/mssql-tools18/bin/sqlcmd -C -S localhost -U sa -P Password_123 -q 'SELECT 1'"
).withStartupTimeout(20000)
)
)
@ -44,7 +44,8 @@ export async function getDatasource(): Promise<Datasource> {
user: "sa",
password: "Password_123",
options: {
encrypt: false,
encrypt: true,
trustServerCertificate: true,
},
},
}