Skip to content

Commit 085f2f9

Browse files
authored
internal: Replace tfsdk.Schema, tfsdk.Attribute, and tfsdk.Block usage in unit testing (#575)
Reference: #132 Precursor for fully removing `tfsdk` package `Schema`, `Attribute`, and `Block` types. Replaced with `internal/testing/testschema`, `datasource/schema`, `provider/metaschema`, `provider/schema`, and `resource/schema` equivalents. Removed extraneous unit testing such as datasource versioning, provider Computed, etc. since it will be no longer possible to declare invalid schemas based on the concept.
1 parent 7afa862 commit 085f2f9

File tree

79 files changed

+7761
-9675
lines changed

Some content is hidden

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

79 files changed

+7761
-9675
lines changed

internal/fromproto5/applyresourcechange_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
1515
"github.com/hashicorp/terraform-plugin-framework/internal/privatestate"
1616
"github.com/hashicorp/terraform-plugin-framework/resource"
17+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1718
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
18-
"github.com/hashicorp/terraform-plugin-framework/types"
1919
)
2020

2121
func TestApplyResourceChangeRequest(t *testing.T) {
@@ -37,11 +37,10 @@ func TestApplyResourceChangeRequest(t *testing.T) {
3737
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3838
}
3939

40-
testFwSchema := &tfsdk.Schema{
41-
Attributes: map[string]tfsdk.Attribute{
42-
"test_attribute": {
40+
testFwSchema := schema.Schema{
41+
Attributes: map[string]schema.Attribute{
42+
"test_attribute": schema.StringAttribute{
4343
Required: true,
44-
Type: types.StringType,
4544
},
4645
},
4746
}

internal/fromproto5/config_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/hashicorp/terraform-plugin-framework/diag"
99
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
11+
"github.com/hashicorp/terraform-plugin-framework/internal/testing/testschema"
1112
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
1213
"github.com/hashicorp/terraform-plugin-framework/types"
1314
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
@@ -33,18 +34,18 @@ func TestConfig(t *testing.T) {
3334
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3435
}
3536

36-
testFwSchema := &tfsdk.Schema{
37-
Attributes: map[string]tfsdk.Attribute{
38-
"test_attribute": {
37+
testFwSchema := testschema.Schema{
38+
Attributes: map[string]fwschema.Attribute{
39+
"test_attribute": testschema.Attribute{
3940
Required: true,
4041
Type: types.StringType,
4142
},
4243
},
4344
}
4445

45-
testFwSchemaInvalid := &tfsdk.Schema{
46-
Attributes: map[string]tfsdk.Attribute{
47-
"test_attribute": {
46+
testFwSchemaInvalid := testschema.Schema{
47+
Attributes: map[string]fwschema.Attribute{
48+
"test_attribute": testschema.Attribute{
4849
Required: true,
4950
Type: types.BoolType,
5051
},

internal/fromproto5/configureprovider_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
1111
"github.com/hashicorp/terraform-plugin-framework/provider"
12+
"github.com/hashicorp/terraform-plugin-framework/provider/schema"
1213
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
13-
"github.com/hashicorp/terraform-plugin-framework/types"
1414
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
1515
"github.com/hashicorp/terraform-plugin-go/tftypes"
1616
)
@@ -34,11 +34,10 @@ func TestConfigureProviderRequest(t *testing.T) {
3434
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3535
}
3636

37-
testFwSchema := &tfsdk.Schema{
38-
Attributes: map[string]tfsdk.Attribute{
39-
"test_attribute": {
37+
testFwSchema := schema.Schema{
38+
Attributes: map[string]schema.Attribute{
39+
"test_attribute": schema.StringAttribute{
4040
Required: true,
41-
Type: types.StringType,
4241
},
4342
},
4443
}

internal/fromproto5/importresourcestate_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,20 +10,19 @@ import (
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
1111
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
1212
"github.com/hashicorp/terraform-plugin-framework/resource"
13+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1314
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
14-
"github.com/hashicorp/terraform-plugin-framework/types"
1515
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
1616
"github.com/hashicorp/terraform-plugin-go/tftypes"
1717
)
1818

1919
func TestImportResourceStateRequest(t *testing.T) {
2020
t.Parallel()
2121

22-
testFwSchema := &tfsdk.Schema{
23-
Attributes: map[string]tfsdk.Attribute{
24-
"test_attribute": {
22+
testFwSchema := schema.Schema{
23+
Attributes: map[string]schema.Attribute{
24+
"test_attribute": schema.StringAttribute{
2525
Required: true,
26-
Type: types.StringType,
2726
},
2827
},
2928
}

internal/fromproto5/plan_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/hashicorp/terraform-plugin-framework/diag"
99
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
11+
"github.com/hashicorp/terraform-plugin-framework/internal/testing/testschema"
1112
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
1213
"github.com/hashicorp/terraform-plugin-framework/types"
1314
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
@@ -33,18 +34,18 @@ func TestPlan(t *testing.T) {
3334
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3435
}
3536

36-
testFwSchema := &tfsdk.Schema{
37-
Attributes: map[string]tfsdk.Attribute{
38-
"test_attribute": {
37+
testFwSchema := testschema.Schema{
38+
Attributes: map[string]fwschema.Attribute{
39+
"test_attribute": testschema.Attribute{
3940
Required: true,
4041
Type: types.StringType,
4142
},
4243
},
4344
}
4445

45-
testFwSchemaInvalid := &tfsdk.Schema{
46-
Attributes: map[string]tfsdk.Attribute{
47-
"test_attribute": {
46+
testFwSchemaInvalid := testschema.Schema{
47+
Attributes: map[string]fwschema.Attribute{
48+
"test_attribute": testschema.Attribute{
4849
Required: true,
4950
Type: types.BoolType,
5051
},

internal/fromproto5/planresourcechange_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
1515
"github.com/hashicorp/terraform-plugin-framework/internal/privatestate"
1616
"github.com/hashicorp/terraform-plugin-framework/resource"
17+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1718
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
18-
"github.com/hashicorp/terraform-plugin-framework/types"
1919
)
2020

2121
func TestPlanResourceChangeRequest(t *testing.T) {
@@ -37,11 +37,10 @@ func TestPlanResourceChangeRequest(t *testing.T) {
3737
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3838
}
3939

40-
testFwSchema := &tfsdk.Schema{
41-
Attributes: map[string]tfsdk.Attribute{
42-
"test_attribute": {
40+
testFwSchema := schema.Schema{
41+
Attributes: map[string]schema.Attribute{
42+
"test_attribute": schema.StringAttribute{
4343
Required: true,
44-
Type: types.StringType,
4544
},
4645
},
4746
}

internal/fromproto5/prepareproviderconfig_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
1111
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
12+
"github.com/hashicorp/terraform-plugin-framework/provider/schema"
1213
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
13-
"github.com/hashicorp/terraform-plugin-framework/types"
1414
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
1515
"github.com/hashicorp/terraform-plugin-go/tftypes"
1616
)
@@ -34,11 +34,10 @@ func TestValidateProviderConfigRequest(t *testing.T) {
3434
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3535
}
3636

37-
testFwSchema := &tfsdk.Schema{
38-
Attributes: map[string]tfsdk.Attribute{
39-
"test_attribute": {
37+
testFwSchema := schema.Schema{
38+
Attributes: map[string]schema.Attribute{
39+
"test_attribute": schema.StringAttribute{
4040
Required: true,
41-
Type: types.StringType,
4241
},
4342
},
4443
}

internal/fromproto5/providermeta_test.go

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"github.com/hashicorp/terraform-plugin-framework/diag"
99
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
11+
"github.com/hashicorp/terraform-plugin-framework/provider/metaschema"
1112
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
12-
"github.com/hashicorp/terraform-plugin-framework/types"
1313
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
1414
"github.com/hashicorp/terraform-plugin-go/tftypes"
1515
)
@@ -33,20 +33,18 @@ func TestProviderMeta(t *testing.T) {
3333
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3434
}
3535

36-
testFwSchema := &tfsdk.Schema{
37-
Attributes: map[string]tfsdk.Attribute{
38-
"test_attribute": {
36+
testFwSchema := metaschema.Schema{
37+
Attributes: map[string]metaschema.Attribute{
38+
"test_attribute": metaschema.StringAttribute{
3939
Required: true,
40-
Type: types.StringType,
4140
},
4241
},
4342
}
4443

45-
testFwSchemaInvalid := &tfsdk.Schema{
46-
Attributes: map[string]tfsdk.Attribute{
47-
"test_attribute": {
44+
testFwSchemaInvalid := metaschema.Schema{
45+
Attributes: map[string]metaschema.Attribute{
46+
"test_attribute": metaschema.BoolAttribute{
4847
Required: true,
49-
Type: types.BoolType,
5048
},
5149
},
5250
}

internal/fromproto5/readresource_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
1515
"github.com/hashicorp/terraform-plugin-framework/internal/privatestate"
1616
"github.com/hashicorp/terraform-plugin-framework/resource"
17+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1718
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
18-
"github.com/hashicorp/terraform-plugin-framework/types"
1919
)
2020

2121
func TestReadResourceRequest(t *testing.T) {
@@ -37,11 +37,10 @@ func TestReadResourceRequest(t *testing.T) {
3737
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3838
}
3939

40-
testFwSchema := &tfsdk.Schema{
41-
Attributes: map[string]tfsdk.Attribute{
42-
"test_attribute": {
40+
testFwSchema := schema.Schema{
41+
Attributes: map[string]schema.Attribute{
42+
"test_attribute": schema.StringAttribute{
4343
Required: true,
44-
Type: types.StringType,
4544
},
4645
},
4746
}

internal/fromproto5/state_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/hashicorp/terraform-plugin-framework/diag"
99
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto5"
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
11+
"github.com/hashicorp/terraform-plugin-framework/internal/testing/testschema"
1112
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
1213
"github.com/hashicorp/terraform-plugin-framework/types"
1314
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
@@ -33,18 +34,18 @@ func TestState(t *testing.T) {
3334
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3435
}
3536

36-
testFwSchema := &tfsdk.Schema{
37-
Attributes: map[string]tfsdk.Attribute{
38-
"test_attribute": {
37+
testFwSchema := testschema.Schema{
38+
Attributes: map[string]fwschema.Attribute{
39+
"test_attribute": testschema.Attribute{
3940
Required: true,
4041
Type: types.StringType,
4142
},
4243
},
4344
}
4445

45-
testFwSchemaInvalid := &tfsdk.Schema{
46-
Attributes: map[string]tfsdk.Attribute{
47-
"test_attribute": {
46+
testFwSchemaInvalid := testschema.Schema{
47+
Attributes: map[string]fwschema.Attribute{
48+
"test_attribute": testschema.Attribute{
4849
Required: true,
4950
Type: types.BoolType,
5051
},

internal/fromproto5/upgraderesourcestate_test.go

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,17 @@ import (
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
1111
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
1212
"github.com/hashicorp/terraform-plugin-framework/resource"
13-
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
14-
"github.com/hashicorp/terraform-plugin-framework/types"
13+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1514
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
1615
)
1716

1817
func TestUpgradeResourceStateRequest(t *testing.T) {
1918
t.Parallel()
2019

21-
testFwSchema := &tfsdk.Schema{
22-
Attributes: map[string]tfsdk.Attribute{
23-
"test_attribute": {
20+
testFwSchema := schema.Schema{
21+
Attributes: map[string]schema.Attribute{
22+
"test_attribute": schema.StringAttribute{
2423
Required: true,
25-
Type: types.StringType,
2624
},
2725
},
2826
}

internal/fromproto5/validateresourcetypeconfig_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
1111
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
1212
"github.com/hashicorp/terraform-plugin-framework/resource"
13+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1314
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
14-
"github.com/hashicorp/terraform-plugin-framework/types"
1515
"github.com/hashicorp/terraform-plugin-go/tfprotov5"
1616
"github.com/hashicorp/terraform-plugin-go/tftypes"
1717
)
@@ -35,11 +35,10 @@ func TestValidateResourceTypeConfigRequest(t *testing.T) {
3535
t.Fatalf("unexpected error calling tfprotov5.NewDynamicValue(): %s", err)
3636
}
3737

38-
testFwSchema := &tfsdk.Schema{
39-
Attributes: map[string]tfsdk.Attribute{
40-
"test_attribute": {
38+
testFwSchema := schema.Schema{
39+
Attributes: map[string]schema.Attribute{
40+
"test_attribute": schema.StringAttribute{
4141
Required: true,
42-
Type: types.StringType,
4342
},
4443
},
4544
}

internal/fromproto6/applyresourcechange_test.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/hashicorp/terraform-plugin-framework/internal/fwserver"
1515
"github.com/hashicorp/terraform-plugin-framework/internal/privatestate"
1616
"github.com/hashicorp/terraform-plugin-framework/resource"
17+
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
1718
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
18-
"github.com/hashicorp/terraform-plugin-framework/types"
1919
)
2020

2121
func TestApplyResourceChangeRequest(t *testing.T) {
@@ -37,11 +37,10 @@ func TestApplyResourceChangeRequest(t *testing.T) {
3737
t.Fatalf("unexpected error calling tfprotov6.NewDynamicValue(): %s", err)
3838
}
3939

40-
testFwSchema := &tfsdk.Schema{
41-
Attributes: map[string]tfsdk.Attribute{
42-
"test_attribute": {
40+
testFwSchema := schema.Schema{
41+
Attributes: map[string]schema.Attribute{
42+
"test_attribute": schema.StringAttribute{
4343
Required: true,
44-
Type: types.StringType,
4544
},
4645
},
4746
}

internal/fromproto6/config_test.go

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"github.com/hashicorp/terraform-plugin-framework/diag"
99
"github.com/hashicorp/terraform-plugin-framework/internal/fromproto6"
1010
"github.com/hashicorp/terraform-plugin-framework/internal/fwschema"
11+
"github.com/hashicorp/terraform-plugin-framework/internal/testing/testschema"
1112
"github.com/hashicorp/terraform-plugin-framework/tfsdk"
1213
"github.com/hashicorp/terraform-plugin-framework/types"
1314
"github.com/hashicorp/terraform-plugin-go/tfprotov6"
@@ -33,18 +34,18 @@ func TestConfig(t *testing.T) {
3334
t.Fatalf("unexpected error calling tfprotov6.NewDynamicValue(): %s", err)
3435
}
3536

36-
testFwSchema := &tfsdk.Schema{
37-
Attributes: map[string]tfsdk.Attribute{
38-
"test_attribute": {
37+
testFwSchema := testschema.Schema{
38+
Attributes: map[string]fwschema.Attribute{
39+
"test_attribute": testschema.Attribute{
3940
Required: true,
4041
Type: types.StringType,
4142
},
4243
},
4344
}
4445

45-
testFwSchemaInvalid := &tfsdk.Schema{
46-
Attributes: map[string]tfsdk.Attribute{
47-
"test_attribute": {
46+
testFwSchemaInvalid := testschema.Schema{
47+
Attributes: map[string]fwschema.Attribute{
48+
"test_attribute": testschema.Attribute{
4849
Required: true,
4950
Type: types.BoolType,
5051
},

0 commit comments

Comments
 (0)