mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
52ae93cf97
* builtin/providers: implement terraform remote state datasource as providers.Interface * append and return diags separately (to match the idiomatic usage elsewhere in Terraform) * diagnostic summary style improvements * update tests to pass config to schema.CoerceValue * trust that the schema will be enforced and there is no need to check that a given attribute exists * added dataSourceRemoteStateGetSchema() (effectively replacing a function that was inappropriately removed) for consistency with other terraform providers * builtin/provider terraform test: added InternalValidate() test for dataSourceRemoteStateGetSchema
25 lines
411 B
Go
25 lines
411 B
Go
package terraform
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/hashicorp/terraform/providers"
|
|
)
|
|
|
|
var testAccProviders map[string]*Provider
|
|
var testAccProvider *Provider
|
|
|
|
func init() {
|
|
testAccProvider = NewProvider()
|
|
testAccProviders = map[string]*Provider{
|
|
"terraform": testAccProvider,
|
|
}
|
|
}
|
|
|
|
func TestProvider_impl(t *testing.T) {
|
|
var _ providers.Interface = NewProvider()
|
|
}
|
|
|
|
func testAccPreCheck(t *testing.T) {
|
|
}
|