oracledatabase: fix TestAccOracleDatabaseDbServers_basic - #18832
oracledatabase: fix TestAccOracleDatabaseDbServers_basic#18832SirGitsalot wants to merge 1 commit into
Conversation
|
Hi there, I'm the Modular magician. I've detected the following information about your changes for commit b89a7f9: Diff reportYour PR generated the following diffs in downstream repositories:
Test reportAnalytics
Affected Service Packages
Step 1: Replaying Mode 🟢 All tests passed in Replaying mode! No Recording was needed. View the replaying VCR build log @SirGitsalot VCR tests complete for b89a7f9! |
|
@modular-magician reassign-reviewer |
|
Googlers: For automatic test runs see go/terraform-auto-test-runs. @slevenick, a repository maintainer, has been assigned to review your changes. If you have not received review feedback within 2 business days, please leave a comment on this PR asking them to take a look. You can help make sure that review is quick by doing a self-review and by running impacted tests locally. |
Fixes nightly acceptance test failure for
TestAccOracleDatabaseDbServers_basic.Root Cause & Fix
Incorrect Template Variable in ID Construction:
DataSourceOracleDatabaseDbServersReadindata_source_oracle_database_db_servers.goconstructed the resource ID usingprojects/{{project}}/locations/{{location}}/cloudExadataInfrastructures/{{cloud_exadata_infrastructure_id}}/dbServers.The schema field name is
cloud_exadata_infrastructure(notcloud_exadata_infrastructure_id). This mismatch caused variable replacement to fail when setting the resource ID.Persist Project in ResourceData:
Added
d.Set("project", project)so that the resolved project is properly stored inschema.ResourceData, ensuringtpgresource.ReplaceVarsand subsequent state checks can access the project attribute.