File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -325,6 +325,25 @@ jobs:
325325 fi
326326 displayName: Install ODBC Driver
327327
328+ - script : |
329+ # Install mssql-tools to get sqlcmd
330+ sudo ACCEPT_EULA=Y apt-get install -y mssql-tools
331+
332+ # Test SQL Server authentication
333+ echo "Testing SQL Server authentication with SA user..."
334+ export PATH="$PATH:/opt/mssql-tools/bin"
335+
336+ # Try to connect and run a simple query
337+ if sqlcmd -S localhost -U sa -P "$(TestAppPassword)" -Q "SELECT 1 AS test" -t 30; then
338+ echo "✅ SQL Server authentication successful!"
339+ else
340+ echo "❌ SQL Server authentication FAILED!"
341+ echo "Container logs:"
342+ docker logs $(docker ps -q --filter ancestor=mcr.microsoft.com/mssql/server:2022-latest)
343+ exit 1
344+ fi
345+ displayName: Test SQL Server Authentication
346+
328347 - script : |
329348 # Since pylibmc isn't supported for Python 3.12+
330349 # We need to install libmemcached-dev to build it - dependency for Django test suite
You can’t perform that action at this time.
0 commit comments