atf

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Overview

package atf or acceptance-test-framework consists of helper files to parse, validate and run acceptance test with vmaas specified terraform acceptance test case format

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acc

type Acc struct {
	PreCheck     func(t *testing.T)
	Providers    map[string]*schema.Provider
	GetAPI       GetAPIFunc
	ResourceName string
	Version      string
}

func (*Acc) RunDataSourceTests

func (a *Acc) RunDataSourceTests(t *testing.T)

RunDataSourceTests to run data source plan only test case. This will take first config from specific data source

func (*Acc) RunResourcePlanTest

func (a *Acc) RunResourcePlanTest(t *testing.T)

RunResourcePlanTest to run resource plan only test case. This will take first config from specific resource

func (*Acc) RunResourceTests

func (a *Acc) RunResourceTests(t *testing.T)

RunResourceTests creates test cases and run tests which includes create/update/delete/read

type GetAPIFunc

type GetAPIFunc func(attr map[string]string) (interface{}, error)

GetAPIFunc accepts terraform states attribures as params and expects response and error as return values

Jump to

Keyboard shortcuts

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