Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Configure ¶
func Configure(t *testing.T, schema schema.Schema, tfConfig map[string]cty.Value, puConfig resource.PropertyMap)
Configure will assert that a provider who's configuration is described by schema will observe the same inputs when configured in via HCL with the inputs tfInputs and when bridged and configured with Pulumi and puInputs.
The idea is that the "Configured Provider" should not be able to tell if it was configured via HCL or Pulumi YAML:
+--------------------+ +---------------------+ | Terraform Provider |--------------------->| Configure(tfInputs) | +--------------------+ +---------------------+ | \ | \ | \ | +---------------------+ | tfbridge.ShimProvider | Configured Provider | | +---------------------+ | / | / V / +--------------------+ +---------------------+ | Pulumi Provider |--------------------->| Configure(puInputs) | +--------------------+ +---------------------+
Configure should be safe to run in parallel.
func MakeConfigure ¶
func MakeConfigure(schema schema.Schema, tfConfig map[string]cty.Value, puConfig resource.PropertyMap) func(t *testing.T)
MakeConfigure returns a testing subtest of Configure.
func TestMyProperty(t *testing.T) { t.Run("my-subtest", crosstests.MakeConfigure(schema, tfConfig, puConfig)) }
For details on the test itself, see Configure.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.