acctest_helper

package
v0.3.22 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBT_CLOUD_VERSION = "versionless"
)

Variables

View Source
var TestAccProtoV6ProviderFactories = map[string]func() (tfprotov6.ProviderServer, error){
	"dbtcloud": func() (tfprotov6.ProviderServer, error) {
		upgradedSdkProvider, err := tf5to6server.UpgradeServer(
			context.Background(),
			provider.SDKProvider("test")().GRPCProvider,
		)
		if err != nil {
			log.Fatal(err)
		}
		providers := []func() tfprotov6.ProviderServer{
			func() tfprotov6.ProviderServer {
				return upgradedSdkProvider
			},
			providerserver.NewProtocol6(provider.New()),
		}

		return tf6muxserver.NewMuxServer(context.Background(), providers...)
	},
}

Functions

func HelperTestDataSourceSchema added in v0.3.11

func HelperTestDataSourceSchema[DS datasource.DataSource](t *testing.T, ds DS)

func HelperTestResourceSchema added in v0.3.11

func HelperTestResourceSchema[R resource.Resource](t *testing.T, r R)

func IsDbtCloudPR added in v0.3.7

func IsDbtCloudPR() bool

func SharedClient

func SharedClient() (*dbt_cloud.Client, error)

func TestAccPreCheck added in v0.3.5

func TestAccPreCheck(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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