Skip to content

Commit 92c3b54

Browse files
committed
fix tests
1 parent 9434de9 commit 92c3b54

File tree

5 files changed

+184
-2
lines changed

5 files changed

+184
-2
lines changed

castai/resource_node_configuration.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1313,7 +1313,7 @@ func flattenAKSConfig(config *sdk.NodeconfigV1AKSConfig) []map[string]interface{
13131313
return []map[string]interface{}{m}
13141314
}
13151315

1316-
func fromAKSNodePublicIP(sdkPublicIp *sdk.NodeconfigV1AKSConfigPublicIP) map[string]interface{} {
1316+
func fromAKSNodePublicIP(sdkPublicIp *sdk.NodeconfigV1AKSConfigPublicIP) []map[string]any {
13171317
if sdkPublicIp == nil {
13181318
return nil
13191319
}
@@ -1335,7 +1335,7 @@ func fromAKSNodePublicIP(sdkPublicIp *sdk.NodeconfigV1AKSConfigPublicIP) map[str
13351335
m["idle_timeout_in_minutes"] = *sdkPublicIp.IdleTimeoutInMinutes
13361336
}
13371337

1338-
return m
1338+
return []map[string]any{m}
13391339

13401340
}
13411341

castai/resource_node_configuration_aks_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ resource "castai_node_configuration" "test" {
127127
FirstPartyUsage = "something"
128128
}
129129
idle_timeout_in_minutes = 10
130+
}
130131
}
131132
}
132133
`, rgName, rName))

castai/sdk/api.gen.go

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

castai/sdk/client.gen.go

Lines changed: 117 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

castai/sdk/mock/client.go

Lines changed: 55 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)