linode: Modernize record conversion#4560
Conversation
|
Dear @koesie10, GitHub could not add you as a reviewer, so I sent you an invitation for triage access to this repository. Please accept the invitation when convenient, then take a look at this PR and run the provider integration test. Thank you! |
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
@TomOnTime Sorry for the late response. To make the integration tests run, I've had to make one change: diff --git a/providers/linode/linodeProvider.go b/providers/linode/linodeProvider.go
index f474864c..99de1ddf 100644
--- a/providers/linode/linodeProvider.go
+++ b/providers/linode/linodeProvider.go
@@ -216,6 +216,7 @@ func (api *linodeProvider) GetZoneRecordsCorrections(dc *models.DomainConfig, ex
case diff2.CHANGE:
id := change.Old[0].Original.(*domainRecord).ID
if id == 0 { // Skip ID 0, these are the default nameservers always present
+ actualChangeCount--
continue
}
req, err := toReq(dc, change.New[0])After that change, these are the failing tests: This was run using |
|
Interesting! They all seem to be having the same issue: "Expected 0 corrections on second run, but found 2." means that the correction was send/requested, but when it read things back there were still corrections to make, which mean the change request was malformed in some way. The fact that what its deleting (to correct the wrong change) is a label Line 313-ish: Hope that helps! |
|
koesie10: I don't have a way to contact you in case there is a problem with Github. Could you please email me at |
Dear @koesie10. I could use your help. I'm doing upgrades to the code base and I have no way to test your provider. Please run the integration test and let me know the result. How to run integration tests is here: https://docs.dnscontrol.org/developer-info/integration-tests
Summary
Validation
../../bin/is_modern.sh(Steps 1-7 clean)go test ./providers/linodebin/generate-all.shgo test ./...