2018-05-31 21:39:45 +02:00
|
|
|
package terraform
|
|
|
|
|
|
|
|
import (
|
2020-02-03 14:18:04 +01:00
|
|
|
"github.com/hashicorp/terraform/addrs"
|
2018-07-05 19:33:29 +02:00
|
|
|
"github.com/hashicorp/terraform/configs/configschema"
|
2018-05-31 21:39:45 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
func simpleTestSchemas() *Schemas {
|
|
|
|
provider := simpleMockProvider()
|
|
|
|
provisioner := simpleMockProvisioner()
|
2021-01-11 21:45:50 +01:00
|
|
|
|
2018-05-31 21:39:45 +02:00
|
|
|
return &Schemas{
|
2020-02-03 14:18:04 +01:00
|
|
|
Providers: map[addrs.Provider]*ProviderSchema{
|
2021-01-11 21:45:50 +01:00
|
|
|
addrs.NewDefaultProvider("test"): provider.ProviderSchema(),
|
2018-05-31 21:39:45 +02:00
|
|
|
},
|
2018-09-25 19:12:56 +02:00
|
|
|
Provisioners: map[string]*configschema.Block{
|
2018-09-05 23:35:30 +02:00
|
|
|
"test": provisioner.GetSchemaResponse.Provisioner,
|
2018-05-31 21:39:45 +02:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|