Merge pull request #4 from pr0ton11/copilot/sub-pr-3

[WIP] Add cert-manager ACME conformance tests and expand documentation
This commit is contained in:
Marc Singer 2026-02-21 08:47:32 +01:00 committed by GitHub
commit 7fb73df8ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 8 deletions

View file

@ -9,10 +9,10 @@
This solver can be used with [desec.io](https://desec.io) DNS API. The documentation of the API can be found [here](https://desec.readthedocs.io/en/latest/) This solver can be used with [desec.io](https://desec.io) DNS API. The documentation of the API can be found [here](https://desec.readthedocs.io/en/latest/)
## Requirements ## Requirements
- [go](https://golang.org) => 1.26.0 - [go](https://golang.org) >= 1.26.0
- [helm](https://helm.sh/) >= v3.0.0 - [helm](https://helm.sh/) >= v3.0.0
- [kuberentes](https://kubernetes.io/) => 1.25.0 - [kubernetes](https://kubernetes.io/) >= 1.25.0
- [cert-manager](https://cert-manager.io/) => 1.19.0 - [cert-manager](https://cert-manager.io/) >= 1.19.0
## Installation ## Installation
@ -75,7 +75,7 @@ spec:
key: token key: token
name: desec-io-token name: desec-io-token
groupName: acme.pr0ton11.github.com groupName: acme.pr0ton11.github.com
solverName: desec solverName: deSEC
``` ```
## Create a manual certificate ## Create a manual certificate
@ -150,7 +150,7 @@ data:
type: Opaque type: Opaque
``` ```
Define a **TEST_ZONE_NAME** matching to your authenticaton creditials. Define a **TEST_ZONE_NAME** matching to your authentication credentials.
```bash ```bash
$ TEST_ZONE_NAME=example.com. make test $ TEST_ZONE_NAME=example.com. make test

View file

@ -1,6 +1,7 @@
package main package main
import ( import (
"os"
"testing" "testing"
acmetest "github.com/cert-manager/cert-manager/test/acme" acmetest "github.com/cert-manager/cert-manager/test/acme"
@ -21,9 +22,13 @@ func TestRunsSuite(t *testing.T) {
// acmetest.SetManifestPath("testdata/my-custom-solver"), // acmetest.SetManifestPath("testdata/my-custom-solver"),
// acmetest.SetBinariesPath("_test/kubebuilder/bin"), // acmetest.SetBinariesPath("_test/kubebuilder/bin"),
//) //)
solver := &solver.DeSECDNSProviderSolver{} desecSolver := &solver.DeSECDNSProviderSolver{}
fixture := acmetest.NewFixture(solver, zoneName := os.Getenv("TEST_ZONE_NAME")
acmetest.SetResolvedZone("example.com."), if zoneName == "" {
t.Skip("TEST_ZONE_NAME not set")
}
fixture := acmetest.NewFixture(desecSolver,
acmetest.SetResolvedZone(zoneName),
acmetest.SetManifestPath("testdata/desec"), acmetest.SetManifestPath("testdata/desec"),
acmetest.SetDNSServer("127.0.0.1:59351"), acmetest.SetDNSServer("127.0.0.1:59351"),
acmetest.SetUseAuthoritative(false), acmetest.SetUseAuthoritative(false),