Skip to content

Commit fdc63c7

Browse files
committed
fix grpc_provider_test
1 parent 53fd330 commit fdc63c7

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

internal/plugin/grpc_provider_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,6 +1519,9 @@ func TestGRPCProvider_Encode(t *testing.T) {
15191519
Before: cty.NullVal(cty.Object(map[string]cty.Type{
15201520
"config": cty.Object(map[string]cty.Type{
15211521
"filter_attr": cty.String,
1522+
"nested_filter": cty.Object(map[string]cty.Type{
1523+
"nested_attr": cty.String,
1524+
}),
15221525
}),
15231526
"data": cty.List(cty.Object(map[string]cty.Type{
15241527
"state": cty.Object(map[string]cty.Type{
@@ -1532,6 +1535,9 @@ func TestGRPCProvider_Encode(t *testing.T) {
15321535
After: cty.ObjectVal(map[string]cty.Value{
15331536
"config": cty.ObjectVal(map[string]cty.Value{
15341537
"filter_attr": cty.StringVal("value"),
1538+
"nested_filter": cty.ObjectVal(map[string]cty.Value{
1539+
"nested_attr": cty.StringVal("value"),
1540+
}),
15351541
}),
15361542
"data": cty.ListVal([]cty.Value{
15371543
cty.ObjectVal(map[string]cty.Value{
@@ -1765,6 +1771,9 @@ func TestGRPCProvider_ListResource_Error(t *testing.T) {
17651771
configVal := cty.ObjectVal(map[string]cty.Value{
17661772
"config": cty.ObjectVal(map[string]cty.Value{
17671773
"filter_attr": cty.StringVal("filter-value"),
1774+
"nested_filter": cty.ObjectVal(map[string]cty.Value{
1775+
"nested_attr": cty.StringVal("value"),
1776+
}),
17681777
}),
17691778
})
17701779
request := providers.ListResourceRequest{
@@ -1780,6 +1789,9 @@ func TestGRPCProvider_ListResource_Diagnostics(t *testing.T) {
17801789
configVal := cty.ObjectVal(map[string]cty.Value{
17811790
"config": cty.ObjectVal(map[string]cty.Value{
17821791
"filter_attr": cty.StringVal("filter-value"),
1792+
"nested_filter": cty.ObjectVal(map[string]cty.Value{
1793+
"nested_attr": cty.StringVal("value"),
1794+
}),
17831795
}),
17841796
})
17851797
request := providers.ListResourceRequest{

0 commit comments

Comments
 (0)