mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-20 11:48:24 -06:00
Significant changes to the provider interface left a lot of the tests in a non-buildable state. This set of changes gets the tests building again but does not attempt to make them run to completion or pass. After this commit, it is possible to build a test program for the ./terraform package but it will panic during its run. That will be addressed in subsequent commits.
19 lines
409 B
Go
19 lines
409 B
Go
package terraform
|
|
|
|
import (
|
|
"github.com/hashicorp/terraform/configs/configschema"
|
|
)
|
|
|
|
func simpleTestSchemas() *Schemas {
|
|
provider := simpleMockProvider()
|
|
provisioner := simpleMockProvisioner()
|
|
return &Schemas{
|
|
providers: map[string]*ProviderSchema{
|
|
"test": provider.GetSchemaReturn,
|
|
},
|
|
provisioners: map[string]*configschema.Block{
|
|
"test": provisioner.GetSchemaResponse.Provisioner,
|
|
},
|
|
}
|
|
}
|