mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
configs/configupgrade: Use mock provider instead of test provider
The test provider comes with a lot of baggage since it's designed to be used as a plugin, so instead we'll just use the mock provider implementation directly, and so we can (in a later commit) configure it appropriately for what our tests need here.
This commit is contained in:
parent
477ea0d360
commit
961056c08d
@ -9,8 +9,8 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
testprovider "github.com/hashicorp/terraform/builtin/providers/test"
|
||||
"github.com/hashicorp/terraform/providers"
|
||||
"github.com/hashicorp/terraform/terraform"
|
||||
)
|
||||
|
||||
func TestUpgradeValid(t *testing.T) {
|
||||
@ -178,6 +178,7 @@ func diffSourceFilesFallback(got, want []byte) []byte {
|
||||
|
||||
var testProviders = map[string]providers.Factory{
|
||||
"test": providers.Factory(func() (providers.Interface, error) {
|
||||
return testprovider.Provider(), nil
|
||||
p := &terraform.MockProvider{}
|
||||
return p, nil
|
||||
}),
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user