providertest

package
v0.4.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package providertest contains a standard test suite for provider implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeclareTestSuite

func DeclareTestSuite(
	setUp func(context.Context) TestContext,
)

DeclareTestSuite declares a Ginkgo test suite for a provider implementation.

Types

type TestContext

type TestContext struct {
	Provider      provider.Provider
	Domain        string
	GetRecords    func(ctx context.Context) ([]dns.RR, error)
	DeleteRecords func(ctx context.Context, service string) error
}

TestContext contains provider-specific testing-related information.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL