Provider Configuration empty during Acceptance Testing


I’m having trouble injecting a provider configuration during Acceptance Tests.

If I run my provider (terraform plan) with this configuration:

provider "dummy" {
   some_block = {
      some_key = "some_value"

… it works fine. Under the function supplied to the provider ConfigureFunc, I can use d.Get("some_block").

But, if I configure the Provider in provider_test.go like so:

func init() {
	testAccProvider = Provider().(*schema.Provider)

	raw := map[string]interface{}{
		"some_block": map[string]interface{}{
			"some_key": "some_value",

	err := testAccProvider.Configure(terraform.NewResourceConfigRaw(raw))
	if err != nil {
		fmt.Printf("provider config error: %s", err)

	testAccProviders = map[string]terraform.ResourceProvider{
		"dummy": testAccProvider,

Then I cannot get the configuration from the function supplied to ConfigureFunc.

I didn’t want to fill this message with all the code, so if there is more detail I can provide you, please let me know.