Testing

The Golang SDK provides a mock server for testing purposes. A mock server is a simple HTTP server that is generated from the OpenAPI specification. A mock server is a standalone application. It’s built on top of go-openapi. You can find the openapi codegen file in the ./mock directory.

To run the mock server:

  • ACME

  • Enrollment API

  • Admin API

go run mock/acme/main.go
go run mock/enrollment/main.go
go run mock/admin/main.go