File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
tests/opentelemetry-docker-tests/tests Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -112,9 +112,9 @@ def check_redis_connection():
112112
113113def new_mssql_connection () -> pyodbc .Connection :
114114 connection = pyodbc .connect (
115- f"DRIVER={{ODBC Driver 17 for SQL Server}};SERVER={ MSSQL_HOST } ,"
115+ f"DRIVER={{ODBC Driver 18 for SQL Server}};SERVER={ MSSQL_HOST } ,"
116116 f"{ MSSQL_PORT } ;DATABASE=master;UID={ MSSQL_USER } ;"
117- f"PWD={ MSSQL_PASSWORD } " ,
117+ f"PWD={ MSSQL_PASSWORD } ;TrustServerCertificate=yes; " ,
118118 autocommit = True ,
119119 )
120120 return connection
Original file line number Diff line number Diff line change @@ -1286,6 +1286,8 @@ changedir =
12861286 tests/opentelemetry-docker-tests/tests
12871287
12881288commands_pre =
1289+ sh -c " sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18 unixodbc-dev unixodbc"
1290+ python -c " import pyodbc; print(pyodbc.drivers())"
12891291 pip install {env:CORE_REPO}\# egg=opentelemetry-api&subdirectory=opentelemetry-api \
12901292 {env:CORE_REPO}\# egg=opentelemetry-semantic-conventions&subdirectory=opentelemetry-semantic-conventions \
12911293 {env:CORE_REPO}\# egg=opentelemetry-sdk&subdirectory=opentelemetry-sdk \
You can’t perform that action at this time.
0 commit comments