Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
VenelinMartinov committed Jul 23, 2024
1 parent 3e4d5d7 commit e316c27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pf/internal/schemashim/custom_type_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/stretchr/testify/assert"

"github.com/pulumi/pulumi-terraform-bridge/pf/internal/pfutils"
"github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim"
shim "github.com/pulumi/pulumi-terraform-bridge/v3/pkg/tfshim"
)

// This example is taken from aws:resourceexplorer/index:Index "timeouts" property.
Expand Down Expand Up @@ -109,10 +109,10 @@ func TestCustomListAttribute(t *testing.T) {
shimmed := &attrSchema{"key", pfutils.FromAttrLike(raw)}
assert.Equal(t, shim.TypeList, shimmed.Type())
assert.NotNil(t, shimmed.Elem())
_, isPseudoResource := shimmed.Elem().(shim.Schema)
_, isPseudoResource := shimmed.Elem().(shim.Resource)
assert.Truef(t, isPseudoResource, "expected shim.Elem() to be of type shim.Resource, encoding an object type")

create := shimmed.Elem().(shim.Schema).Elem().(shim.Resource).Schema().Get("filter_string")
create := shimmed.Elem().(shim.Resource).Schema().Get("filter_string")
assert.Equal(t, shim.TypeString, create.Type())
}

Expand Down

0 comments on commit e316c27

Please sign in to comment.