Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Acctest - fix mysql RP test case failures #28882

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

sinbai
Copy link
Contributor

@sinbai sinbai commented Feb 26, 2025

PR fixes the following test case failures in Teamcity:

  1. TestAccMySqlFlexibleServer_pitr and TestAccMySqlFlexibleServer_updateReplicationRole fail with the following error, ignore_changes source_server_id because API does not return its value when create_mode is PointInTimeRestore/Replica.
    image

Refer to: PR #27295, PR #27442.

  1. TestAccDataSourceMySqlFlexibleServer_basic fails with the following error, ignore_changes zone because API returns a value for it when it is not specified.
    image

  2. Some test cases failied with the following ZoneNotAvailableForRegion error, this is because the Available Zone of eastus2 has changed from 1 and 2 to 2, 3.
    image

  3. Some test cases fail with the following 500 Internal Server Error, per this document, the value B_Standard_B1s of sku_name is currently not supported, change to B_Standard_B1ms instead of B_Standard_B1s to fix tests failure .
    image

  4. Fix test case TestAccMySqlFlexibleServer_updateMaintenanceWindow fails with the following issues.
    image

image

Note: Remove zone and ignore change zone since the zone was removed from func basic in PR, which caused error "zone cannot be changed independently". Given that removing zone from func basic is correct, and Maintenance Window testing does not require zone to be specified, so remove zone and ignore change zone to fix the failure.

Test Results:
https://hashicorp.teamcity.com/buildConfiguration/TF_AzureRM_AZURERM_SERVICE_PUBLIC_MYSQL?branch=refs%2Fpull%2F28882%2Fmerge&buildTypeTab=overview

@sinbai sinbai changed the title Acctest - fix ZoneNotAvailableForRegion issue for mysql RP Acctest - fix mysql RP test case failures Feb 27, 2025
@sinbai sinbai marked this pull request as ready for review February 28, 2025 09:54
@sinbai sinbai requested a review from a team as a code owner February 28, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant