tut

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlanFixture

type PlanFixture struct {
	Plan interface{}
	Json string
}

func Plan

func Plan(t *testing.T) PlanFixture

func PlanWithConfig

func PlanWithConfig(t *testing.T, config PlanFixtureConfig) PlanFixture

PlanWithConfig runs a terraform plan. See plan elements in https://www.terraform.io/docs/internals/json-format.html.

func (*PlanFixture) AssertResourceCounts

func (f *PlanFixture) AssertResourceCounts(t *testing.T, expected map[string]int)

type PlanFixtureConfig

type PlanFixtureConfig struct {
	Vars               map[string]string
	ModuleReplacements map[string]string
}

type ResourceCount

type ResourceCount struct {
	Resource string
	Count    int
}

func (ResourceCount) Equal

func (r ResourceCount) Equal(s ResourceCount) bool

func (ResourceCount) String

func (r ResourceCount) String() string

type ResourceCounts

type ResourceCounts struct {
	Counts []ResourceCount
}

Jump to

Keyboard shortcuts

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