Skip to content

test(p/HUAWEICLOUD): add conversion golden tests - #5171

Merged
TomOnTime merged 2 commits into
DNSControl:mainfrom
huihuimoe:huaweicloud-golden-tests
Dec 5, 2026
Merged

TomOnTime merged 2 commits into
DNSControl:mainfrom
huihuimoe:huaweicloud-golden-tests

Conversation

@huihuimoe

Copy link
Copy Markdown
Member

adding conversion golden tests for the Huawei Cloud provider to fill its missing test coverage

Summary

  • Wire providers.ConversionObserver into huaweicloudProvider.Initialize and wrap nativeToRecords / recordsToNative calls.
  • Add convert_golden_test.go to replay recorded conversions offline.
  • Add recorded fixtures in providers/huaweicloud/test_data/ with project_id, zone_id, and RRset id redacted.
  • Add TestConvertHuaweiMetadata in convert_test.go to cover non-default hw_line, hw_weight, and hw_rrset_key.

Testing

  • go test -failfast -run TestDNSProviders -v ./integrationTest -args -verbose -profile HUAWEICLOUD -record: PASS (560.7s).
  • go test -v -count=1 ./providers/huaweicloud/: PASS (0.9s).

@huihuimoe
huihuimoe requested a review from TomOnTime as a code owner December 3, 2026 08:53
@TomOnTime

Copy link
Copy Markdown
Collaborator

Thank you so much! This makes it so much easier for me to do testing.

Best,
Tom

@TomOnTime
TomOnTime merged commit b775e2d into DNSControl:main Dec 5, 2026
9 of 10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants