websupport: Modernize record conversion - #4584
Conversation
|
ACK, will take a look at it tomorrow. |
|
Hi @TomOnTime, I have attached results from the integration tests runs. There appears to have been a breaking change on how MX and SRV records read their priority. I will create an issue for it sometime next week and look into it. |
Thanks for the log! Here's some tips: (1) The "Expected 0 corrections on second run, but found 1." message means that the API call was made to create a record, but the wrong records were created. It tries to do a 2nd "push" which should have zero changes (if the first push worked)... but 1 change was found. In this case, either nativeToRecords or recordToNative is mishandling MX records. I've added printf's to help you debug this. (2) I've also added a TODO. Try the suggested code and let me know if it works. You'll probably want to try that after everything else works. (3) These failures indicate that Mikrotik just don't support these situations. You an disable the tests by updating auditrecords.go with rejectif.MxNull and rejectif.TxtHasTrailingSpace Hope that helps! Tom |
|
Oh... I also updated how MX and SRV records are handled. That might fix the problem! |
Dear @mtmn. 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
RecordConfigconstruction and target setters with record factoriesTesting
../../bin/is_modern.sh(Steps 1-7 clean)go test ./providers/websupportbin/generate-all.shgo test ./...