fix(deps): update stackit sdk modules (#903)

* fix(deps): update stackit sdk modules

* Adjust git and mongodb regarding sdk changes

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
Co-authored-by: Renovate Bot <renovate@whitesourcesoftware.com>
Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
This commit is contained in:
stackit-pipeline 2025-07-28 09:20:55 +02:00 committed by GitHub
parent 33b239a74d
commit b32eedd4b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 89 additions and 89 deletions

View file

@ -406,7 +406,7 @@ func toCreatePayload(ctx context.Context, model *Model) (git.CreateInstancePaylo
}
if !(model.Flavor.IsNull() || model.Flavor.IsUnknown()) {
payload.Flavor = model.Flavor.ValueStringPointer()
payload.Flavor = git.CreateInstancePayloadGetFlavorAttributeType(model.Flavor.ValueStringPointer())
}
return payload, diags

View file

@ -178,7 +178,7 @@ func TestToCreatePayload(t *testing.T) {
},
expected: git.CreateInstancePayload{
Name: utils.Ptr("my-instance"),
Flavor: utils.Ptr("git-100"),
Flavor: git.CREATEINSTANCEPAYLOADFLAVOR__100.Ptr(),
Acl: &[]string{"10.0.0.1", "10.0.0.2"},
},
expectError: false,
@ -187,12 +187,12 @@ func TestToCreatePayload(t *testing.T) {
description: "empty ACL still valid",
input: &Model{
Name: types.StringValue("my-instance"),
Flavor: types.StringValue("git-101"),
Flavor: types.StringValue("git-100"),
ACL: types.ListValueMust(types.StringType, []attr.Value{}),
},
expected: git.CreateInstancePayload{
Name: utils.Ptr("my-instance"),
Flavor: utils.Ptr("git-101"),
Flavor: git.CREATEINSTANCEPAYLOADFLAVOR__100.Ptr(),
Acl: &[]string{},
},
expectError: false,