@@ -125,6 +125,67 @@ jobs:
125
125
steps :
126
126
- template : ' .ci/mysqlconnector-tests-steps.yml'
127
127
128
+ - job : windows_integration_tests
129
+ dependsOn : windows_build
130
+ displayName : ' Windows Integration Tests'
131
+ pool :
132
+ vmimage : ' windows-latest'
133
+ steps :
134
+ - script : |
135
+ mkdir C:\mysql
136
+ CD /D C:\mysql
137
+ curl -fsS --retry 3 --retry-connrefused -o mysql.msi https://cdn.mysql.com/archives/mysql-installer/mysql-installer-community-8.0.15.0.msi
138
+ msiexec /q /log install.txt /i mysql.msi datadir=C:\mysql installdir=C:\mysql
139
+ call "C:\Program Files (x86)\MySQL\MySQL Installer for Windows\MySQLInstallerConsole.exe" community install server;8.0.15;x64:*:port=3306;rootpasswd=test;servicename=MySQL -silent
140
+ netsh advfirewall firewall add rule name="Allow mysql" dir=in action=allow edge=yes remoteip=any protocol=TCP localport=3306
141
+ displayName: Install MySQL Server
142
+ - script : |
143
+ "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest -e "SET GLOBAL local_infile=1; SET GLOBAL log_bin_trust_function_creators=1;"
144
+ "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest -e "CREATE SCHEMA conformance COLLATE utf8mb4_bin;"
145
+ "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init.sql
146
+ "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init_sha256.sql
147
+ "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql" -uroot -ptest < $(Build.Repository.LocalPath)\.ci\server\init_caching_sha2.sql
148
+ displayName: Configure MySQL Server
149
+ - task : UseDotNet@2
150
+ displayName : ' Install .NET Core'
151
+ inputs :
152
+ version : $(DotNetCoreSdkVersion)
153
+ - task : DownloadPipelineArtifact@0
154
+ condition : always()
155
+ inputs :
156
+ artifactName : ' Conformance.Tests-3.0-$(Agent.OS)'
157
+ targetPath : ' $(Build.BinariesDirectory)/3.0'
158
+ - task : DotNetCoreCLI@2
159
+ displayName : ' Windows Conformance Tests'
160
+ inputs :
161
+ command : ' custom'
162
+ custom : ' vstest'
163
+ arguments : ' $(Build.BinariesDirectory)/3.0/Conformance.Tests.dll /logger:trx'
164
+ env :
165
+ CONNECTION_STRING : ' server=localhost;port=3306;user id=mysqltest;password=test;database=conformance;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True'
166
+ TF_BUILD : $(TF_BUILD)
167
+ - task : PublishTestResults@2
168
+ condition : always()
169
+ inputs :
170
+ testResultsFormat : VSTest
171
+ testResultsFiles : ' **/*.trx'
172
+ testRunTitle : ' Windows Conformance Tests'
173
+ failTaskOnFailedTests : true
174
+ - template : ' .ci/sidebyside-test-steps.yml'
175
+ parameters :
176
+ image : ' mysql-8.0.15'
177
+ unsupportedFeatures : ' Ed25519,Tls11,UnixDomainSocket'
178
+ connectionString : ' server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True'
179
+ platform : ' netcoreapp3.0'
180
+ description : ' No SSL'
181
+ - template : ' .ci/sidebyside-test-steps.yml'
182
+ parameters :
183
+ image : ' mysql-8.0.15'
184
+ unsupportedFeatures : ' Ed25519,Tls11,UnixDomainSocket'
185
+ connectionString : ' server=localhost;port=3306;user id=mysqltest;password=test;database=mysqltest;ssl mode=none;UseCompression=True;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True'
186
+ platform : ' netcoreapp3.0'
187
+ description : ' Compression, No SSL'
188
+
128
189
- job : linux_integration_tests
129
190
dependsOn : linux_build
130
191
displayName : ' Linux Tests'
0 commit comments