Skip to content

[WIP] INFOMANIAK provider #3574

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

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

jbelien
Copy link
Contributor

@jbelien jbelien commented May 18, 2025

Warning

This is a work in progress!

This is a provider for @Infomaniak (https://www.infomaniak.com/).

This is my first contribution in Go and in DNSControl ; any feedback is welcome (even while I'm working on it).

Please create the GitHub label 'provider-INFOMANIAK'.

@jbelien jbelien changed the title [WIP] Infomaniak provider [WIP] INFOMANIAK provider May 18, 2025
@jbelien
Copy link
Contributor Author

jbelien commented May 24, 2025

I'm currently hitting a bump with the integration tests.

=== RUN   TestDNSProviders
Testing Profile="INFOMANIAK" (TYPE="INFOMANIAK")
=== RUN   TestDNSProviders/glop.be
=== RUN   TestDNSProviders/glop.be/Clean_Slate:Empty
CREATE: [ns12.infomaniak.ch.]
    helpers_integration_test.go:169: 
        - DELETE  NS ns12.infomaniak.ch.glop.be. ttl=3600
    helpers_integration_test.go:174: failed to delete record 25810013 in zone glop.be: Cannot delete object
=== RUN   TestDNSProviders/glop.be/00:A:Create_A
CREATE: [ns12.infomaniak.ch.]
CREATE: [1.1.1.1]
    helpers_integration_test.go:169: 
        - DELETE  NS ns12.infomaniak.ch.glop.be. ttl=3600
    helpers_integration_test.go:174: failed to delete record 25810013 in zone glop.be: Cannot delete object

It seems that I can't delete that NS record.
How should I handle that NS record ?
Is there a way to handle NS record separately ?
Is there a way to "skip" it in the integration tests ?
Thanks!

@tlimoncelli
Copy link
Contributor

It seems that I can't delete that NS record.

Could it be a permission issue?
Many providers don't allow you to delete NS records that they install.

How should I handle that NS record ?
Is there a way to handle NS record separately ?

For now, try skipping if the type == NS. Let's see if A, CNAME, MX have the same problem. If they have the same problem, it could be permissions or a problem with how the API is being used. If the problem is only with NS records, we might just have to skip them.

Is there a way to "skip" it in the integration tests ?

You can! Try go test -v -verbose -profile INFOMANIAK -start 16 -end 20

More info in: https://docs.dnscontrol.org/developer-info/integration-tests

@jbelien
Copy link
Contributor Author

jbelien commented May 29, 2025

@tlimoncelli Thanks for your reply! That was indeed the direction I was taking! 👍
I'll come back with some updates in the next few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants