testacc

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AttributeIsNotSet = struct{ int }{-1}
View Source
var AttributeIsSet = struct{ int }{1}

Functions

func AttributeHasPrefix

func AttributeHasPrefix(prefix string) func(string) error

func AttributeMatchesJSON

func AttributeMatchesJSON(object string) func(string) error

func AttributeMatchesPattern

func AttributeMatchesPattern(pattern string) func(string) error

func GenerateAlias added in v0.3.5

func GenerateAlias(t *testing.T) string

func Run

func Run(t *testing.T, steps ...resource.TestStep)

func RunIsolated

func RunIsolated(t *testing.T, steps ...resource.TestStep)

func TestCase

func TestCase(t *testing.T, steps ...resource.TestStep) resource.TestCase

Types

type Resource

type Resource struct {
	Type string // the resource type without the 'descope_' prefix
	ID   string // the resource name in the Terraform config
	Name string // the value of the 'name' attribute
}

func Descoper added in v0.3.5

func Descoper(t *testing.T) *Resource

func ManagementKey added in v0.3.5

func ManagementKey(t *testing.T) *Resource

func Project

func Project(t *testing.T) *Resource

func (*Resource) Check

func (r *Resource) Check(checks map[string]any, extras ...resource.TestCheckFunc) resource.TestCheckFunc

func (*Resource) Config

func (r *Resource) Config(s ...string) string

func (*Resource) Path

func (r *Resource) Path() string

func (*Resource) Variables added in v0.1.12

func (r *Resource) Variables(s ...string) string

Jump to

Keyboard shortcuts

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