testbase

package
v1.58.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisabledTests = map[string]bool{
	"dashboards":         false,
	"notifications":      false,
	"custom_services":    false,
	"aws_credentials":    false,
	"k8s_credentials":    false,
	"azure_credentials":  false,
	"auto_tags":          false,
	"alerting_profiles":  false,
	"management_zones":   false,
	"request_attributes": false,
}
View Source
var TestAccExternalProviders map[string]resource.ExternalProvider
View Source
var TestAccProvider *schema.Provider
View Source
var TestAccProviderFactories = map[string]func() (*schema.Provider, error){
	"dynatrace": func() (*schema.Provider, error) {
		return provider.Provider(), nil
	},
}
View Source
var TestAccProviders map[string]*schema.Provider

Functions

func CompareLocalRemote

func CompareLocalRemote(test ResourceTest, n string, localJSONFile string, t *testing.T) resource.TestCheckFunc

func CompareLocalRemoteExt added in v1.3.0

func CompareLocalRemoteExt(test ResourceTest, n string, localJSONFile string, t *testing.T, loadHTTPOnly bool) resource.TestCheckFunc

func DeepEqual

func DeepEqual(a any, b any) bool

func LoadHTTP

func LoadHTTP(url string, token string) (map[string]any, error)

func LoadLocal

func LoadLocal(file string) (map[string]any, error)

func LoadLocalN added in v1.11.0

func LoadLocalN(file string, n string) (map[string]any, error)

func TestAccPreCheck

func TestAccPreCheck(t *testing.T)

Types

type ResourceTest

type ResourceTest interface {
	ResourceKey() string
	CreateTestCase(string, string, *testing.T) (*resource.TestCase, error)
	Anonymize(m map[string]any)
	URL(id string) string
}

Jump to

Keyboard shortcuts

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