Skip to content

Commit

Permalink
Add Int32 and Float32 type tests for schema_resource
Browse files Browse the repository at this point in the history
  • Loading branch information
SBGoods committed Jul 10, 2024
1 parent 3976874 commit 70aeb17
Show file tree
Hide file tree
Showing 4 changed files with 396 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/framework5provider/schema_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ func (r SchemaResource) Schema(_ context.Context, _ resource.SchemaRequest, resp
"bool_attribute": schema.BoolAttribute{
Optional: true,
},
"float32_attribute": schema.Float32Attribute{
Optional: true,
},
"float64_attribute": schema.Float64Attribute{
Optional: true,
},
"int32_attribute": schema.Int32Attribute{
Optional: true,
},
"int64_attribute": schema.Int64Attribute{
Optional: true,
},
Expand Down Expand Up @@ -133,7 +139,9 @@ func (r SchemaResource) Delete(ctx context.Context, req resource.DeleteRequest,

type SchemaResourceModel struct {
BoolAttribute types.Bool `tfsdk:"bool_attribute"`
Float32Attribute types.Float32 `tfsdk:"float32_attribute"`
Float64Attribute types.Float64 `tfsdk:"float64_attribute"`
Int32attribute types.Int32 `tfsdk:"int32_attribute"`
Int64Attribute types.Int64 `tfsdk:"int64_attribute"`
ListAttribute types.List `tfsdk:"list_attribute"`
ListNestedBlock types.List `tfsdk:"list_nested_block"`
Expand Down
Loading

0 comments on commit 70aeb17

Please sign in to comment.