Fix self-signed cert error in tests.
This commit is contained in:
parent
82e32b3db8
commit
a684c9f049
|
@ -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)
|
||||
|
|
|
@ -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,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue