testing

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MPL-2.0 Imports: 17 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestResource

func TestResource(t *testing.T, resource ResourceTestCase)

IntegrationTest - creates resources using terraform, fetches them to db and compares with expected values

Types

type ResourceTestCase added in v0.6.0

type ResourceTestCase struct {
	Provider       *provider.Provider
	Table          *schema.Table
	Config         string
	SkipEmptyJsonB bool
	// SkipEmptyColumn will skip checking results for empty columns
	SkipEmptyColumn bool
	// SkipEmptyRows will skip checking that results were returned and will just check that fetch worked
	SkipEmptyRows bool
}

Jump to

Keyboard shortcuts

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