testbase

package
Version: v1.0.12 Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: Apache-2.0 Imports: 13 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 DeepEqual

func DeepEqual(a interface{}, b interface{}) bool

func LoadHTTP

func LoadHTTP(url string, token string) (map[string]interface{}, error)

func LoadLocal

func LoadLocal(file string) (map[string]interface{}, 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]interface{})
	URL(id string) string
}

Jump to

Keyboard shortcuts

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