fix: fix tests

This commit is contained in:
Marcel S. Henselin 2025-12-30 17:14:37 +01:00
parent e2f2cecdf7
commit 910551f09d
2 changed files with 74 additions and 47 deletions

View file

@ -241,6 +241,7 @@ func TestToCreatePayload(t *testing.T) {
}),
},
&postgresflex.CreateInstanceRequestPayload{
Acl: &[]string{"0.0.0.0/0"},
Storage: postgresflex.CreateInstanceRequestPayloadGetStorageAttributeType(&postgresflex.Storage{}),
Encryption: &postgresflex.InstanceEncryption{},
Network: &postgresflex.InstanceNetwork{
@ -253,7 +254,9 @@ func TestToCreatePayload(t *testing.T) {
{
"use flavor node_type instead of replicas",
&Model{},
[]string{},
[]string{
"0.0.0.0/0",
},
&flavorModel{
NodeType: types.StringValue("Single"),
},
@ -265,7 +268,7 @@ func TestToCreatePayload(t *testing.T) {
}),
},
&postgresflex.CreateInstanceRequestPayload{
//Acl: &[]string{},
Acl: &[]string{"0.0.0.0/0"},
Storage: postgresflex.CreateInstanceRequestPayloadGetStorageAttributeType(&postgresflex.Storage{}),
Encryption: &postgresflex.InstanceEncryption{},
Network: &postgresflex.InstanceNetwork{