Skip to content

Commit 093de0e

Browse files
fix function calls
1 parent 1e0ad7c commit 093de0e

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

pkg/pf/tests/upgrade_state_cross_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,9 +1099,9 @@ func TestPFUpgrade_DynamicPseudoType(t *testing.T) {
10991099
//skipUnlessDeltasEnabled(t)
11001100

11011101
resourceBefore := pb.NewResource(pb.NewResourceArgs{
1102-
ResourceSchema: schema.Schema{
1103-
Attributes: map[string]schema.Attribute{
1104-
"dyn": schema.DynamicAttribute{Optional: true},
1102+
ResourceSchema: rschema.Schema{
1103+
Attributes: map[string]rschema.Attribute{
1104+
"dyn": rschema.DynamicAttribute{Optional: true},
11051105
},
11061106
},
11071107
})
@@ -1115,9 +1115,9 @@ func TestPFUpgrade_DynamicPseudoType(t *testing.T) {
11151115
},
11161116
}
11171117
},
1118-
ResourceSchema: schema.Schema{
1119-
Attributes: map[string]schema.Attribute{
1120-
"dyn": schema.DynamicAttribute{Optional: true},
1118+
ResourceSchema: rschema.Schema{
1119+
Attributes: map[string]rschema.Attribute{
1120+
"dyn": rschema.DynamicAttribute{Optional: true},
11211121
},
11221122
Version: 1,
11231123
},

pkg/tfbridge/rawstate_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@ func Test_rawstate_against_MakeTerraformOutputs(t *testing.T) {
11681168
require.NoError(t, err)
11691169
tc.infl.Equal(t, string(deltaJSON))
11701170

1171-
err = delta.turnaroundCheck(ctx, newRawStateFromValue(stateValue), pv)
1171+
err = delta.turnaroundCheck(ctx, newRawStateFromValue(stateValue.Type(), stateValue), pv)
11721172
assert.NoError(t, err)
11731173
})
11741174
}

pkg/valueshim/hcty.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package valueshim
1717
import (
1818
"encoding/json"
1919
"fmt"
20+
"math/big"
2021

2122
"github.com/hashicorp/go-cty/cty"
2223
ctyjson "github.com/hashicorp/go-cty/cty/json"
@@ -65,6 +66,10 @@ func (v hctyValueShim) NumberValue() float64 {
6566
return f
6667
}
6768

69+
func (v hctyValueShim) BigFloatValue() *big.Float {
70+
return v.val().AsBigFloat()
71+
}
72+
6873
func (v hctyValueShim) AsValueSlice() []Value {
6974
s := v.val().AsValueSlice()
7075
res := make([]Value, len(s))

0 commit comments

Comments
 (0)