Skip to content

Commit

Permalink
Remove Azure Database for MySQL integration tests.
Browse files Browse the repository at this point in the history
The Azure Credits for Open Source sponsorship has ended.
  • Loading branch information
bgrainger committed Jul 11, 2024
1 parent 6794641 commit e6bb115
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 45 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,3 @@ Development of MySqlConnector is supported by:
[![Faithlife](https://files.logoscdn.com/v1/files/4319104/content.svg?signature=3szVb3XmOfYMAxIv-LmuNYL_290)](https://faithlife.com/about)

[Faithlife](https://faithlife.com/about) ([View jobs](https://faithlife.com/careers))

[![Microsoft Azure](https://upload.wikimedia.org/wikipedia/commons/thumb/f/fa/Microsoft_Azure.svg/75px-Microsoft_Azure.svg.png)](https://azure.microsoft.com/en-us/overview/open-source/)

[Azure Credits for Open Source](https://opensource.microsoft.com/azure-credits)
41 changes: 0 additions & 41 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,47 +102,6 @@ jobs:
image: 'mysql:8.0'
connectionString: 'server=localhost;port=3306;user id=mysqltest;password=test;database=conformance;ssl mode=none;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True'

- job: azure_mysql_integration_tests
condition: ne('True', variables['System.PullRequest.IsFork'])
displayName: 'Azure MySQL Integration Tests'
pool:
vmimage: 'windows-latest'
steps:
- task: PowerShell@2
displayName: Create Database
inputs:
targetType: inline
script: "mysql -u$(Azure MySQL Root User) -p$(Azure MySQL Root Password) -h '$(Azure MySQL Host)' -e 'create schema mysqltest_$(Build.BuildId) collate utf8mb4_0900_ai_ci;'"
- task: UseDotNet@2
displayName: 'Install .NET'
inputs:
version: $(DotNetCoreSdkVersion)
- task: PowerShell@2
displayName: 'Copy Azure config'
inputs:
targetType: inline
script: Copy-Item -Path ".\.ci\config\config.ssl.json" -Destination ".\tests\IntegrationTests\config.json"
- task: DotNetCoreCLI@2
displayName: 'Restore packages'
inputs:
command: 'restore'
- task: DotNetCoreCLI@2
displayName: 'Integration tests (net8.0)'
inputs:
command: 'test'
projects: 'tests/IntegrationTests/IntegrationTests.csproj'
arguments: '-c Release -f net8.0 --no-restore'
testRunTitle: ${{ format('{0}, $(Agent.OS), {1}, {2}', 'Azure', 'net8.0', 'SSL') }}
env:
DATA__UNSUPPORTEDFEATURES: 'CachingSha2Password,Ed25519,GlobalLog,KnownCertificateAuthority,QueryAttributes,RsaEncryption,Sha256Password,StreamingResults,Timeout,Tls11,Tls13,UnixDomainSocket,ZeroDateTime'
DATA__CONNECTIONSTRING: "$(AzureConnectionString);database=mysqltest_$(Build.BuildId);ssl mode=Required;DefaultCommandTimeout=3600;AllowPublicKeyRetrieval=True"
- task: PowerShell@2
displayName: Drop Database
condition: always()
inputs:
targetType: inline
script: "mysql -u$(Azure MySQL Root User) -p$(Azure MySQL Root Password) -h '$(Azure MySQL Host)' -e 'drop schema if exists mysqltest_$(Build.BuildId);'"

- job: windows_integration_tests_1
displayName: 'Windows Integration Tests (Part 1)'
pool:
Expand Down

0 comments on commit e6bb115

Please sign in to comment.