88 "github.com/hashicorp/terraform-plugin-framework/attr"
99 "github.com/hashicorp/terraform-plugin-framework/types"
1010 "github.com/hashicorp/terraform-plugin-framework/types/basetypes"
11- "github.com/stackitcloud/stackit-sdk-go/core/utils"
1211 mariadb "github.com/stackitcloud/stackit-sdk-go/services/mariadb/v1api"
1312)
1413
@@ -38,13 +37,13 @@ var fixtureNullModelParameters = types.ObjectValueMust(parametersTypes, map[stri
3837})
3938
4039var fixtureInstanceParameters = mariadb.InstanceParameters {
41- SgwAcl : utils . Ptr ("acl" ),
42- EnableMonitoring : utils . Ptr (true ),
43- Graphite : utils . Ptr ("graphite" ),
44- MaxDiskThreshold : utils . Ptr (int32 (10 )),
45- MetricsFrequency : utils . Ptr (int32 (10 )),
46- MetricsPrefix : utils . Ptr ("prefix" ),
47- MonitoringInstanceId : utils . Ptr ("mid" ),
40+ SgwAcl : new ("acl "),
41+ EnableMonitoring : new (true ),
42+ Graphite : new ("graphite "),
43+ MaxDiskThreshold : new (int32 (10 )),
44+ MetricsFrequency : new (int32 (10 )),
45+ MetricsPrefix : new ("prefix "),
46+ MonitoringInstanceId : new ("mid "),
4847 Syslog : []string {"syslog" , "syslog2" },
4948}
5049
@@ -81,10 +80,10 @@ func TestMapFields(t *testing.T) {
8180 CfSpaceGuid : "space" ,
8281 DashboardUrl : "dashboard" ,
8382 ImageUrl : "image" ,
84- InstanceId : utils . Ptr ("iid" ),
83+ InstanceId : new ("iid "),
8584 Name : "name" ,
8685 CfOrganizationGuid : "org" ,
87- Parameters : map [string ]interface {} {
86+ Parameters : map [string ]any {
8887 "sgw_acl" : "acl" ,
8988 "enable_monitoring" : true ,
9089 "graphite" : "graphite" ,
@@ -125,7 +124,7 @@ func TestMapFields(t *testing.T) {
125124 {
126125 "wrong_param_types_1" ,
127126 & mariadb.Instance {
128- Parameters : map [string ]interface {} {
127+ Parameters : map [string ]any {
129128 "sgw_acl" : true ,
130129 },
131130 },
@@ -135,7 +134,7 @@ func TestMapFields(t *testing.T) {
135134 {
136135 "wrong_param_types_2" ,
137136 & mariadb.Instance {
138- Parameters : map [string ]interface {} {
137+ Parameters : map [string ]any {
139138 "sgw_acl" : 1 ,
140139 },
141140 },
0 commit comments