Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TestAccProvider *schema.Provider TestAccProviders map[string]*schema.Provider TestExternalProviders map[string]resource.ExternalProvider TestAccFrameworkProvider *provider.FrameworkProvider )
View Source
var ( Preferable_plans = []string{"x1.small.x86", "t1.small.x86", "c2.medium.x86", "c3.small.x86", "c3.medium.x86", "m3.small.x86"} Preferable_metros = []string{"ch", "ny", "sv", "ty", "am"} Preferable_os = []string{"ubuntu_20_04"} )
list of plans and metros and os used as filter criteria to find available hardware to run tests
View Source
var ProtoV5ProviderFactories = map[string]func() (tfprotov5.ProviderServer, error){ "equinix": func() (tfprotov5.ProviderServer, error) { ctx := context.Background() providers := []func() tfprotov5.ProviderServer{ TestAccProviders["equinix"].GRPCProvider, providerserver.NewProtocol5( TestAccFrameworkProvider, ), } muxServer, err := tf5muxserver.NewMuxServer(ctx, providers...) if err != nil { return nil, err } return muxServer.ProviderServer(), nil }, }
Functions ¶
func ConfAccMetalDevice_base ¶
This function should be used to find available plans in all test where a metal_device resource is needed.
TODO consider adding a datasource for equinix_metal_operating_system and making the local.os conditional
https://github.com/equinix/terraform-provider-equinix/pull/220#discussion_r915418418equinix_metal_operating_system https://github.com/equinix/terraform-provider-equinix/discussions/221
func TestAccCheckMetalSSHKeyExists ¶
func TestAccCheckMetalSSHKeyExists(n string, key *metalv1.SSHKey) resource.TestCheckFunc
func TestAccPreCheck ¶ added in v1.27.0
func TestAccPreCheckMetal ¶
func TestDeviceTerminationTime ¶
func TestDeviceTerminationTime() string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.