Skip to content

Commit c7806eb

Browse files
authored
Resource Identity - wrap tests to enable external provider support (hashicorp#31520)
1 parent f032450 commit c7806eb

File tree

82 files changed

+912
-1684
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+912
-1684
lines changed

internal/acceptance/testcase.go

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@ import (
88
"fmt"
99
"testing"
1010

11+
"github.com/hashicorp/go-version"
1112
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
1213
"github.com/hashicorp/terraform-plugin-testing/plancheck"
1314
"github.com/hashicorp/terraform-plugin-testing/terraform"
15+
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1416
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/helpers"
1517
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/testclient"
1618
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance/types"
@@ -42,6 +44,23 @@ func (td TestData) DataSourceTestInSequence(t *testing.T, steps []TestStep) {
4244
td.runAcceptanceSequentialTest(t, testCase)
4345
}
4446

47+
func (td TestData) ResourceIdentityTest(t *testing.T, steps []TestStep, sequential bool) {
48+
testCase := resource.TestCase{
49+
PreCheck: func() { PreCheck(t) },
50+
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
51+
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0"))),
52+
},
53+
Steps: steps,
54+
}
55+
56+
if sequential {
57+
td.runAcceptanceSequentialTest(t, testCase)
58+
return
59+
}
60+
61+
td.runAcceptanceTest(t, testCase)
62+
}
63+
4564
func (td TestData) ResourceTest(t *testing.T, testResource types.TestResource, steps []TestStep) {
4665
// Testing framework as of 1.6.0 no longer auto-refreshes state, so adding it back in here for all steps that update
4766
// the config rather than having to modify 1000's of tests individually to add a refresh-only step

internal/services/analysisservices/analysis_services_server_resource_identity_gen_test.go

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,28 @@
44
package analysisservices_test
55

66
import (
7-
"context"
87
"testing"
98

10-
"github.com/hashicorp/go-version"
11-
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
129
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1310
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1411
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
15-
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1612
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
17-
"github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework"
1813
)
1914

2015
func TestAccAnalysisServicesServer_resourceIdentity(t *testing.T) {
2116
data := acceptance.BuildTestData(t, "azurerm_analysis_services_server", "test")
2217
r := AnalysisServicesServerResource{}
2318

24-
resource.ParallelTest(t, resource.TestCase{
25-
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
26-
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0-rc2"))),
27-
},
28-
ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"),
29-
Steps: []resource.TestStep{
30-
{
31-
Config: r.basic(data),
32-
ConfigStateChecks: []statecheck.StateCheck{
33-
statecheck.ExpectIdentityValue("azurerm_analysis_services_server.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
34-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_analysis_services_server.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
35-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_analysis_services_server.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
36-
},
19+
data.ResourceIdentityTest(t, []acceptance.TestStep{
20+
{
21+
Config: r.basic(data),
22+
ConfigStateChecks: []statecheck.StateCheck{
23+
statecheck.ExpectIdentityValue("azurerm_analysis_services_server.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
24+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_analysis_services_server.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
25+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_analysis_services_server.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
3726
},
38-
data.ImportBlockWithResourceIdentityStep(false),
39-
data.ImportBlockWithIDStep(false),
4027
},
41-
})
28+
data.ImportBlockWithResourceIdentityStep(false),
29+
data.ImportBlockWithIDStep(false),
30+
}, false)
4231
}

internal/services/applicationinsights/application_insights_resource_identity_gen_test.go

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,28 @@
44
package applicationinsights_test
55

66
import (
7-
"context"
87
"testing"
98

10-
"github.com/hashicorp/go-version"
11-
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
129
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1310
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1411
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
15-
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1612
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
17-
"github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework"
1813
)
1914

2015
func TestAccApplicationInsights_resourceIdentity(t *testing.T) {
2116
data := acceptance.BuildTestData(t, "azurerm_application_insights", "test")
2217
r := ApplicationInsightsResource{}
2318

24-
resource.ParallelTest(t, resource.TestCase{
25-
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
26-
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0-rc2"))),
27-
},
28-
ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"),
29-
Steps: []resource.TestStep{
30-
{
31-
Config: r.basicForResourceIdentity(data),
32-
ConfigStateChecks: []statecheck.StateCheck{
33-
statecheck.ExpectIdentityValue("azurerm_application_insights.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
34-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
35-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
36-
},
19+
data.ResourceIdentityTest(t, []acceptance.TestStep{
20+
{
21+
Config: r.basicForResourceIdentity(data),
22+
ConfigStateChecks: []statecheck.StateCheck{
23+
statecheck.ExpectIdentityValue("azurerm_application_insights.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
24+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
25+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
3726
},
38-
data.ImportBlockWithResourceIdentityStep(false),
39-
data.ImportBlockWithIDStep(false),
4027
},
41-
})
28+
data.ImportBlockWithResourceIdentityStep(false),
29+
data.ImportBlockWithIDStep(false),
30+
}, false)
4231
}

internal/services/applicationinsights/application_insights_standard_web_test_resource_identity_gen_test.go

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,28 @@
44
package applicationinsights_test
55

66
import (
7-
"context"
87
"testing"
98

10-
"github.com/hashicorp/go-version"
11-
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
129
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1310
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1411
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
15-
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1612
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
17-
"github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework"
1813
)
1914

2015
func TestAccApplicationInsightsStandardWebTest_resourceIdentity(t *testing.T) {
2116
data := acceptance.BuildTestData(t, "azurerm_application_insights_standard_web_test", "test")
2217
r := ApplicationInsightsStandardWebTestResource{}
2318

24-
resource.ParallelTest(t, resource.TestCase{
25-
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
26-
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0-rc2"))),
27-
},
28-
ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"),
29-
Steps: []resource.TestStep{
30-
{
31-
Config: r.basicConfig(data),
32-
ConfigStateChecks: []statecheck.StateCheck{
33-
statecheck.ExpectIdentityValue("azurerm_application_insights_standard_web_test.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
34-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_standard_web_test.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
35-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_standard_web_test.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
36-
},
19+
data.ResourceIdentityTest(t, []acceptance.TestStep{
20+
{
21+
Config: r.basicConfig(data),
22+
ConfigStateChecks: []statecheck.StateCheck{
23+
statecheck.ExpectIdentityValue("azurerm_application_insights_standard_web_test.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
24+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_standard_web_test.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
25+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_standard_web_test.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
3726
},
38-
data.ImportBlockWithResourceIdentityStep(false),
39-
data.ImportBlockWithIDStep(false),
4027
},
41-
})
28+
data.ImportBlockWithResourceIdentityStep(false),
29+
data.ImportBlockWithIDStep(false),
30+
}, false)
4231
}

internal/services/applicationinsights/application_insights_web_test_resource_identity_gen_test.go

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,28 @@
44
package applicationinsights_test
55

66
import (
7-
"context"
87
"testing"
98

10-
"github.com/hashicorp/go-version"
11-
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
129
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1310
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1411
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
15-
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1612
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
17-
"github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework"
1813
)
1914

2015
func TestAccApplicationInsightsWebTest_resourceIdentity(t *testing.T) {
2116
data := acceptance.BuildTestData(t, "azurerm_application_insights_web_test", "test")
2217
r := ApplicationInsightsWebTestResource{}
2318

24-
resource.ParallelTest(t, resource.TestCase{
25-
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
26-
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0-rc2"))),
27-
},
28-
ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"),
29-
Steps: []resource.TestStep{
30-
{
31-
Config: r.basic(data),
32-
ConfigStateChecks: []statecheck.StateCheck{
33-
statecheck.ExpectIdentityValue("azurerm_application_insights_web_test.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
34-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_web_test.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
35-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_web_test.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
36-
},
19+
data.ResourceIdentityTest(t, []acceptance.TestStep{
20+
{
21+
Config: r.basic(data),
22+
ConfigStateChecks: []statecheck.StateCheck{
23+
statecheck.ExpectIdentityValue("azurerm_application_insights_web_test.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
24+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_web_test.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
25+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_web_test.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
3726
},
38-
data.ImportBlockWithResourceIdentityStep(false),
39-
data.ImportBlockWithIDStep(false),
4027
},
41-
})
28+
data.ImportBlockWithResourceIdentityStep(false),
29+
data.ImportBlockWithIDStep(false),
30+
}, false)
4231
}

internal/services/applicationinsights/application_insights_workbook_resource_identity_gen_test.go

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,28 @@
44
package applicationinsights_test
55

66
import (
7-
"context"
87
"testing"
98

10-
"github.com/hashicorp/go-version"
11-
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
129
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1310
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1411
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
15-
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1612
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
17-
"github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework"
1813
)
1914

2015
func TestAccApplicationInsightsWorkbook_resourceIdentity(t *testing.T) {
2116
data := acceptance.BuildTestData(t, "azurerm_application_insights_workbook", "test")
2217
r := ApplicationInsightsWorkbookResource{}
2318

24-
resource.ParallelTest(t, resource.TestCase{
25-
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
26-
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0-rc2"))),
27-
},
28-
ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"),
29-
Steps: []resource.TestStep{
30-
{
31-
Config: r.basicForResourceIdentity(data),
32-
ConfigStateChecks: []statecheck.StateCheck{
33-
statecheck.ExpectIdentityValue("azurerm_application_insights_workbook.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
34-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
35-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
36-
},
19+
data.ResourceIdentityTest(t, []acceptance.TestStep{
20+
{
21+
Config: r.basicForResourceIdentity(data),
22+
ConfigStateChecks: []statecheck.StateCheck{
23+
statecheck.ExpectIdentityValue("azurerm_application_insights_workbook.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
24+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
25+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
3726
},
38-
data.ImportBlockWithResourceIdentityStep(false),
39-
data.ImportBlockWithIDStep(false),
4027
},
41-
})
28+
data.ImportBlockWithResourceIdentityStep(false),
29+
data.ImportBlockWithIDStep(false),
30+
}, false)
4231
}

internal/services/applicationinsights/application_insights_workbook_template_resource_identity_gen_test.go

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,28 @@
44
package applicationinsights_test
55

66
import (
7-
"context"
87
"testing"
98

10-
"github.com/hashicorp/go-version"
11-
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
129
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1310
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1411
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
15-
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1612
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
17-
"github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework"
1813
)
1914

2015
func TestAccApplicationInsightsWorkbookTemplate_resourceIdentity(t *testing.T) {
2116
data := acceptance.BuildTestData(t, "azurerm_application_insights_workbook_template", "test")
2217
r := ApplicationInsightsWorkbookTemplateResource{}
2318

24-
resource.ParallelTest(t, resource.TestCase{
25-
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
26-
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0-rc2"))),
27-
},
28-
ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"),
29-
Steps: []resource.TestStep{
30-
{
31-
Config: r.basic(data),
32-
ConfigStateChecks: []statecheck.StateCheck{
33-
statecheck.ExpectIdentityValue("azurerm_application_insights_workbook_template.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
34-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook_template.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
35-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook_template.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
36-
},
19+
data.ResourceIdentityTest(t, []acceptance.TestStep{
20+
{
21+
Config: r.basic(data),
22+
ConfigStateChecks: []statecheck.StateCheck{
23+
statecheck.ExpectIdentityValue("azurerm_application_insights_workbook_template.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
24+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook_template.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
25+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_application_insights_workbook_template.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
3726
},
38-
data.ImportBlockWithResourceIdentityStep(false),
39-
data.ImportBlockWithIDStep(false),
4027
},
41-
})
28+
data.ImportBlockWithResourceIdentityStep(false),
29+
data.ImportBlockWithIDStep(false),
30+
}, false)
4231
}

internal/services/appservice/linux_function_app_resource_identity_gen_test.go

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,28 @@
44
package appservice_test
55

66
import (
7-
"context"
87
"testing"
98

10-
"github.com/hashicorp/go-version"
11-
"github.com/hashicorp/terraform-plugin-testing/helper/resource"
129
"github.com/hashicorp/terraform-plugin-testing/knownvalue"
1310
"github.com/hashicorp/terraform-plugin-testing/statecheck"
1411
"github.com/hashicorp/terraform-plugin-testing/tfjsonpath"
15-
"github.com/hashicorp/terraform-plugin-testing/tfversion"
1612
"github.com/hashicorp/terraform-provider-azurerm/internal/acceptance"
17-
"github.com/hashicorp/terraform-provider-azurerm/internal/provider/framework"
1813
)
1914

2015
func TestAccLinuxFunctionApp_resourceIdentity(t *testing.T) {
2116
data := acceptance.BuildTestData(t, "azurerm_linux_function_app", "test")
2217
r := LinuxFunctionAppResource{}
2318

24-
resource.ParallelTest(t, resource.TestCase{
25-
TerraformVersionChecks: []tfversion.TerraformVersionCheck{
26-
tfversion.SkipBelow(version.Must(version.NewVersion("1.12.0-rc2"))),
27-
},
28-
ProtoV5ProviderFactories: framework.ProtoV5ProviderFactoriesInit(context.Background(), "azurerm"),
29-
Steps: []resource.TestStep{
30-
{
31-
Config: r.basic(data, "B1"),
32-
ConfigStateChecks: []statecheck.StateCheck{
33-
statecheck.ExpectIdentityValue("azurerm_linux_function_app.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
34-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_linux_function_app.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
35-
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_linux_function_app.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
36-
},
19+
data.ResourceIdentityTest(t, []acceptance.TestStep{
20+
{
21+
Config: r.basic(data, "B1"),
22+
ConfigStateChecks: []statecheck.StateCheck{
23+
statecheck.ExpectIdentityValue("azurerm_linux_function_app.test", tfjsonpath.New("subscription_id"), knownvalue.StringExact(data.Subscriptions.Primary)),
24+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_linux_function_app.test", tfjsonpath.New("name"), tfjsonpath.New("name")),
25+
statecheck.ExpectIdentityValueMatchesStateAtPath("azurerm_linux_function_app.test", tfjsonpath.New("resource_group_name"), tfjsonpath.New("resource_group_name")),
3726
},
38-
data.ImportBlockWithResourceIdentityStep(false),
39-
data.ImportBlockWithIDStep(false),
4027
},
41-
})
28+
data.ImportBlockWithResourceIdentityStep(false),
29+
data.ImportBlockWithIDStep(false),
30+
}, false)
4231
}

0 commit comments

Comments
 (0)