crosstestsimpl

package
v3.96.0 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package crosstestsimpl (cross-tests implementation) contains code meant to be shared across cross-test implementations (SDKv2, PF) but not used by people writing tests themselves.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InferPulumiValue

func InferPulumiValue(t T, schema shim.SchemaMap, infos map[string]*info.Schema, v cty.Value) resource.PropertyMap

InferPulumiValue generates a Pulumi value that is semantically equivalent to v.

InferPulumiValue takes into account schema information.

func VerifyBasicDiffAgreement

func VerifyBasicDiffAgreement(t T, tfActions []string, us auto.UpdateSummary, diffResponse PulumiDiffResp)

Types

type DiffResult

type DiffResult struct {
	TFDiff     tfcheck.TFChange
	PulumiDiff PulumiDiffResp
	// TFOut is the stdout of the terraform plan command
	TFOut string
	// PulumiOut is the stdout of the pulumi preview command
	PulumiOut string
}

type PulumiDiffResp

type PulumiDiffResp struct {
	DetailedDiff        map[string]interface{} `json:"detailedDiff"`
	DeleteBeforeReplace bool                   `json:"deleteBeforeReplace"`
}

func GetPulumiDiffResponse

func GetPulumiDiffResponse(t T, entries []grpclog.GrpcLogEntry) PulumiDiffResp

type T

type T interface {
	Logf(string, ...any)
	TempDir() string
	Skip(...any)
	require.TestingT
	assert.TestingT
	pulumitest.PT
}

Abstractions to allow tests to work against both *testing.T and [rapid.TB].

Directories

Path Synopsis
hclwrite is a shared interface for writing HCL files for cross-tests.
hclwrite is a shared interface for writing HCL files for cross-tests.

Jump to

Keyboard shortcuts

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