Skip to content

Commit 0ee577b

Browse files
committed
fix(opensearch) fix tests
1 parent dfac62f commit 0ee577b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

stackit/internal/services/opensearch/credential/resource_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ func TestMapFields(t *testing.T) {
3333
CredentialId: types.StringValue("cid"),
3434
InstanceId: types.StringValue("iid"),
3535
ProjectId: types.StringValue("pid"),
36-
Host: types.StringNull(),
36+
Host: types.StringValue(""),
3737
Hosts: types.ListNull(types.StringType),
38-
Password: types.StringNull(),
38+
Password: types.StringValue(""),
3939
Port: types.Int32Null(),
4040
Scheme: types.StringNull(),
4141
Uri: types.StringNull(),
42-
Username: types.StringNull(),
42+
Username: types.StringValue(""),
4343
},
4444
true,
4545
},

stackit/internal/services/opensearch/instance/resource_test.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ func TestMapFields(t *testing.T) {
8989
Id: types.StringValue("pid,iid"),
9090
InstanceId: types.StringValue("iid"),
9191
ProjectId: types.StringValue("pid"),
92-
PlanId: types.StringNull(),
93-
Name: types.StringNull(),
94-
CfGuid: types.StringNull(),
95-
CfSpaceGuid: types.StringNull(),
96-
DashboardUrl: types.StringNull(),
97-
ImageUrl: types.StringNull(),
98-
CfOrganizationGuid: types.StringNull(),
92+
PlanId: types.StringValue(""),
93+
Name: types.StringValue(""),
94+
CfGuid: types.StringValue(""),
95+
CfSpaceGuid: types.StringValue(""),
96+
DashboardUrl: types.StringValue(""),
97+
ImageUrl: types.StringValue(""),
98+
CfOrganizationGuid: types.StringValue(""),
9999
Parameters: types.ObjectNull(parametersTypes),
100100
},
101101
true,
@@ -116,7 +116,7 @@ func TestMapFields(t *testing.T) {
116116
"sgw_acl": "acl",
117117
"enable_monitoring": true,
118118
"graphite": "graphite",
119-
"java_garbage_collector": new(string(legacyOpensearch.INSTANCEPARAMETERSJAVA_GARBAGE_COLLECTOR_USE_G1_GC)),
119+
"java_garbage_collector": string(legacyOpensearch.INSTANCEPARAMETERSJAVA_GARBAGE_COLLECTOR_USE_G1_GC),
120120
"java_heapspace": int32(10),
121121
"java_maxmetaspace": int32(10),
122122
"max_disk_threshold": int32(10),

0 commit comments

Comments
 (0)